28 #ifndef StTofrNtupleMaker_hh
29 #define StTofrNtupleMaker_hh
32 #define __SIGMA_SCALE__ 1000.
34 #ifndef ST_NO_NAMESPACES
37 #include "StTofrCellData.h"
38 #include <StPhysicalHelixD.hh>
43 class StSPtrVecTofData;
56 Int_t InitRun(
int runnumber);
58 Int_t FinishRun(
int runnumber);
61 void SetNtupleFileName(Char_t*);
62 void setOuterTrackGeometry();
63 void setStandardTrackGeometry();
64 void setValidAdcRange(Int_t, Int_t);
65 void setValidTdcRange(Int_t, Int_t);
66 void setInitGeomFromOther(
const Bool_t);
70 bool strobeEvent(StSPtrVecTofData&);
72 bool validAdc(
float const);
73 bool validTdc(
float const);
76 static const Int_t mNTOFR = 120;
77 static const Int_t mNPVPD = 3;
87 Bool_t mInitGeomFromOther;
89 Bool_t mOuterTrackGeometry;
91 Int_t mStrobeTdcMin[mNPVPD];
92 Int_t mStrobeTdcMax[mNPVPD];
99 Float_t mPvpdAdc[mNPVPD];
100 Float_t mPvpdTdc[mNPVPD];
101 Float_t mPvpdAdcLoRes[mNPVPD];
104 Int_t mAcceptedEvents;
109 string mTupleFileName;
114 Bool_t doPrintMemoryInfo;
115 Bool_t doPrintCpuInfo;
120 TTree *mNoMatchTuple;
121 TNtuple *mHitPosTuple;
123 virtual const char *GetCVS()
const
124 {
static const char cvs[]=
"Tag $Name: $ $Id: StTofrNtupleMaker.h,v 1.5 2014/08/06 11:43:48 jeromel Exp $ built " __DATE__
" " __TIME__ ;
return cvs;}
129 inline void StTofrNtupleMaker::setOuterTrackGeometry(){mOuterTrackGeometry=
true;}
130 inline void StTofrNtupleMaker::setStandardTrackGeometry(){mOuterTrackGeometry=
false;}
131 inline void StTofrNtupleMaker::SetNtupleFileName(Char_t* filename){mTupleFileName=filename;}
133 inline void StTofrNtupleMaker::setValidAdcRange(Int_t min, Int_t max){
138 inline void StTofrNtupleMaker::setValidTdcRange(Int_t min, Int_t max){
143 inline bool StTofrNtupleMaker::validAdc(
const float adc){
return((adc>=mMinValidAdc) && (adc<=mMaxValidAdc));}
144 inline bool StTofrNtupleMaker::validTdc(
const float tdc){
return((tdc>=mMinValidTdc) && (tdc<=mMaxValidTdc));}
146 inline void StTofrNtupleMaker::setInitGeomFromOther(
const Bool_t init) { mInitGeomFromOther = init; }
StTofrNtupleMaker(const Char_t *name, const Char_t *outname)
constructor sets default parameters
Int_t Finish()
write and close the ntuple file
Int_t Make()
get tofr slat, pvpd rawdata and global data from StEvent and store in flat TTrees (ntuples) ...
Int_t Init()
initialize ntuple and daqmap, and reset counters
~StTofrNtupleMaker()
default empty destructor
void bookNtuples()
create and initialize ntuple and TTrees