 |
Belle II Software
release-05-01-25
|
17 #include <framework/core/Module.h>
18 #include <framework/datastore/StoreArray.h>
21 #include <ecl/digitization/EclConfigurationPure.h>
49 class ECLDigitizerPureCsIModule :
public Module {
71 virtual void event()
override;
74 virtual void endRun()
override;
94 struct crystallinks_t {
95 short unsigned int idn;
96 short unsigned int inoise;
97 short unsigned int ifunc;
98 short unsigned int iss;
123 std::vector<signalsample_type>
m_ss;
128 std::vector<ECLNoiseData>
m_noise;
int m_testtrg
Fixed trigger time for testing purposes.
a struct for the fit parameters for the pure CsI calorimeter
void readDSPDB()
read Shaper-DSP data from root file.
~ECLDigitizerPureCsIModule()
Destructor.
bool m_NoCovMatrix
Flag to use a diagonal (neutral) Covariance matrix.
std::vector< fitparams_type > m_fitparams
Fitting parameters.
static constexpr const char * eclPureCsIInfoArrayName()
Pure CsI Info array name.
static constexpr const char * eclDigitArrayName()
Pure CsI digit array name.
StoreArray< ECLDigit > m_ecldigits
StoreArray ECLDigit.
a struct for the fit parameters for the pure CsI calorimeter
static constexpr int m_nch
total number of electronic channels (crystals) in fwd endcap calorimeter
int m_thetaIdMax
Ring ID of last pure CsI ring in FWD.
std::vector< ECLNoiseData > m_noise
Parameters for correlated noise stimation.
void mapGeometry()
Returns ring ID for a certain crystal.
virtual void initialize() override
Initialize variables
double m_photostatresolution
Resolution for a 1 MeV energy deposit.
std::vector< signalsample_type > m_ss
Tabulated shape line.
int m_nEvent
Event number.
Abstract base class for different kinds of events.
std::vector< adccounts_type > m_adc
Storage for adc hits from entire calorimeter (8736 crystals).
bool m_debug
Flag for debug mode.
StoreArray< ECLPureCsIInfo > m_eclpurecsiinfo
StoreArray ECLPureCsIInfo.
ECLDigitizerPureCsIModule()
Constructor.
int m_thetaID[ECL::EclConfigurationPure::m_nch]
ECL ring ID.
int m_tickFactor
multiplication factor to get adc tick from trigger tick.
double m_testsig
Shift in signal arrival time, for testing purposes.
bool m_background
Flag to set covariance matrix for WF with beam-bkg.
StoreArray< ECLDsp > m_ecldsps
StoreArray ECLDsp.
StoreArray< ECLHit > m_hitLists
StoreArray ECLHit.
int m_thetaIdMin
Module parameters.
virtual void endRun() override
Nothing so far.
static constexpr const char * eclDspArrayName()
Pure CsI DSP array name.
bool m_calibration
Flag to use the DigitizerPureCsI for Waveform fit Covariance Matrix calibration.
bool isPureCsI(int cellId)
Returns 1 if corresponding crystal is set as pure CsI crystal.
double m_sigmaTrigger
Trigger resolution.
Accessor to arrays stored in the data store.
virtual void terminate() override
Free memory.
double m_testenedep
Fixed energy deposition in all crystals, for testing purposes.
virtual void event() override
Actual digitization of all pure CsI hits in the ECL.
double m_elecNoise
Electronic Noise energy equivalente in MeV.
std::vector< crystallinks_t > m_tbl
Lookup table for ECL channels.
a struct for a signal sample for the pure CsI calorimeter
virtual void beginRun() override
Nothing so far.