4 #ifndef DCCTBDATAMAPPER_HH 5 #define DCCTBDATAMAPPER_HH 94 void buildDCCFields();
95 void buildTCCFields();
96 void buildSRPFields();
97 void buildTowerFields();
98 void buildXtalFields();
99 void buildTrailerFields();
104 std::set<DCCTBDataField *, DCCTBDataFieldComparator> *
dccFields() {
return dccFields_; }
105 std::set<DCCTBDataField *, DCCTBDataFieldComparator> *
emptyEventFields() {
return emptyEventFields_; }
106 std::set<DCCTBDataField *, DCCTBDataFieldComparator> *
tcc68Fields() {
return tcc68Fields_; }
107 std::set<DCCTBDataField *, DCCTBDataFieldComparator> *
tcc32Fields() {
return tcc32Fields_; }
108 std::set<DCCTBDataField *, DCCTBDataFieldComparator> *
tcc16Fields() {
return tcc16Fields_; }
109 std::set<DCCTBDataField *, DCCTBDataFieldComparator> *
srp68Fields() {
return srp68Fields_; }
110 std::set<DCCTBDataField *, DCCTBDataFieldComparator> *
srp32Fields() {
return srp32Fields_; }
111 std::set<DCCTBDataField *, DCCTBDataFieldComparator> *
srp16Fields() {
return srp16Fields_; }
112 std::set<DCCTBDataField *, DCCTBDataFieldComparator> *
towerFields() {
return towerFields_; }
113 std::set<DCCTBDataField *, DCCTBDataFieldComparator> *
xtalFields() {
return xtalFields_; }
114 std::set<DCCTBDataField *, DCCTBDataFieldComparator> *
trailerFields() {
return trailerFields_; }
118 std::set<DCCTBDataField *, DCCTBDataFieldComparator> *
dccFields_;
129 std::set<DCCTBDataField *, DCCTBDataFieldComparator> *
xtalFields_;
145 DCCBX_BPOSITION = 20,
150 DCCL1_MASK = 0xFFFFFF,
151 TRIGGERTYPE_WPOSITION = 1,
152 TRIGGERTYPE_BPOSITION = 24,
153 TRIGGERTYPE_MASK = 0xF,
158 EVENTLENGTH_WPOSITION = 2,
159 EVENTLENGTH_BPOSITION = 0,
160 EVENTLENGTH_MASK = 0xFFFFFF,
161 DCCERRORS_WPOSITION = 2,
162 DCCERRORS_BPOSITION = 24,
163 DCCERRORS_MASK = 0xFF,
167 RNUMB_MASK = 0xFFFFFF,
172 RUNTYPE_WPOSITION = 4,
173 RUNTYPE_BPOSITION = 0,
174 RUNTYPE_MASK = 0xFFFFFFFF,
176 DETAILEDTT_WPOSITION = 5,
177 DETAILEDTT_BPOSITION = 0,
178 DETAILEDTT_MASK = 0xFFFF,
180 ORBITCOUNTER_WPOSITION = 6,
181 ORBITCOUNTER_BPOSITION = 0,
182 ORBITCOUNTER_MASK = 0xFFFFFFFF,
193 SR_CHSTATUS_WPOSITION = 7,
194 SR_CHSTATUS_BPOSITION = 4,
195 SR_CHSTATUS_MASK = 0xF,
196 TCC_CHSTATUS_WPOSITION = 7,
197 TCC_CHSTATUS_BPOSITION = 8,
198 TCC_CHSTATUS_MASK = 0xF,
200 FE_CHSTATUS_WPOSITION = 8,
201 CHSTATUS_BPOSITION = 0,
202 FE_CHSTATUS_MASK = 0xF
211 TCCBX_BPOSITION = 16,
214 TCCE0_BPOSITION = 28,
221 TCCE1_BPOSITION = 12,
226 TCCTSAMP_WPOSITION = 1,
227 TCCTSAMP_BPOSITION = 23,
229 TCCLE0_WPOSITION = 1,
230 TCCLE0_BPOSITION = 27,
232 TCCLE1_WPOSITION = 1,
233 TCCLE1_BPOSITION = 28,
250 SRPBX_BPOSITION = 16,
253 SRPE0_BPOSITION = 28,
260 SRPE1_BPOSITION = 12,
265 SRPLE0_WPOSITION = 1,
266 SRPLE0_BPOSITION = 27,
268 SRPLE1_WPOSITION = 1,
269 SRPLE1_BPOSITION = 28,
280 TOWERID_WPOSITION = 0,
281 TOWERID_BPOSITION = 0,
286 TOWERBX_WPOSITION = 0,
287 TOWERBX_BPOSITION = 16,
288 TOWERBX_MASK = 0xFFF,
289 TOWERE0_WPOSITION = 0,
290 TOWERE0_BPOSITION = 28,
293 TOWERL1_WPOSITION = 1,
294 TOWERL1_BPOSITION = 0,
295 TOWERL1_MASK = 0xFFF,
296 TOWERE1_WPOSITION = 1,
297 TOWERE1_BPOSITION = 12,
299 TOWERLENGTH_WPOSITION = 1,
300 TOWERLENGTH_BPOSITION = 16,
301 TOWERLENGTH_MASK = 0x1FF
306 STRIPID_WPOSITION = 0,
307 STRIPID_BPOSITION = 0,
309 XTALID_WPOSITION = 0,
310 XTALID_BPOSITION = 4,
321 XTAL_TZS_WPOSITION = 0,
322 XTAL_TZS_BPOSITION = 16,
324 XTAL_GDECISION_WPOSITION = 0,
325 XTAL_GDECISION_BPOSITION = 17,
326 XTAL_GDECISION_MASK = 0x1,
349 TLENGTH_WPOSITION = 1,
350 TLENGTH_BPOSITION = 0,
351 TLENGTH_MASK = 0xFFFFFF,
void setBitPosition(uint32_t bitpos)
void setName(std::string namestr)
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * dccFields_
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * srp32Fields()
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * srp32Fields_
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * tcc68Fields_
bool operator()(DCCTBDataField *d1, DCCTBDataField *d2) const
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * trailerFields_
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * tcc16Fields_
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * srp16Fields_
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * tcc32Fields_
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * emptyEventFields_
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * towerFields()
void setMask(uint32_t maskvalue)
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * tcc32Fields()
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * xtalFields_
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * srp16Fields()
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * srp68Fields()
DCCTBDataField(std::string name, uint32_t wordPosition, uint32_t bitPosition, uint32_t mask)
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * xtalFields()
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * trailerFields()
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * tcc16Fields()
DCCTBDataParser * parser_
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * srp68Fields_
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * emptyEventFields()
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * dccFields()
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * tcc68Fields()
void setWordPosition(uint32_t wordpos)
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * towerFields_