#ifndef HTOFTRB3UNPACKER_H #define HTOFTRB3UNPACKER_H #include "hlocation.h" #include "htrb3tdcunpacker.h" #include <vector> class HTofTrb3Lookup; class HTofTrb3LookupChan; class HTofTrb3Unpacker: public HTrb3TdcUnpacker { protected: HLocation fLoc; // location of raw cell object HTofTrb3Lookup* fLookup; // TRB3 lookup table Bool_t fTimeRef; // use reference time ? Double_t fTimeShift; //shift all times by a constant (to positive). Pendant to trb2 unpacker timeShift static Bool_t fHasPrintedTDC; public: HTofTrb3Unpacker(vector<UInt_t>& ids); virtual ~HTofTrb3Unpacker(void) {} Bool_t init(void); Bool_t reinit(void); Int_t execute(void); void disableTimeRef(Bool_t disable) { fTimeRef = disable ; } void shiftTimes(Double_t ts) {fTimeShift = ts;}; Int_t addRawHit(Double_t t_leading, Double_t t_trailing, HTofTrb3LookupChan *chan); ClassDef(HTofTrb3Unpacker, 0) // TRB3 unpacker for the TOF detector }; #endif /* !HTOFTRB3UNPACKER_H */