47 #ifndef STVPDCALIMAKER_H
48 #define STVPDCALIMAKER_H
71 virtual Int_t InitRun(Int_t runnumber);
84 void setCalibFilePvpd(
const Char_t* filename);
87 void setVPDHitsCut(
const Int_t eastVpdCut,
const Int_t westVpdCut);
105 Bool_t loadVpdData();
107 Bool_t writeVpdData()
const;
109 Int_t initParameters(Int_t runnumber);
112 void tsum(
const Double_t *tot,
const Double_t *time, std::vector<Int_t> qaTruth);
117 void bookHistograms();
119 void fillHistograms();
121 void writeHistograms()
const;
123 static const Double_t VHRBIN2PS;
125 static const Double_t HRBIN2PS;
127 static const Double_t TMAX;
128 static const Double_t VZDIFFCUT;
129 static const Double_t TDIFFCUT;
130 static const Double_t FracTruncated;
142 Bool_t mValidCalibPar;
144 Int_t mVPDEastHitsCut;
145 Int_t mVPDWestHitsCut;
147 Double_t mVPDTotEdge[2*NVPD][NBinMax];
148 Double_t mVPDTotCorr[2*NVPD][NBinMax];
150 Double_t mVPDLeTime[2*NVPD];
151 Double_t mVPDTot[2*NVPD];
152 std::vector<Int_t> mVPD_qaTruth;
157 UInt_t mVPDHitPatternEast;
158 UInt_t mVPDHitPatternWest;
161 Double_t mVPDVtxZ[MaxVpdVz];
171 string mHistoFileName;
172 TH1D* mhEventCounter;
176 TH1D* mmVpdVertexHist;
178 Bool_t mInitFromFile;
179 string mCalibFilePvpd;
181 Bool_t mForceTofStart;
184 Bool_t mCutVpdOutliers;
187 virtual const char *GetCVS()
const
188 {
static const char cvs[]=
"Tag $Name: $ $Id: StVpdCalibMaker.h,v 1.9 2021/05/29 23:57:19 geurts Exp $ built " __DATE__
" " __TIME__ ;
return cvs;}
198 inline void StVpdCalibMaker::setCalibFilePvpd(
const Char_t* filename) {mCalibFilePvpd = filename;}
void setVPDHitsCut(const Int_t eastVpdCut, const Int_t westVpdCut)
set the VPD # of hits cut
void setCreateHistoFlag(const Bool_t histos=kTRUE)
enable QA histogram filling
Bool_t useVpdStart() const
function for tofCalibMaker to know whether to use VPD as the start or not
void setCutVpdOutliers(const Bool_t val=kTRUE)
Enable/disable default outlier rejection of VPD hits.
void setUseVpdStart(const Bool_t val=kTRUE)
switch to force whether or not to use the VPD as the start time
virtual ~StVpdCalibMaker()
Destructor.
void setHistoFileName(const Char_t *filename)
set histogram output file name
StVpdCalibMaker(const Char_t *name="vpdCalib")
Default constructor.
void setInitFromFile(const Bool_t initFromFile=kTRUE)
read calibration parameters from file
void setMuDstIn()
switch to read in StEvent/MuDst