HYDRA_development_version
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
hwalltrb2unpacker.h
Go to the documentation of this file.
1 #ifndef HWALLTRB2UNPACKER_H
2 #define HWALLTRB2UNPACKER_H
3 
4 #include "htrb2unpacker.h"
5 #include "hlocation.h"
6 #include "TH2F.h"
7 
8 class HWallTrb2Lookup;
9 
10 class HWallTrb2Unpacker: public HTrb2Unpacker {
11 
12 protected:
13  HLocation loc;
14  HWallTrb2Lookup* lookup; // TRB lookup table
15  Bool_t timeRef; // use reference time ?
16  Bool_t timeRefRemove; // remove reference times from data?
17  Float_t timeShift; //shift all times by a constant (to positive)
18 
19 
20 public:
21  HWallTrb2Unpacker(UInt_t id=0);
23 
24  Int_t execute(void);
25  Bool_t init(void);
26  // Bool_t reinit(void);
27  Bool_t finalize(void);
28 
29  void disableTimeRef(void) { timeRef = kFALSE ; }
30  void removeTimeRef(void) {timeRefRemove = kTRUE ; }
31  void shiftTimes(Float_t ts) {timeShift = ts;};
32 
33 public:
34  ClassDef(HWallTrb2Unpacker,0) // Unpacker for Wall data
35 };
36 
37 #endif /* !HWALLTRB2UNPACKER_H */
38 
39 
40 
41 
42 
43 
44 
HWallTrb2Lookup * lookup
void shiftTimes(Float_t ts)
HWallTrb2Unpacker(UInt_t id=0)
void disableTimeRef(void)
void removeTimeRef(void)