31 #ifndef StTofNtupleMaker_hh
32 #define StTofNtupleMaker_hh
35 #ifndef ST_NO_NAMESPACES
38 #include "StTofpSlatData.h"
39 #include "StTofpMatchData.h"
48 static const Int_t NTOFP = 41;
49 static const Int_t NPVPD = 6;
58 void SetNtupleFileName(Char_t*);
59 void setOuterTrackGeometry();
60 void setStandardTrackGeometry();
61 void setValidAdcRange(Int_t, Int_t);
62 void setValidTdcRange(Int_t, Int_t);
64 Bool_t doPrintMemoryInfo;
69 Float_t mTofpAdc[NTOFP];
70 Float_t mTofpTdc[NTOFP];
71 Float_t mPvpdAdc[NPVPD];
72 Float_t mPvpdAdcLoRes[NPVPD];
73 Float_t mPvpdTdc[NPVPD];
80 Bool_t mOuterTrackGeometry;
82 Bool_t validAdc(
float);
83 Bool_t validTdc(
float);
92 Int_t mAcceptedEvents;
97 string mTupleFileName;
104 TTree *mNoMatchTuple;
105 TNtuple *mHitPosTuple;
107 virtual const char *GetCVS()
const
108 {
static const char cvs[]=
"Tag $Name: $ $Id: StTofpNtupleMaker.h,v 1.3 2014/08/06 11:43:48 jeromel Exp $ built " __DATE__
" " __TIME__ ;
return cvs;}
113 inline void StTofpNtupleMaker::setValidAdcRange(Int_t min, Int_t max){mMinValidAdc=min;mMaxValidAdc=max;}
114 inline void StTofpNtupleMaker::setValidTdcRange(Int_t min, Int_t max){mMinValidTdc=min;mMaxValidTdc=max;}
115 inline void StTofpNtupleMaker::setOuterTrackGeometry(){mOuterTrackGeometry=
true;}
116 inline void StTofpNtupleMaker::setStandardTrackGeometry(){mOuterTrackGeometry=
false;}
117 inline void StTofpNtupleMaker::SetNtupleFileName(Char_t* filename){mTupleFileName=filename;}
119 inline Bool_t StTofpNtupleMaker::validAdc(
float adc){
return((adc>=mMinValidAdc) && (adc<=mMaxValidAdc));}
120 inline Bool_t StTofpNtupleMaker::validTdc(
float tdc){
return((tdc>=mMinValidTdc) && (tdc<=mMaxValidTdc));}
Int_t Make()
get tofp slat, pvpd rawdata and global data from StEvent and store in flat TTrees (ntuples) ...
Structure for TOFp Match TTree.
Bool_t doPrintCpuInfo
control debug memory data
Structure for TOFp Slat TTree.
Time-of-Flight Geometry Utilities.
Int_t getTofData(StTofCollection *)
control debug timing data
Int_t Init()
initialize ntuple and daqmap, and reset counters
Int_t Finish()
write and close the ntuple file
StTofpNtupleMaker(const Char_t *name="tofpNtuple")
constructor sets default parameters
~StTofpNtupleMaker()
default empty destructor