Belle II Software  release-08-01-10
EventTime.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 
9 //-----------------------------------------------------------------------------
10 // Description : A class to get Event Time information
11 //-----------------------------------------------------------------------------
12 
13 #ifndef TRGCDCEventTime_FLAG_
14 #define TRGCDCEventTime_FLAG_
15 
16 #include <TFile.h>
17 #include <TTree.h>
18 
19 #ifdef TRGCDC_SHORT_NAMES
20 #define TCEventTime TRGCDCEventTime
21 #endif
22 
23 namespace Belle2 {
28  class TRGCDC;
29 
32  public:
33 
35  TRGCDCEventTime(const TRGCDC&, bool makeRootFile);
37  virtual ~TRGCDCEventTime();
42 
43  public :
44 
46  void initialize(void);
48  void terminate(void);
50  void doit(int ver, bool print);
52  void hitcount(void);
54  void hist(void);
56  void oldVer(void);
58  void printFirm(void);
60  int getT0(void)const;
61 
62 
63  private :
65  const TRGCDC& _cdc;
66 
68  TFile* m_fileEvtTime;
70  TTree* m_evtOutputTs;
72  TTree* m_evtOut;
74  TH1* h;
75 
79  int m_histT;
81  int cnt[9][64];
83  int ft[9][64][10];
85  bool m_foundT0;
87  int m_foundT;
89  int m_whdiff;
91  int m_minusET;
93  int m_noET;
94 // int m_allET;
95 // int m_yesET;
97  int threshold;
98 
100  int m_eventN;
101 
105  int m_ver;
106 
107  };
109 } // namespace Belle2
110 
111 #endif
A class of TRGCDC Event Time.
Definition: EventTime.h:31
TRGCDCEventTime & operator=(TRGCDCEventTime &)=delete
assignment operator, deleted
int m_foundT
Found time of TS.
Definition: EventTime.h:87
TTree * m_evtOut
TTree pointer of the TFile.
Definition: EventTime.h:72
TRGCDCEventTime(TRGCDCEventTime &)=delete
copy constructor, deleted
int m_noET
no ET bin is looped
Definition: EventTime.h:93
bool m_makeRootFile
make Root file or not
Definition: EventTime.h:103
const TRGCDC & _cdc
TRGCDC class.
Definition: EventTime.h:65
int m_eventN
event number
Definition: EventTime.h:100
TTree * m_evtOutputTs
TTree pointer of the TFile.
Definition: EventTime.h:70
int m_histT
calculated T0
Definition: EventTime.h:79
int threshold
Threshold value.
Definition: EventTime.h:97
int ft[9][64][10]
Fastest time array each SL and clock.
Definition: EventTime.h:83
int m_whdiff
Drift time of TS.
Definition: EventTime.h:89
int m_fastestT
The fastest time of TS.
Definition: EventTime.h:77
TFile * m_fileEvtTime
TFile pointer.
Definition: EventTime.h:68
bool m_foundT0
T0 is found or not.
Definition: EventTime.h:85
int cnt[9][64]
TS counter for each SL and clock.
Definition: EventTime.h:81
int m_minusET
minus ET bin
Definition: EventTime.h:91
TH1 * h
TH1 pointer of the TFile.
Definition: EventTime.h:74
The instance of TRGCDC is a singleton.
Definition: TRGCDC.h:69
void hist(void)
making hostogram
Definition: EventTime.cc:154
void doit(int ver, bool print)
Calculate T0 based on ver.
Definition: EventTime.cc:95
TRGCDCEventTime(const TRGCDC &, bool makeRootFile)
constructor of TRGCDCEventTime class
Definition: EventTime.cc:43
void terminate(void)
terminate function
Definition: EventTime.cc:249
void initialize(void)
initialize the class
Definition: EventTime.cc:88
virtual ~TRGCDCEventTime()
destructor of TRGCDCEventTime class
Definition: EventTime.cc:80
int getT0(void) const
Calculate T0.
Definition: EventTime.cc:242
void oldVer(void)
old version of calculation function
Definition: EventTime.cc:181
void printFirm(void)
Print info in firmware level.
Definition: EventTime.cc:209
void hitcount(void)
hit count of TS
Definition: EventTime.cc:119
Abstract base class for different kinds of events.