20 #include "htrblookup.h"
29 #include "hcategory.h"
30 #include "hldsubevt.h"
58 if (!lookup)
return kFALSE;
78 if(!decode())
return(-1);
89 correctRefTimeCh127();
114 HTrbLookupBoard *board = lookup->getBoard (subEvtId);
119 Warning (
"execute",
"SubEvent: %i unpacked but channel in Lookup table does not exist", subEvtId);
123 for (Int_t i = 0; i < 128; i++) {
124 if (trbLeadingMult[i] < 1)
continue;
126 HTrbLookupChan *chan = board->getChannel (i);
127 if (chan &&
'W' == (Char_t) (chan->getDetector ())) {
128 loc[0] = (Int_t)chan->getCell();
129 pRaw = (
HWallRaw *) pRawCat->getObject (loc);
132 pRaw = (
HWallRaw *) pRawCat->getSlot (loc);
135 pRaw->
setCell ((Int_t) chan->getCell ());
136 for(Int_t chmult=0; chmult< trbLeadingMult[i]; chmult++){
137 pRaw->
fill( trbLeadingTime[i][chmult], trbADC[i][chmult]);
141 Error (
"execute()",
"Can't get slot");
142 cerr <<
"Can't get slot: Cell " <<(Int_t)chan->getCell() << endl;
147 Error (
"execute()",
"Slot already exists! This should not happen with TRB board data.");
148 cerr <<
"Slot already exists: Cell " <<(Int_t)chan->getCell() << endl;
virtual Bool_t addCategory(Cat_t aCat, HCategory *cat, Option_t opt[])=0
HRuntimeDb * getRuntimeDb(void)
HEvent *& getCurrentEvent(void)
ClassImp(HWallTrbUnpacker) HWallTrbUnpacker
HSpectrometer * getSetup(void)
HDetector * getDetector(const Char_t *name)
virtual HCategory * buildCategory(Cat_t)
HParSet * getContainer(const Text_t *)
virtual HCategory * getCategory(Cat_t aCat)=0
Bool_t fill(const Float_t, const Float_t)