StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEbyET0.h
1 
10 #ifndef STAR_StEbyET0
11 #define STAR_StEbyET0
12 
13 class StEvent;
14 class TFile;
15 class TNtupleD;
16 
17 enum trigDetType {kVPD = 0,
18  kEPD,
19  kBBC,
20  kZDC,
21  kVPDeast,
22  kEPDeast, // for FXT
23  kBBCeast,
24  kZDCeast,
25  kVPDwest,
26  kEPDwest,
27  kBBCwest,
28  kZDCwest
29  };
30 
31 class StEbyET0 {
32 
33  public:
34  StEbyET0();
35  virtual ~StEbyET0();
36  virtual double getT0(StEvent* event, int mode=0) {return getTime(event,mode);}
37  virtual double getTime(StEvent* event, int mode=0);
38  virtual void getTpcInfo(StEvent* event, double* info); // info must have 12 elements
39  virtual void getTriggerInfo(StEvent* event, trigDetType trigDet, double* info); // info must have 2 elements
40  virtual void finishCalib();
41 
42  static StEbyET0* Instance() {
43  if (!mInstance) mInstance = new StEbyET0();
44  return mInstance;
45  }
46 
47  private:
48  virtual void fillTree(StEvent* event);
49  static StEbyET0* mInstance;
50  int mRunId;
51  int mEventId;
52  float mTime;
53  TNtupleD* mTree;
54 
55  ClassDef(StEbyET0,0)
56 
57 };
58 
59 #endif
60 
61 //_____________________________________________________________________________
62 // $Id: StEbyET0.h,v 1.1 2021/03/19 01:44:47 genevb Exp $
63 // $Log: StEbyET0.h,v $
64 // Revision 1.1 2021/03/19 01:44:47 genevb
65 // Introduce Event-by-Event T0 corrections
66 //
67 //
68 //