ROOT logo
#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 */







 htoftrb3unpacker.h:1
 htoftrb3unpacker.h:2
 htoftrb3unpacker.h:3
 htoftrb3unpacker.h:4
 htoftrb3unpacker.h:5
 htoftrb3unpacker.h:6
 htoftrb3unpacker.h:7
 htoftrb3unpacker.h:8
 htoftrb3unpacker.h:9
 htoftrb3unpacker.h:10
 htoftrb3unpacker.h:11
 htoftrb3unpacker.h:12
 htoftrb3unpacker.h:13
 htoftrb3unpacker.h:14
 htoftrb3unpacker.h:15
 htoftrb3unpacker.h:16
 htoftrb3unpacker.h:17
 htoftrb3unpacker.h:18
 htoftrb3unpacker.h:19
 htoftrb3unpacker.h:20
 htoftrb3unpacker.h:21
 htoftrb3unpacker.h:22
 htoftrb3unpacker.h:23
 htoftrb3unpacker.h:24
 htoftrb3unpacker.h:25
 htoftrb3unpacker.h:26
 htoftrb3unpacker.h:27
 htoftrb3unpacker.h:28
 htoftrb3unpacker.h:29
 htoftrb3unpacker.h:30
 htoftrb3unpacker.h:31
 htoftrb3unpacker.h:32
 htoftrb3unpacker.h:33
 htoftrb3unpacker.h:34
 htoftrb3unpacker.h:35
 htoftrb3unpacker.h:36
 htoftrb3unpacker.h:37
 htoftrb3unpacker.h:38
 htoftrb3unpacker.h:39
 htoftrb3unpacker.h:40
 htoftrb3unpacker.h:41
 htoftrb3unpacker.h:42
 htoftrb3unpacker.h:43
 htoftrb3unpacker.h:44
 htoftrb3unpacker.h:45