1 #ifndef StSortTofRawData_h
2 #define StSortTofRawData_h
12 #include "TDataSetIter.h"
13 #include "TObjectSet.h"
16 #ifndef ST_NO_NAMESPACES
20 #if !defined(ST_NO_TEMPLATE_DEF_ARGS) || defined(__CINT__)
22 typedef vector<Int_t> IntVec;
24 typedef vector<Int_t, allocator<Int_t>> IntVec;
35 #ifndef ST_NO_TEMPLATE_DEF_ARGS
36 typedef vector<TOFRawHit> tofRawHitVector;
38 typedef vector<TOFRawHit,allocator<TOFRawHit>> tofRawHitVector;
40 typedef vector<TOFRawHit>::iterator tofRawHitVectorIter;
44 static const UInt_t mNTRAY = 122;
45 tofRawHitVector mRawHitVec[mNTRAY];
47 static const Int_t mNTOF = 192;
48 Int_t mTDIGLeChan2WestPMT[mNTOF], mTDIGTeChan2WestPMT[mNTOF];
49 Int_t mTDIGLeChan2EastPMT[mNTOF], mTDIGTeChan2EastPMT[mNTOF];
52 Float_t mTimeWindow[mNTRAY][2];
64 IntVec GetValidChannel();
65 IntVec GetLeadingTdc(
int channel);
66 IntVec GetTrailingTdc(
int channel);
68 IntVec GetValidChannel(
int tray);
69 IntVec GetLeadingTdc(
int tray,
int channel);
70 IntVec GetTrailingTdc(
int tray,
int channel);
72 IntVec GetLeadingTdc(
int tray,
int channel,
bool triggerevent);
73 IntVec GetTrailingTdc(
int tray,
int channel,
bool triggerevent);
75 Int_t GetTriggerTime(
int tray,
int channel);
void Init(StTofCollection *)