Belle II Software  release-05-02-19
EKLMChannelData.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2017 Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Kirill Chilikin *
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 {
25  class EKLMChannelData : public TObject {
26 
27  public:
28 
33 
38 
42  float getPedestal() const
43  {
44  return m_Pedestal;
45  }
46 
50  void setPedestal(float pedestal)
51  {
52  m_Pedestal = pedestal;
53  }
54 
59  {
61  }
62 
66  void setPhotoelectronAmplitude(float photoelectronAmplitude)
67  {
68  m_PhotoelectronAmplitude = photoelectronAmplitude;
69  }
70 
74  int getThreshold() const
75  {
76  return m_Threshold;
77  }
78 
82  void setThreshold(int threshold)
83  {
84  m_Threshold = threshold;
85  }
86 
90  float getVoltage() const
91  {
92  return m_Voltage;
93  }
94 
98  void setVoltage(float voltage)
99  {
100  m_Voltage = voltage;
101  }
102 
107  {
108  return m_AdjustmentVoltage;
109  }
110 
114  void setAdjustmentVoltage(int adjustmentVoltage)
115  {
116  m_AdjustmentVoltage = adjustmentVoltage;
117  }
118 
122  int getLookbackTime() const
123  {
124  return m_LookbackTime;
125  }
126 
130  void setLookbackTime(int lookbackTime)
131  {
132  m_LookbackTime = lookbackTime;
133  }
134 
139  {
140  return m_LookbackWindowWidth;
141  }
142 
146  void setLookbackWindowWidth(int lookbackWindowWidth)
147  {
148  m_LookbackWindowWidth = lookbackWindowWidth;
149  }
150 
151  private:
152 
154  bool m_Active = false;
155 
157  float m_Pedestal = 0;
158 
160  float m_PhotoelectronAmplitude = 0;
161 
163  int m_Threshold = 0;
164 
166  float m_Voltage = 0;
167 
169  int m_AdjustmentVoltage = 0;
170 
172  int m_LookbackTime = 0;
173 
175  int m_LookbackWindowWidth = 0;
176 
179 
180  };
181 
183 }
Belle2::EKLMChannelData
EKLM channel data.
Definition: EKLMChannelData.h:33
Belle2::EKLMChannelData::ClassDef
ClassDef(Belle2::EKLMChannelData, 4)
Class version.
Belle2::EKLMChannelData::getLookbackTime
int getLookbackTime() const
Get lookback time (unit is 32 TDC counts).
Definition: EKLMChannelData.h:130
Belle2::EKLMChannelData::setPedestal
void setPedestal(float pedestal)
Set pedestal.
Definition: EKLMChannelData.h:58
Belle2::EKLMChannelData::m_Active
bool m_Active
True if channel is active.
Definition: EKLMChannelData.h:162
Belle2::EKLMChannelData::setAdjustmentVoltage
void setAdjustmentVoltage(int adjustmentVoltage)
Set adjustment voltage.
Definition: EKLMChannelData.h:122
Belle2::EKLMChannelData::m_LookbackTime
int m_LookbackTime
Lookback time (unit is 32 TDC counts).
Definition: EKLMChannelData.h:180
Belle2::EKLMChannelData::m_AdjustmentVoltage
int m_AdjustmentVoltage
Adjustment voltage.
Definition: EKLMChannelData.h:177
Belle2::EKLMChannelData::m_Threshold
int m_Threshold
Threshold (maximal EKLMDigit.m_Charge).
Definition: EKLMChannelData.h:171
Belle2::EKLMChannelData::getAdjustmentVoltage
int getAdjustmentVoltage() const
Get adjustment voltage.
Definition: EKLMChannelData.h:114
Belle2::EKLMChannelData::EKLMChannelData
EKLMChannelData()
Constructor.
Definition: EKLMChannelData.cc:16
Belle2::EKLMChannelData::getThreshold
int getThreshold() const
Get threshold.
Definition: EKLMChannelData.h:82
Belle2::EKLMChannelData::getPhotoelectronAmplitude
float getPhotoelectronAmplitude() const
Get photoelectron amplitude.
Definition: EKLMChannelData.h:66
Belle2::EKLMChannelData::setThreshold
void setThreshold(int threshold)
Set threshold.
Definition: EKLMChannelData.h:90
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::EKLMChannelData::setPhotoelectronAmplitude
void setPhotoelectronAmplitude(float photoelectronAmplitude)
Set photoelectron amplitude.
Definition: EKLMChannelData.h:74
Belle2::EKLMChannelData::setVoltage
void setVoltage(float voltage)
Set voltage.
Definition: EKLMChannelData.h:106
Belle2::EKLMChannelData::~EKLMChannelData
~EKLMChannelData()
Destructor.
Definition: EKLMChannelData.cc:20
Belle2::EKLMChannelData::setLookbackTime
void setLookbackTime(int lookbackTime)
Set lookback time (unit is 32 TDC counts).
Definition: EKLMChannelData.h:138
Belle2::EKLMChannelData::getVoltage
float getVoltage() const
Get voltage.
Definition: EKLMChannelData.h:98
Belle2::EKLMChannelData::m_Pedestal
float m_Pedestal
Pedestal.
Definition: EKLMChannelData.h:165
Belle2::EKLMChannelData::m_PhotoelectronAmplitude
float m_PhotoelectronAmplitude
Photoelectron amplitude.
Definition: EKLMChannelData.h:168
Belle2::EKLMChannelData::setLookbackWindowWidth
void setLookbackWindowWidth(int lookbackWindowWidth)
Set lookback window width (unit is 32 TDC counts).
Definition: EKLMChannelData.h:154
Belle2::EKLMChannelData::getPedestal
float getPedestal() const
Get pedestal.
Definition: EKLMChannelData.h:50
Belle2::EKLMChannelData::getLookbackWindowWidth
int getLookbackWindowWidth() const
Get lookback window width (unit is 32 TDC counts).
Definition: EKLMChannelData.h:146
Belle2::EKLMChannelData::m_LookbackWindowWidth
int m_LookbackWindowWidth
Lookback window width (unit is 32 TDC counts).
Definition: EKLMChannelData.h:183
Belle2::EKLMChannelData::m_Voltage
float m_Voltage
Voltage.
Definition: EKLMChannelData.h:174