 |
Belle II Software
release-05-02-19
|
23 #include <framework/core/Module.h>
26 #include <ecl/dataobjects/ECLDigit.h>
27 #include <ecl/modules/eclLocalRunCalibration/ECLLocalRunCalibUnit.h>
46 class ECLLocalRunCalibratorModule :
public Module {
63 void event()
override;
197 ECLLocalRunCalibUnit*
m_time;
int16_t getTimeShift(const ECLDigit &digit) const
Calculate time shift.
uint32_t decodeTrigTime(uint32_t time) const
Decode time.
TH1F * m_histo_ampl
m_histo_ampl is the name of the histogram, which contains amplitude distribution for a certain cell i...
void beginRun() override
Begin run.
int m_cellid
cell id number.
~ECLLocalRunCalibratorModule()
Destructor.
float m_tree_time
Time varible used to fill tree.
bool m_fulltree
Write full tree of times and amplitudes per each cellid (before calculating mean values) to file "ecl...
static const std::string c_timePayloadName
Name of the time payload.
int m_lowRun
Low run of the validity interval.
float m_maxAmpl
Maximum allowed amplitude value.
bool m_addref
If m_addref is true, then the current calibration run will be marked as reference run immediately aft...
std::string m_dbName
Tag of central database or path to a local database.
void writeCalibResultsToDB()
Write calibration results into a database.
ECLLocalRunCalibUnit is the class designed for the control of mean value and the standard deviation a...
std::string m_histoFileName
The path of the .root file with the histograms obtained in the histogram filling mode.
float m_maxTime
Maximum allowed time value.
Abstract base class for different kinds of events.
static const int c_ncellids
Number of cell ids.
float m_tree_ampl
Amplitude varible used to fill tree.
bool m_isFillHisto
If m_isFillHisto is false, than the mode of local run calibration is enabled.
bool m_isLocal
Enables local database usage.
bool m_changePrev
If m_changePrev is true, the validity intervals of the previous payloads stored into the database wil...
int m_tree_cellid
Cellid varible used to fill tree.
void endRun() override
End run.
ECLLocalRunCalibratorModule()
Constructor.
int m_highRun
High run of the validity interval.
TTree * m_tree
Full tree of times and amplitudes per each cellid before calculating mean values.
ECLLocalRunCalibUnit * m_ampl
m_ampl contains amplitude mean value and standard deviation accumulators for all cell ids.
int m_devs
Number of standard deviations used to update value limits.
float m_minAmpl
Minimum allowed amplitude value.
TH1F * m_histo_time
m_histo_time is the name of the histogram, which contains time distribution for a certain cell id.
float m_minTime
Minimum allowed time value.
void event() override
Event.
static const std::string c_amplPayloadName
Name of the amplitude payload.
ECLLocalRunCalibUnit * m_time
m_time contains time mean value and standard deviation accumulators for all cell ids.
void writeHistoToFile()
Write histograms to file in the case, if the histogram filling mode is enabled.
int m_tree_event
Event varible used to fill tree.