Belle II Software  release-05-01-25
BKLMADCThreshold.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Yinghui GUAN *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 /* ROOT headers. */
14 #include <TObject.h>
15 
16 namespace Belle2 {
28  class BKLMADCThreshold: public TObject {
29  public:
30 
33  {
34  }
35 
37  BKLMADCThreshold(int ADCOffset, double threshold, double gain)
38  {
39  m_ADCOffset = ADCOffset;
40  m_threshold = threshold;
41  m_MPPCGain = gain;
42  }
43 
46  {
47  }
48 
50  int getADCOffset() const
51  {
52  return m_ADCOffset;
53  }
54 
56  double getADCThreshold() const
57  {
58  return m_threshold;
59  }
60 
62  double getMPPCGain() const
63  {
64  return m_MPPCGain;
65  }
66 
68  void setADCOffset(int ADCOffset)
69  {
70  m_ADCOffset = ADCOffset;
71  }
72 
74  void setADCThreshold(double threshold)
75  {
76  m_threshold = threshold;
77  }
78 
80  void setMPPCGain(double gain)
81  {
82  m_MPPCGain = gain;
83  }
84 
85 
86  private:
87 
89  int m_ADCOffset;
90 
92  double m_threshold;
93 
95  double m_MPPCGain;
96 
99 
100  };
101 
103 } // end namespace Belle2
Belle2::BKLMADCThreshold::ClassDef
ClassDef(BKLMADCThreshold, 1)
Class version.
Belle2::BKLMADCThreshold::~BKLMADCThreshold
~BKLMADCThreshold()
Destructor.
Definition: BKLMADCThreshold.h:53
Belle2::BKLMADCThreshold
The Class for BKLM scintillator ADC related parameters.
Definition: BKLMADCThreshold.h:36
Belle2::BKLMADCThreshold::setADCOffset
void setADCOffset(int ADCOffset)
Set the ADC offset.
Definition: BKLMADCThreshold.h:76
Belle2::BKLMADCThreshold::getMPPCGain
double getMPPCGain() const
Get the MPPC gain.
Definition: BKLMADCThreshold.h:70
Belle2::BKLMADCThreshold::setMPPCGain
void setMPPCGain(double gain)
Set the MPPC gain.
Definition: BKLMADCThreshold.h:88
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::BKLMADCThreshold::m_MPPCGain
double m_MPPCGain
MPPC gain.
Definition: BKLMADCThreshold.h:103
Belle2::BKLMADCThreshold::getADCOffset
int getADCOffset() const
Get the ADC offset.
Definition: BKLMADCThreshold.h:58
Belle2::BKLMADCThreshold::setADCThreshold
void setADCThreshold(double threshold)
Set the ADC threshold.
Definition: BKLMADCThreshold.h:82
Belle2::BKLMADCThreshold::BKLMADCThreshold
BKLMADCThreshold()
Default constructor.
Definition: BKLMADCThreshold.h:40
Belle2::BKLMADCThreshold::m_threshold
double m_threshold
ADC threshold.
Definition: BKLMADCThreshold.h:100
Belle2::BKLMADCThreshold::getADCThreshold
double getADCThreshold() const
Get the ADC threshold.
Definition: BKLMADCThreshold.h:64
Belle2::BKLMADCThreshold::m_ADCOffset
int m_ADCOffset
ADC offset/pedestal.
Definition: BKLMADCThreshold.h:97