Belle II Software  release-06-02-00
BKLMADCThreshold.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 
9 #pragma once
10 
11 /* ROOT headers. */
12 #include <TObject.h>
13 
14 namespace Belle2 {
26  class BKLMADCThreshold: public TObject {
27  public:
28 
31  {
32  }
33 
35  BKLMADCThreshold(int ADCOffset, double threshold, double gain)
36  {
37  m_ADCOffset = ADCOffset;
38  m_threshold = threshold;
39  m_MPPCGain = gain;
40  }
41 
44  {
45  }
46 
48  int getADCOffset() const
49  {
50  return m_ADCOffset;
51  }
52 
54  double getADCThreshold() const
55  {
56  return m_threshold;
57  }
58 
60  double getMPPCGain() const
61  {
62  return m_MPPCGain;
63  }
64 
66  void setADCOffset(int ADCOffset)
67  {
68  m_ADCOffset = ADCOffset;
69  }
70 
72  void setADCThreshold(double threshold)
73  {
74  m_threshold = threshold;
75  }
76 
78  void setMPPCGain(double gain)
79  {
80  m_MPPCGain = gain;
81  }
82 
83 
84  private:
85 
88 
90  double m_threshold;
91 
93  double m_MPPCGain;
94 
97 
98  };
99 
101 } // end namespace Belle2
The Class for BKLM scintillator ADC related parameters.
BKLMADCThreshold()
Default constructor.
double getMPPCGain() const
Get the MPPC gain.
void setADCOffset(int ADCOffset)
Set the ADC offset.
ClassDef(BKLMADCThreshold, 1)
Class version.
double m_threshold
ADC threshold.
int getADCOffset() const
Get the ADC offset.
BKLMADCThreshold(int ADCOffset, double threshold, double gain)
Constructor.
void setADCThreshold(double threshold)
Set the ADC threshold.
void setMPPCGain(double gain)
Set the MPPC gain.
double getADCThreshold() const
Get the ADC threshold.
int m_ADCOffset
ADC offset/pedestal.
double m_MPPCGain
MPPC gain.
Abstract base class for different kinds of events.