 |
Belle II Software
release-05-01-25
|
1 #ifndef TRGECLTCALIBRATION_h
2 #define TRGECLTCALIBRATION_h
13 #include <framework/core/Module.h>
14 #include <trg/ecl/TrgEclMapping.h>
16 #include "trg/ecl/dataobjects/TRGECLHit.h"
17 #include "trg/ecl/dataobjects/TRGECLTrg.h"
18 #include "trg/ecl/dataobjects/TRGECLCluster.h"
19 #include "trg/ecl/dataobjects/TRGECLUnpackerStore.h"
20 #include "trg/ecl/dataobjects/TRGECLUnpackerEvtStore.h"
22 #include <framework/datastore/StoreObjPtr.h>
23 #include <framework/datastore/StoreArray.h>
31 class TRGECLTimingCalModule :
public Module {
46 virtual void event()
override;
48 virtual void endRun()
override;
std::vector< std::vector< double > > Chisq2
chisq component2
int fInclude_BR
Flag include barrel 0 : exclude BR 1 : include BR.
int fCalType
Calibration type 0 : beam 1 : cosmic.
virtual void beginRun() override
Begin Run function.
std::vector< double > chisq_result
Chisq values based on time offset obtained from "Solve_Matrix" function.
virtual void initialize() override
initialize function
double cut_chisq
TC chisq cut (iteration mode)
int Solve_Matrix()
Solve matrix.
int cut_ntc
The number of TC cut.
void Save_Result()
Save time offset and chisq as a root file.
void InitParams()
Parameters initialization.
std::vector< bool > b_Inc_TC
Flag TC included.
std::vector< int > Nevent_TC
The number of uesed TC hit (TC by TC)
int fInclude_FWD
Flag include forward endcap 0 : exclude FWD 1 : include FWD.
std::vector< double > TimeOffset
Time offset Input time offset (iteration mode)
std::vector< double > tcal_result
Time offset calibration result.
std::string str_default_name
Default output root file name.
double cut_low_energy
TC energy cut lower limit.
int fInclude_BWD
Flag include backward endcap 0 : exclude BWD 1 : include BWD.
int TC_ref
Reference TC whose time offset set to be 0.
double cut_high_energy
TC energy cut upper limit.
virtual void event() override
Event function.
int f3Dbhabha_veto
Flag 3D bhabha veto 0 : not use 1 : use.
std::vector< std::vector< double > > Chisq1
chisq component1
TVectorD _Vector
Vector component.
std::vector< double > TCTiming
TC time.
std::vector< std::vector< double > > Chisq3
chisq component3
void TRGECLTimingCalClear()
Clear vector every event.
int fSimulation
Flag simulation 0 : real data 1 : simulation data.
void GetTimeOffset()
Get previous time offsets (iteration mode)
Abstract base class for different kinds of events.
std::vector< TVector3 > TCPosition
TC position from TRGECLMap (cosmic calibration)
double TCEnergyCalibrationConstant
ADC to GeV energy conversion factor.
int FlagMatrixSolved
Flag matrix solved (0 : not solved 1 : solved)
virtual void endRun() override
End Run function.
int fIteration
Flag iteration 0 : first calbiration 1 : iteration.
TMatrixDSym _Matrix
Matrix Marix component.
TRGECLTimingCalModule()
Constructor.
std::string str_timeoffset_fname
Input time offset file name (iteration mode)
virtual void terminate() override
Terminate function.
void Set_TCposition()
Set TC position from TRGECLMap.
int nevt_selected
The number of selected events.
int FillMatrix()
Fill matrix and vector components.
std::vector< int > TCId
Trigger Cell TCID.
std::string str_ofilename
Output root file name.
void Calculate_Chisq()
Calculate chisq based on time offset obtained from "Solve_Matrix" function.
std::vector< bool > b_Exclude_TC
Flag TC excluded.
int nevt_read
The number of read events.
int ReadData()
Fill data from.
std::vector< double > tcal_result_err
Time offset error.
std::vector< double > TCEnergy
TC energy.
virtual ~TRGECLTimingCalModule()
Destructor.