54 #ifndef StBbcTriggerDetector_hh
55 #define StBbcTriggerDetector_hh
70 unsigned int numberOfPMTs()
const;
71 unsigned int numberOfRegisters()
const;
72 unsigned int numberOfPedestalData()
const;
73 unsigned int numberOfScalars()
const;
75 unsigned short adc(
unsigned int)
const;
76 unsigned short tdc(
unsigned int)
const;
77 unsigned short bbcRegister(
unsigned int)
const;
78 unsigned short pedestalData(
unsigned int)
const;
79 unsigned int scalar(
unsigned int)
const;
81 unsigned short pedestal(
unsigned int id)
const;
82 unsigned short pedestalWidth(
unsigned int id)
const;
83 unsigned short mip(
unsigned int id)
const;
84 unsigned short mipWidth(
unsigned int id)
const;
89 int adcSumEastLarge();
90 int adcSumWestLarge();
94 unsigned short onlineTimeDifference()
const;
105 int tdcEarliestEast();
106 int tdcEarliestWest();
112 void setAdc(
unsigned int,
unsigned short);
113 void setTdc(
unsigned int,
unsigned short);
114 void setRegister(
unsigned int,
unsigned short);
115 void setPedestal(
unsigned int,
unsigned short);
116 void setScalar(
unsigned int,
unsigned int);
117 void setOnlineTimeDifference(
unsigned short);
120 unsigned int year()
const;
121 void setYear(
unsigned int);
131 UShort_t mAdc[mMaxPMTs];
132 UShort_t mTdc[mMaxPMTs];
133 UShort_t mReg[mMaxRegisters];
134 UShort_t mPed[mMaxPedData];
135 UShort_t mScl[mMaxScalars];
143 StBbcTriggerDetector::numberOfPMTs()
const {
return mMaxPMTs;}
146 StBbcTriggerDetector::numberOfRegisters()
const {
return mMaxRegisters;}
149 StBbcTriggerDetector::numberOfPedestalData()
const {
return mMaxPedData;}
152 StBbcTriggerDetector::numberOfScalars()
const {
return mMaxScalars;}
154 inline unsigned short
155 StBbcTriggerDetector::pedestal(
unsigned int id)
const {
return pedestalData(
id);}
157 inline unsigned short
158 StBbcTriggerDetector::pedestalWidth(
unsigned int id)
const {
return pedestalData(
id+32);}
160 inline unsigned short
161 StBbcTriggerDetector::mip(
unsigned int id)
const {
return pedestalData(
id+64);}
163 inline unsigned short
164 StBbcTriggerDetector::mipWidth(
unsigned int id)
const {
return pedestalData(
id+96);}
167 StBbcTriggerDetector::year()
const {
return mYear;}
170 StBbcTriggerDetector::setYear(
unsigned int v) {mYear = v;}
172 inline unsigned short
173 StBbcTriggerDetector::onlineTimeDifference()
const {
return mDSMVTX;}
176 StBbcTriggerDetector::setOnlineTimeDifference(
unsigned short v) {mDSMVTX = v;}