Belle II Software development
KLMScintillatorDigitizationParameters.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
14namespace Belle2 {
24
25 public:
26
31
36
40 int getADCRange() const
41 {
42 return m_ADCRange;
43 }
44
48 void setADCRange(int range)
49 {
50 m_ADCRange = range;
51 }
52
57 {
59 }
60
64 void setADCSamplingTDCPeriods(int periods)
65 {
67 }
68
73 {
74 return m_NDigitizations;
75 }
76
80 void setNDigitizations(int digitizations)
81 {
82 m_NDigitizations = digitizations;
83 }
84
88 float getADCPedestal() const
89 {
90 return m_ADCPedestal;
91 }
92
96 void setADCPedestal(float pedestal)
97 {
98 m_ADCPedestal = pedestal;
99 }
100
104 float getADCPEAmplitude() const
105 {
106 return m_ADCPEAmplitude;
107 }
108
112 void setADCPEAmplitude(float amplitude)
113 {
114 m_ADCPEAmplitude = amplitude;
115 }
116
120 int getADCThreshold() const
121 {
122 return m_ADCThreshold;
123 }
124
128 void setADCThreshold(int threshold)
129 {
130 m_ADCThreshold = threshold;
131 }
132
137 {
138 return m_ADCSaturation;
139 }
140
144 void setADCSaturation(int saturation)
145 {
146 m_ADCSaturation = saturation;
147 }
148
152 float getNPEperMeV() const
153 {
154 return m_NPEperMeV;
155 }
156
160 void setNPEperMeV(float npe)
161 {
162 m_NPEperMeV = npe;
163 }
164
168 float getMinCosTheta() const
169 {
170 return m_MinCosTheta;
171 }
172
176 void setMinCosTheta(float minCosTheta)
177 {
178 m_MinCosTheta = minCosTheta;
179 }
180
185 {
187 }
188
192 void setMirrorReflectiveIndex(float reflectiveIndex)
193 {
194 m_MirrorReflectiveIndex = reflectiveIndex;
195 }
196
201 {
203 }
204
209 {
211 }
212
217 {
219 }
220
225 {
227 }
228
232 float getFiberLightSpeed() const
233 {
234 return m_FiberLightSpeed;
235 }
236
240 void setFiberLightSpeed(float lightSpeed)
241 {
242 m_FiberLightSpeed = lightSpeed;
243 }
244
249 {
250 return m_AttenuationLength;
251 }
252
256 void setAttenuationLength(float length)
257 {
258 m_AttenuationLength = length;
259 }
260
265 {
267 }
268
272 void setPEAttenuationFrequency(float frequency)
273 {
274 m_PEAttenuationFrequency = frequency;
275 }
276
280 float getMeanSiPMNoise() const
281 {
282 return m_MeanSiPMNoise;
283 }
284
288 void setMeanSiPMNoise(int noise)
289 {
290 m_MeanSiPMNoise = noise;
291 }
292
296 bool getEnableConstBkg() const
297 {
298 return m_EnableConstBkg;
299 }
300
304 void setEnableConstBkg(bool enable)
305 {
306 m_EnableConstBkg = enable;
307 }
308
309 private:
310
313
316
319
322
325
328
331
334
337
340
343
346
349
352
355
360
363
366
367 };
368
370}
Class to store KLM scintillator simulation parameters in the database.
bool getEnableConstBkg() const
Check if background is enabled in fitting.
void setMinCosTheta(float minCosTheta)
Set cosine of maximal light capture angle (by fiber).
float getMirrorReflectiveIndex() const
Get mirror reflective index.
float getFiberLightSpeed() const
Get speed of light in fiber.
float m_PEAttenuationFrequency
Attenuation frequency of a single photoelectron pulse, ns^-1.
float getPEAttenuationFrequency() const
Get attenuation frequency of a single photoelectron pulse.
void setScintillatorDeExcitationTime(float time)
Set scintillator deexcitation time.
ClassDef(Belle2::KLMScintillatorDigitizationParameters, 2)
Class version.
void setAttenuationLength(float length)
Set attenuation length in fiber.
float getAttenuationLength() const
Get attenuation length in fiber.
void setFiberDeExcitationTime(float time)
Set fiber deexcitation time.
float getFiberDeExcitationTime() const
Get fiber deexcitation time.
int getADCSaturation() const
Get ADC readout corresponding to saturation.
int m_NDigitizations
Number of digitizations (points) in one sample.
float getNPEperMeV() const
Get number of photoelectrons / 1 MeV.
float getMinCosTheta() const
Get cosine of maximal light capture angle (by fiber).
void setADCSaturation(int saturation)
Set ADC readout corresponding to saturation.
void setADCSamplingTDCPeriods(int periods)
Set ADC sampling time in TDC periods.
void setADCPEAmplitude(float amplitude)
Set ADC photoelectron amplitude.
int getADCThreshold() const
Get ADC readout corresponding to saturation.
void setEnableConstBkg(bool enable)
Set if background is enabled in fitting.
int m_ADCSaturation
ADC readout corresponding to saturation.
void setMirrorReflectiveIndex(float reflectiveIndex)
Set mirror reflective index.
void setMeanSiPMNoise(int noise)
Set mean for SiPM backgrounds.
float getMeanSiPMNoise() const
Get mean for SiPM backgrounds.
void setFiberLightSpeed(float lightSpeed)
Set speed of light in fiber.
void setNPEperMeV(float npe)
Set number of photoelectrons / 1 MeV.
float getADCPEAmplitude() const
Get ADC photoelectron amplitude.
float m_MinCosTheta
Cosine of maximal light capture angle (by fiber).
void setADCThreshold(int threshold)
Set ADC readout corresponding to saturation.
void setNDigitizations(int digitizations)
Set number of digitizations (points) in one sample.
float m_ScintillatorDeExcitationTime
Scintillator deexcitation time, ns.
float getScintillatorDeExcitationTime() const
Get scintillator deexcitation time.
void setPEAttenuationFrequency(float frequency)
Set attenuation frequency of a single photoelectron pulse.
int getADCSamplingTDCPeriods() const
Get ADC sampling time in TDC periods.
int getNDigitizations() const
Get number of digitizations (points) in one sample.
Abstract base class for different kinds of events.