36 #ifndef StBTofHeader_hh
37 #define StBTofHeader_hh
45 enum {MAXFIBER=4, MAXVPD=19, MAXVPDVZ=20};
50 short fiberHeader(
int fiberId)
const;
51 unsigned int fiberTriggerWord(
int fiberId)
const;
52 unsigned int vpdHitPattern(StBeamDirection eastwest)
const;
53 unsigned short numberOfVpdHits(StBeamDirection eastwest)
const;
54 bool isVpdHit(StBeamDirection eastwest,
int tubeId)
const;
55 float vpdVz(
int rank=0)
const;
56 double tStart()
const;
57 double tStartError()
const;
59 double vpdTime(StBeamDirection eastwest,
int tubeId)
const;
60 unsigned int triggerTime(
int fiberId)
const;
63 int nTzeroCan()
const;
64 double tCanFirst()
const;
65 double tCanLast()
const;
68 int vpdEGoodHits()
const;
69 int vpdWGoodHits()
const;
70 double earliestVpdEHit()
const;
71 double earliestVpdWHit()
const;
72 double closestVpdEHit()
const;
73 double closestVpdWHit()
const;
74 double latestVpdEHit()
const;
75 double latestVpdWHit()
const;
77 void setFiberHeader(
int fiberId,
short val);
78 void setFiberTriggerWord(
int fiberId,
unsigned int val);
79 void setVpdHit(StBeamDirection eastwest,
int tubeId);
80 void removeVpdHit(StBeamDirection eastwest,
int tubeId);
81 void setVpdHitPattern(StBeamDirection eastwest,
unsigned int val);
82 void setVpdVz(
float vz,
int rank=0);
83 void setTStart(
double t);
84 void setTStartError(
double t_err);
85 void setTDiff(
double tdiff);
86 void setVpdTime(StBeamDirection eastwest,
int tubeId,
double t);
87 void setTriggerTime(
unsigned int tdc,
int fiberId);
88 void setNTzero(
short n);
90 void setNTzeroCan(
short nCan);
91 void setTCanFirst(
double tFirst);
92 void setTCanLast(
double tLast);
93 void setVpdEHits(
short vpdEHits);
94 void setVpdWHits(
short vpdWHits);
95 void setVpdEGoodHits(
short vpdEGoodHits);
96 void setVpdWGoodHits(
short vpdWGoodHits);
97 void setEarliestVpdEHit(
double earliestVpdEHit);
98 void setEarliestVpdWHit(
double earliestVpdWHit);
99 void setClosestVpdEHit(
double closestVpdEHit);
100 void setClosestVpdWHit(
double closestVpdWHit);
101 void setLatestVpdEHit(
double latestVpdEHit);
102 void setLatestVpdWHit(
double latestVpdWHit);
105 Short_t mFiberHeader[MAXFIBER];
106 UInt_t mFiberTriggerWord[MAXFIBER];
107 UInt_t mVpdHitPattern[2];
108 Float_t mVpdVz[MAXVPDVZ];
112 Double_t mVpdTime[2][MAXVPD];
113 UInt_t mTriggerTime[MAXFIBER];
120 Double_t mVpdEGoodHits;
121 Double_t mVpdWGoodHits;
122 Double_t mEarliestVpdEHit;
123 Double_t mEarliestVpdWHit;
124 Double_t mClosestVpdEHit;
125 Double_t mClosestVpdWHit;
126 Double_t mLatestVpdEHit;
127 Double_t mLatestVpdWHit;