Belle II Software  release-05-01-25
TRGECLUnpackerStore.h
1 //-----------------------------------------------------------
2 // $Id$
3 //-----------------------------------------------------------
4 // Filename : TRGECLUnpackerStore.h
5 // Section : TRG ECL
6 // Owner : SungHyun Kim
7 // Email : sunghyun.kim@belle2.org
8 //-----------------------------------------------------------
9 // Description : A class to represent TRG ECL.
10 //-----------------------------------------------------------
11 // $Log$
12 //-----------------------------------------------------------
13 #ifndef TRGECLUNPACKERSTORE_H
14 #define TRGECLUNPACKERSTORE_H
15 
16 #include <TObject.h>
17 
18 namespace Belle2 {
24  class TRGECLUnpackerStore : public TObject {
26  public:
27 
29  int m_eventId;
30 
32  int m_tcid;
33 
35  int m_time;
36 
38  int m_caltime;
39 
41  int m_hit_win;
42 
45 
47  int m_energy;
48 
51 
53  void setEventId(int eventId) { m_eventId = eventId;}
54 
56  void setTCId(int TCId) { m_tcid = TCId;}
57 
59  void setTCTime(int TCT) { m_time = TCT;}
60 
62  void setTCCALTime(int TCCALT) { m_caltime = TCCALT;}
63 
65  void setHitWin(int HitWin) { m_hit_win = HitWin;}
66 
68  void setRevoFAM(int RevoFAM) { m_revo_fam = RevoFAM;}
69 
71  void setTCEnergy(int TCE) { m_energy = TCE;}
72 
74  void setChecksum(int checksum) { m_checksum = checksum;}
75 
77  int getEventId() const { return m_eventId;}
78 
80  int getTCId() const { return m_tcid;}
81 
83  int getTCTime() const {return m_time;}
84 
86  int getTCCALTime() const {return m_caltime;}
87 
89  int getRevoFAM() const {return m_revo_fam;}
90 
92  int getHitWin() const {return m_hit_win;}
93 
95  int getTCEnergy() const { return m_energy;}
96 
98  int getChecksum() const {return m_checksum;}
99 
100  // Empty constructor
101  // Recommended for ROOT IO
103  {
104  m_eventId = 0;
105  m_tcid = 0;
106  m_time = 0;
107  m_caltime = 0;
108  m_hit_win = 0;
109  m_revo_fam = 0;
110  m_energy = 0;
111  m_checksum = 0;
112 
113  }
114 
117  int eventId,
118  int TCId,
119  int TCT,
120  int TCCALT,
121  int HitWin,
122  int RevoFAM,
123  int TCE,
124  int checksum
125  )
126  {
127  m_eventId = eventId;
128  m_tcid = TCId;
129  m_time = TCT;
130  m_caltime = TCCALT;
131  m_hit_win = HitWin;
132  m_revo_fam = RevoFAM;
133  m_energy = TCE;
134  m_checksum = checksum;
135  }
138 
139  };
140 
142 } // end namespace Belle2
143 
144 #endif
Belle2::TRGECLUnpackerStore::setRevoFAM
void setRevoFAM(int RevoFAM)
The method to set revo clock of FAM.
Definition: TRGECLUnpackerStore.h:68
Belle2::TRGECLUnpackerStore::getHitWin
int getHitWin() const
The method to get Hit Win.
Definition: TRGECLUnpackerStore.h:92
Belle2::TRGECLUnpackerStore::m_time
int m_time
The Total Timing of hitted TC.
Definition: TRGECLUnpackerStore.h:35
Belle2::TRGECLUnpackerStore
Example Detector.
Definition: TRGECLUnpackerStore.h:25
Belle2::TRGECLUnpackerStore::setTCTime
void setTCTime(int TCT)
The method to set hit time.
Definition: TRGECLUnpackerStore.h:59
Belle2::TRGECLUnpackerStore::getTCEnergy
int getTCEnergy() const
The method to get deposited energy.
Definition: TRGECLUnpackerStore.h:95
Belle2::TRGECLUnpackerStore::m_revo_fam
int m_revo_fam
The revo clk of FAM.
Definition: TRGECLUnpackerStore.h:44
Belle2::TRGECLUnpackerStore::getTCId
int getTCId() const
The method to get cell id.
Definition: TRGECLUnpackerStore.h:80
Belle2::TRGECLUnpackerStore::setTCId
void setTCId(int TCId)
The method to set cell id.
Definition: TRGECLUnpackerStore.h:56
Belle2::TRGECLUnpackerStore::setHitWin
void setHitWin(int HitWin)
The method to set Hit window.
Definition: TRGECLUnpackerStore.h:65
Belle2::TRGECLUnpackerStore::setEventId
void setEventId(int eventId)
The method to set event id.
Definition: TRGECLUnpackerStore.h:53
Belle2::TRGECLUnpackerStore::m_tcid
int m_tcid
The Hitted TC id.
Definition: TRGECLUnpackerStore.h:32
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TRGECLUnpackerStore::m_checksum
int m_checksum
The checksum flag.
Definition: TRGECLUnpackerStore.h:50
Belle2::TRGECLUnpackerStore::m_caltime
int m_caltime
The Timing of TRG Timing.
Definition: TRGECLUnpackerStore.h:38
Belle2::TRGECLUnpackerStore::m_energy
int m_energy
The Energy of hitted TC.
Definition: TRGECLUnpackerStore.h:47
Belle2::TRGECLUnpackerStore::TRGECLUnpackerStore
TRGECLUnpackerStore(int eventId, int TCId, int TCT, int TCCALT, int HitWin, int RevoFAM, int TCE, int checksum)
Useful Constructor.
Definition: TRGECLUnpackerStore.h:116
Belle2::TRGECLUnpackerStore::getRevoFAM
int getRevoFAM() const
The method to get revo clock of FAM.
Definition: TRGECLUnpackerStore.h:89
Belle2::TRGECLUnpackerStore::getTCTime
int getTCTime() const
The method to get hit average time.
Definition: TRGECLUnpackerStore.h:83
Belle2::TRGECLUnpackerStore::setTCCALTime
void setTCCALTime(int TCCALT)
The method to set cal timing.
Definition: TRGECLUnpackerStore.h:62
Belle2::TRGECLUnpackerStore::ClassDef
ClassDef(TRGECLUnpackerStore, 2)
the class title
Belle2::TRGECLUnpackerStore::setChecksum
void setChecksum(int checksum)
The method to set checksum flag.
Definition: TRGECLUnpackerStore.h:74
Belle2::TRGECLUnpackerStore::m_hit_win
int m_hit_win
The window of hit.
Definition: TRGECLUnpackerStore.h:41
Belle2::TRGECLUnpackerStore::getChecksum
int getChecksum() const
The method to get checksum flag.
Definition: TRGECLUnpackerStore.h:98
Belle2::TRGECLUnpackerStore::setTCEnergy
void setTCEnergy(int TCE)
The method to set deposited energy.
Definition: TRGECLUnpackerStore.h:71
Belle2::TRGECLUnpackerStore::getTCCALTime
int getTCCALTime() const
The method to get cal timing.
Definition: TRGECLUnpackerStore.h:86
Belle2::TRGECLUnpackerStore::getEventId
int getEventId() const
The method to get event id.
Definition: TRGECLUnpackerStore.h:77
Belle2::TRGECLUnpackerStore::m_eventId
int m_eventId
The evt id of this hit.
Definition: TRGECLUnpackerStore.h:29