1 #ifndef STMTDCALIMAKER_H
2 #define STMTDCALIMAKER_H
17 #ifndef ST_NO_NAMESPACES
34 virtual Int_t InitRun(Int_t);
37 void setSlewingCorr(Bool_t val=kTRUE);
45 void setCalibFileT0(
const Char_t*);
46 void setCalibFileDy(
const Char_t*);
47 void setCalibFileDz(
const Char_t*);
48 void setCalibFileTrigger(
const Char_t*);
51 void processStEvent();
54 Double_t
mtdAllCorr(
const Double_t tot,
const Int_t iBackleg,
const Int_t iModule,
const Int_t iCell);
55 void bookHistograms();
65 Double_t mMtdT0Corr[mNBackleg][mNModule][mNCell];
66 Double_t mMtdTotCorr[mNBackleg][mNModule][mNBinMax];
67 Double_t mMtdTotEdge[mNBackleg][mNModule][mNBinMax];
68 Double_t mMtdDyCorr[mNBackleg][mNModule];
69 Double_t mMtdDzCorr[mNBackleg][mNModule][mNCell];
70 Double_t mTriggerHighEdge[mNBackleg][mNModule];
71 Double_t mTriggerLowEdge[mNBackleg][mNModule];
77 Bool_t mUseTriggercut;
83 string mCalibFileTrigger;
85 TH1D *hTimeOfFlightCorr;
87 TH2F *hTimeOfFlightModule;
88 TH2F *hTimeOfFlightCorrModule;
91 TH2F *hTOFTimeOfFlightTray;
95 virtual const Char_t *GetCVS()
const
97 static const char cvs[]=
"Tag $Name: $Id: built " __DATE__
" " __TIME__ ;
return cvs;
107 inline void StMtdCalibMaker::setCalibFileT0(
const Char_t* filename) { mCalibFileT0 = filename; }
108 inline void StMtdCalibMaker::setCalibFileDy(
const Char_t* filename) { mCalibFileDy = filename; }
109 inline void StMtdCalibMaker::setCalibFileDz(
const Char_t* filename) { mCalibFileDz = filename; }
110 inline void StMtdCalibMaker::setCalibFileTrigger(
const Char_t* filename) { mCalibFileTrigger = filename; }
void setCalibFileTot(const Char_t *)
set input source
void setUseTriggercut(Bool_t val=kTRUE)
switch to run in debug mod
Double_t mtdAllCorr(const Double_t tot, const Int_t iBackleg, const Int_t iModule, const Int_t iCell)
Caculate all the correction value for time of flight.
virtual Int_t Init()
Destructor.
void setInitFromFile(Bool_t val=kTRUE)
enable QA histogram filling
virtual ~StMtdCalibMaker()
Default constructor.
void setDebug(Bool_t val=kFALSE)
switch to turn on slewing correction or not - maybe only T0 in the first step.
StMtdCalibMaker(const char *name="mtdCalib")
void setCreateHistoFlag(Bool_t histos=kTRUE)
switch to use trigger cut