 |
Belle II Software
release-05-01-25
|
13 #include <framework/core/Module.h>
15 #include <framework/datastore/StoreArray.h>
16 #include <top/dataobjects/TOPSimHit.h>
17 #include <top/dataobjects/TOPSimCalPulse.h>
18 #include <top/dataobjects/TOPDigit.h>
19 #include <top/dataobjects/TOPRawDigit.h>
20 #include <top/dataobjects/TOPRawWaveform.h>
21 #include <mdst/dataobjects/MCParticle.h>
23 #include <framework/database/DBObjPtr.h>
24 #include <top/dbobjects/TOPSampleTimes.h>
25 #include <top/dbobjects/TOPCalTimebase.h>
26 #include <top/dbobjects/TOPCalChannelT0.h>
27 #include <top/dbobjects/TOPCalAsicShift.h>
28 #include <top/dbobjects/TOPCalModuleT0.h>
29 #include <top/dbobjects/TOPCalCommonT0.h>
30 #include <top/dbobjects/TOPCalChannelPulseHeight.h>
31 #include <top/dbobjects/TOPCalChannelThreshold.h>
32 #include <top/dbobjects/TOPCalChannelNoise.h>
33 #include <top/dbobjects/TOPFrontEndSetting.h>
34 #include <top/dbobjects/TOPCalTimeWalk.h>
36 #include <top/modules/TOPDigitizer/PulseHeightGenerator.h>
51 class TOPDigitizerModule :
public Module {
74 virtual void event()
override;
TOPDigitizerModule()
Constructor.
TimeOffset getTimeOffset(double trgOffset, int moduleID, int pixelID)
Returns a complete time offset by adding time mis-calibration to trgOffset.
double m_rmsNoise
r.m.s of noise [ADC counts]
DBObjPtr< TOPCalChannelThreshold > m_thresholds
channel thresholds
DBObjPtr< TOPCalAsicShift > m_asicShift
ASIC shifts calibration constants.
StoreArray< TOPRawDigit > m_rawDigits
collection of raw digits
double m_electronicJitter
r.m.s of electronic jitter
bool m_useDatabase
if true, use calibration constants from database
virtual void event() override
Event processor.
DBObjPtr< TOPCalChannelT0 > m_channelT0
channel T0 calibration constants
bool m_simulateTTS
if true, add TTS to simulated hits
DBObjPtr< TOPCalCommonT0 > m_commonT0
common T0 calibration constants
int m_thresholdCount
minimal number of samples above threshold
bool m_useSampleTimeCalibration
if true, use time base calibration
virtual void beginRun() override
Called when entering a new run.
TOPSampleTimes m_sampleTimes
equidistant sample times
double error
error squared
StoreArray< MCParticle > m_mcParticles
collection of MC particles
StoreArray< TOPSimHit > m_simHits
collection of simuated hits
Class for accessing objects in the database.
int m_hysteresis
pulse height threshold hysteresis [ADC counts]
StoreArray< TOPSimCalPulse > m_simCalPulses
collection of simuated cal pulses
Optional DBObjPtr: This class behaves the same as the DBObjPtr except that it will not raise errors w...
Generates pulse height according to distribution: P(x) = (x/x0)^p1 * exp(-(x/x0)^p2),...
DBObjPtr< TOPCalModuleT0 > m_moduleT0
module T0 calibration constants
DBObjPtr< TOPCalChannelPulseHeight > m_pulseHeights
pulse height param.
bool m_allChannels
if true, always make waveforms for all channels
Calibration constants of a singe ASIC channel: time axis (sample times)
Abstract base class for different kinds of events.
int windowShift
number of shifted windows
double m_ADCp1
pulse height distribution parameter, must be non-negative
double m_ADCmax
pulse height upper bound of range [ADC counts]
double m_minWidthXheight
minimal width * height [ns * ADC counts]
TimeOffset(double v, double e, int n, double t)
Full constructor.
int m_threshold
pulse height threshold [ADC counts]
double generatePulseHeight(int moduleID, int pixelID) const
Generates and returns pulse height.
DBObjPtr< TOPFrontEndSetting > m_feSetting
front-end settings
TOP::PulseHeightGenerator m_pulseHeightGenerator
default generator
double timeShift
shift expressed in time
bool m_useWaveforms
if true, use full waveform digitization
virtual void initialize() override
Initialize the Module.
StoreArray< TOPDigit > m_digits
collection of digits
StoreArray< TOPRawWaveform > m_waveforms
collection of waveforms
double m_ADCx0
pulse height distribution parameter [ADC counts]
DBObjPtr< TOPCalTimebase > m_timebases
sample times from database
double m_timeZeroJitter
r.m.s of T0 jitter
OptionalDBObjPtr< TOPCalTimeWalk > m_timeWalk
time-walk calibration constants
Accessor to arrays stored in the data store.
Utility structure for time offset.
double m_darkNoise
uniform dark noise (hits per bar)
DBObjPtr< TOPCalChannelNoise > m_noises
channel noise levels (r.m.s)
double m_syncTimeBase
SSTin period.
double m_ADCp2
pulse height distribution parameter, must be positive