Belle II Software  release-05-01-25
TRGECLHit.h
1 //-----------------------------------------------------------
2 // $Id$
3 //-----------------------------------------------------------
4 // Filename : TRGECLHit.h
5 // Section : TRG ECL
6 // Owner : InSu Lee/Yuuji Unno
7 // Email : islee@hep.hanyang.ac.kr / yunno@post.kek.jp
8 //-----------------------------------------------------------
9 // Description : A class to represent TRG ECL.
10 //-----------------------------------------------------------
11 // $Log$
12 //-----------------------------------------------------------
13 #ifndef TRGECLHIT_H
14 #define TRGECLHIT_H
15 
16 
17 #include <TObject.h>
18 
19 namespace Belle2 {
25  class TRGECLHit : public TObject {
27  public:
28 
29 
31  int m_eventId;
32 
34  int m_TCId;
38  double m_edep;
39 
41  double m_TimeAve;
42 
44  void setEventId(int eventId) { m_eventId = eventId; }
45 
47  void setTCId(int TCId) { m_TCId = TCId; }
48 
50  void setBeamBkgTag(int beambkgtag) { m_beambkgtag = beambkgtag; }
51 
53  void setEnergyDep(double edep) { m_edep = edep; }
54 
56  void setTimeAve(double TimeAve) { m_TimeAve = TimeAve; }
57 
59  int getEventId() const { return m_eventId; }
60 
62  int getTCId() const { return m_TCId; }
63 
65  double getEnergyDep() const { return m_edep; }
66 
68  double getTimeAve() const {return m_TimeAve;}
70  int getBeamBkgTag() const {return m_beambkgtag; }
71 
72 
73  // Empty constructor
74  // Recommended for ROOT IO
75  TRGECLHit()
76  {
77  m_eventId = 0;
78  m_TCId = 0;
79  m_edep = 0;
80  m_TimeAve = 0;
81  m_beambkgtag = 0;
82  }
83 
86  int eventId,
87  int TCId,
88  int beambkgtag,
89  double edep,
90  double TimeAve
91  )
92  {
93  m_eventId = eventId;
94  m_TCId = TCId;
95  m_edep = edep;
96  m_TimeAve = TimeAve;
97  m_beambkgtag = beambkgtag;
98 
99  }
101  ClassDef(TRGECLHit, 1);
102 
103  };
104 
106 } // end namespace Belle2
107 
108 #endif
Belle2::TRGECLHit::getBeamBkgTag
int getBeamBkgTag() const
The method to get Beam Background tag.
Definition: TRGECLHit.h:70
Belle2::TRGECLHit::setTCId
void setTCId(int TCId)
The method to set TC id.
Definition: TRGECLHit.h:47
Belle2::TRGECLHit::setEventId
void setEventId(int eventId)
The method to set event id.
Definition: TRGECLHit.h:44
Belle2::TRGECLHit::m_TimeAve
double m_TimeAve
Hit average time.
Definition: TRGECLHit.h:41
Belle2::TRGECLHit
Example Detector.
Definition: TRGECLHit.h:26
Belle2::TRGECLHit::m_edep
double m_edep
Deposited energy of this hit.
Definition: TRGECLHit.h:38
Belle2::TRGECLHit::m_TCId
int m_TCId
The TC id of this hit.
Definition: TRGECLHit.h:34
Belle2::TRGECLHit::m_eventId
int m_eventId
The TC id of this hit.
Definition: TRGECLHit.h:31
Belle2::TRGECLHit::getEventId
int getEventId() const
The method to get event id.
Definition: TRGECLHit.h:59
Belle2::TRGECLHit::getEnergyDep
double getEnergyDep() const
The method to get deposited energy.
Definition: TRGECLHit.h:65
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TRGECLHit::setEnergyDep
void setEnergyDep(double edep)
The method to set deposited energy.
Definition: TRGECLHit.h:53
Belle2::TRGECLHit::setTimeAve
void setTimeAve(double TimeAve)
The method to set hit average time.
Definition: TRGECLHit.h:56
Belle2::TRGECLHit::m_beambkgtag
int m_beambkgtag
beambkg tag
Definition: TRGECLHit.h:36
Belle2::TRGECLHit::setBeamBkgTag
void setBeamBkgTag(int beambkgtag)
The method to set Beam Background tag.
Definition: TRGECLHit.h:50
Belle2::TRGECLHit::getTCId
int getTCId() const
The method to get TC id.
Definition: TRGECLHit.h:62
Belle2::TRGECLHit::TRGECLHit
TRGECLHit(int eventId, int TCId, int beambkgtag, double edep, double TimeAve)
Useful Constructor.
Definition: TRGECLHit.h:85
Belle2::TRGECLHit::getTimeAve
double getTimeAve() const
The method to get hit average time.
Definition: TRGECLHit.h:68
Belle2::TRGECLHit::ClassDef
ClassDef(TRGECLHit, 1)
the class title