81 #ifndef STBTOFMATCHMAKER_HH
82 #define STBTOFMATCHMAKER_HH
84 #include "StThreeVectorD.hh"
92 #include "StThreeVectorF.hh"
99 class StSPtrVecBTofRawHit;
100 class StSPtrVecBTofHit;
109 typedef std::vector<Int_t> IntVec;
110 typedef std::vector<UInt_t> UIntVec;
111 typedef std::vector<Double_t> DoubleVec;
124 Int_t FinishRun(Int_t);
136 void setStandardTrackGeometry();
167 void bookHistograms();
169 void writeHistogramsToFile();
172 void processStEvent();
183 Bool_t doPrintMemoryInfo;
184 Bool_t doPrintCpuInfo;
187 static const Int_t mDAQOVERFLOW = 255;
190 static const Int_t mNTray = 120;
192 static const Int_t mNTOF = 192;
194 static const Int_t mNModule = 32;
196 static const Int_t mNCell = 6;
198 static const Int_t mNVPD = 19;
201 static const Int_t mEastVpdTrayId = 122;
203 static const Int_t mWestVpdTrayId = 121;
214 Bool_t mUseIdealGeometry;
215 Bool_t mCalculateAlign;
217 Bool_t mOuterTrackGeometry;
218 Bool_t mGeometrySave;
219 Bool_t mInitFromOther;
221 string mHistoFileName;
222 string mAlignFileName;
229 Int_t mAcceptedEventCounter;
230 Int_t mTofEventCounter;
231 Int_t mAcceptAndBeam;
234 unsigned int mMinHitsPerTrack;
235 unsigned int mMinFitPointsPerTrack;
236 Float_t mMinFitPointsOverMax;
242 TH2D* mADCTDCCorelation;
244 TH1D* mEventCounterHisto;
245 TH1D* mCellsMultInEvent;
246 TH1D* mHitsMultInEvent;
247 TH1D* mHitsPrimaryInEvent;
248 TH1D* mHitsMultPerTrack;
249 TH1D* mDaqOccupancy[mNTray];
250 TH1D* mDaqOccupancyProj[mNTray];
253 TH2D* mHitCorr[mNTray];
254 TH2D* mHitCorrModule[mNTray];
256 TH2D* mDeltaHitFinal[mNTray];
266 TH1D* mCellsPerEventMatch1;
267 TH1D* mHitsPerEventMatch1;
268 TH1D* mCellsPerTrackMatch1;
269 TH1D* mTracksPerCellMatch1;
270 TH1D* mDaqOccupancyMatch1;
271 TH2D* mDeltaHitMatch1;
273 TH1D* mCellsPerEventMatch2;
274 TH1D* mHitsPerEventMatch2;
275 TH1D* mCellsPerTrackMatch2;
276 TH1D* mTracksPerCellMatch2;
277 TH1D* mDaqOccupancyMatch2;
278 TH2D* mDeltaHitMatch2;
280 TH1D* mCellsPerEventMatch3;
281 TH1D* mHitsPerEventMatch3;
282 TH1D* mCellsPerTrackMatch3;
283 TH1D* mTracksPerCellMatch3;
284 TH1D* mDaqOccupancyMatch3;
285 TH2D* mDeltaHitMatch3;
287 TH1D* mCellsPrimaryPerEventMatch3;
289 typedef std::vector<Int_t> idVector;
290 typedef idVector::iterator idVectorIter;
292 struct StructCellHit{
321 typedef std::vector<StructCellHit> tofCellHitVector;
322 typedef std::vector<StructCellHit>::iterator tofCellHitVectorIter;
325 virtual const char *GetCVS()
const
326 {
static const char cvs[]=
"Tag $Name: $ $Id: StBTofMatchMaker.h,v 1.13 2017/10/20 17:50:33 smirnovd Exp $ built " __DATE__
" " __TIME__ ;
return cvs;}
334 inline void StBTofMatchMaker::setStandardTrackGeometry(){mOuterTrackGeometry=
false;}
void setMaxDCA(Float_t)
set maximum distance of closest approach
void setAlignFileName(const Char_t *infile="")
input file for alignment parameters
Int_t Make()
Main match algorithm.
void setMinHitsPerTrack(Int_t)
set minimum hits per track
void setMinFitPointsPerTrack(Int_t)
set minimum fit points per track
Int_t Finish()
Print run summary, and write QA histograms.
StBTofGeometry * getBTofGeom()
method to retrieve the BTofGeom
Int_t Init()
process start-up options
void setCreateTreeFlag(Bool_t tree=kTRUE)
enable track-tree filling
void setMuDstIn(Bool_t muDstIn=kTRUE)
switch to read in StEvent/MuDst
Int_t InitRun(Int_t)
initialize DaqMap, Geometry, and INL
void setOuterTrackGeometry()
selection of inner or outer geometry. By default - outerGeometry
void setHistoFileName(const Char_t *)
set histogram output file name
void setSaveGeometry(const Bool_t geomSave=kFALSE)
save geometry if it will be used by following makers in the chain
void setMinFitPointsOverMax(Float_t)
set minimum fit-points/max-points ratio
void setIdealGeometry(const Bool_t useIdealGeometry=kTRUE)
switch between standard and ideal MC geometry
StBTofMatchMaker(const Char_t *name="btofMatch")
Default constructor.
void setCreateHistoFlag(Bool_t histos=kTRUE)
enable QA histogram filling
void setCalculateAlign(const Bool_t calcAlign=kTRUE)
switch for alignment calculation
void setNtupleFileName(const Char_t *)
set ntuple output file name