Belle II Software  release-08-01-10
TRGECLUnpackerStore.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 #ifndef TRGECLUNPACKERSTORE_H
10 #define TRGECLUNPACKERSTORE_H
11 
12 #include <TObject.h>
13 
14 namespace Belle2 {
21  class TRGECLUnpackerStore : public TObject {
22  public:
23 
25  int m_eventId;
26 
28  int m_tcid;
29 
31  int m_time;
32 
34  int m_caltime;
35 
37  int m_hit_win;
38 
41 
43  int m_energy;
44 
47 
49  void setEventId(int eventId) { m_eventId = eventId;}
50 
52  void setTCId(int TCId) { m_tcid = TCId;}
53 
55  void setTCTime(int TCT) { m_time = TCT;}
56 
58  void setTCCALTime(int TCCALT) { m_caltime = TCCALT;}
59 
61  void setHitWin(int HitWin) { m_hit_win = HitWin;}
62 
64  void setRevoFAM(int RevoFAM) { m_revo_fam = RevoFAM;}
65 
67  void setTCEnergy(int TCE) { m_energy = TCE;}
68 
70  void setChecksum(int checksum) { m_checksum = checksum;}
71 
73  int getEventId() const { return m_eventId;}
74 
76  int getTCId() const { return m_tcid;}
77 
79  int getTCTime() const {return m_time;}
80 
82  int getTCCALTime() const {return m_caltime;}
83 
85  int getRevoFAM() const {return m_revo_fam;}
86 
88  int getHitWin() const {return m_hit_win;}
89 
91  int getTCEnergy() const { return m_energy;}
92 
94  int getChecksum() const {return m_checksum;}
95 
96  // Empty constructor
97  // Recommended for ROOT IO
99  {
100  m_eventId = 0;
101  m_tcid = 0;
102  m_time = 0;
103  m_caltime = 0;
104  m_hit_win = 0;
105  m_revo_fam = 0;
106  m_energy = 0;
107  m_checksum = 0;
108 
109  }
110 
113  int eventId,
114  int TCId,
115  int TCT,
116  int TCCALT,
117  int HitWin,
118  int RevoFAM,
119  int TCE,
120  int checksum
121  )
122  {
123  m_eventId = eventId;
124  m_tcid = TCId;
125  m_time = TCT;
126  m_caltime = TCCALT;
127  m_hit_win = HitWin;
128  m_revo_fam = RevoFAM;
129  m_energy = TCE;
130  m_checksum = checksum;
131  }
134 
135  };
136 
138 } // end namespace Belle2
139 
140 #endif
int m_energy
The Energy of hitted TC.
int getHitWin() const
The method to get Hit Win.
void setChecksum(int checksum)
The method to set checksum flag.
void setHitWin(int HitWin)
The method to set Hit window.
void setTCId(int TCId)
The method to set cell id.
int m_caltime
The Timing of TRG Timing.
void setTCTime(int TCT)
The method to set hit time.
int getTCCALTime() const
The method to get cal timing.
int getRevoFAM() const
The method to get revo clock of FAM.
void setTCEnergy(int TCE)
The method to set deposited energy.
int getChecksum() const
The method to get checksum flag.
int m_checksum
The checksum flag.
int m_eventId
The evt id of this hit.
int getEventId() const
The method to get event id.
int m_hit_win
The window of hit.
int getTCEnergy() const
The method to get deposited energy.
void setTCCALTime(int TCCALT)
The method to set cal timing.
int m_time
The Total Timing of hitted TC.
TRGECLUnpackerStore(int eventId, int TCId, int TCT, int TCCALT, int HitWin, int RevoFAM, int TCE, int checksum)
Useful Constructor.
void setEventId(int eventId)
The method to set event id.
int getTCId() const
The method to get cell id.
ClassDef(TRGECLUnpackerStore, 2)
the class title
int m_revo_fam
The revo clk of FAM.
int getTCTime() const
The method to get hit average time.
void setRevoFAM(int RevoFAM)
The method to set revo clock of FAM.
Abstract base class for different kinds of events.