ROOT logo
#ifndef HTOFTRB2UNPACKER_H
#define HTOFTRB2UNPACKER_H

#include "htrb2unpacker.h"
#include "hlocation.h"
#include "TH2F.h"

class HTofTrb2Lookup;

class HTofTrb2Unpacker: public HTrb2Unpacker {

protected:
  HLocation loc;
  HTofTrb2Lookup* lookup;  // TRB lookup table
  Bool_t timeRef;             // use reference time ?
  Bool_t timeRefRemove;       // remove reference times from data?
  Float_t timeShift;          //shift all times by a constant (to positive)


public:
  HTofTrb2Unpacker(UInt_t id=0);
  ~HTofTrb2Unpacker(void) { }

  Int_t execute(void);
  Bool_t init(void);
  //  Bool_t reinit(void);
  Bool_t finalize(void);

  void disableTimeRef(void) { timeRef = kFALSE ; }
  void removeTimeRef(void) {timeRefRemove = kTRUE ; } 
  void shiftTimes(Float_t ts) {timeShift = ts;};
  
public:
  ClassDef(HTofTrb2Unpacker,0) // Unpacker for TOF data
};

#endif /* !HTOFTRB2UNPACKER_H */







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