Belle II Software  release-05-02-19
TRGECLCluster.h
1 //-----------------------------------------------------------
2 // $Id$
3 //-----------------------------------------------------------
4 // Filename : TRGECLHit.h
5 // Section : TRG ECL
6 // Owner : InSoo 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 
14 #pragma once
15 
16 #include <framework/datastore/RelationsObject.h>
17 
18 namespace Belle2 {
24  class TRGECLCluster : public RelationsObject {
26  public:
27 
28 
30  int m_eventId;
31 
34 
37 
40 
42  int m_MaxTCId;
47 
49 
52  double m_edep;
54 
56  double m_TimeAve;
57 
59  double m_X;
61  double m_Y;
63  double m_Z;
64 
66  double m_Phi = 0.;
68  double m_Theta = 0.;
69 
71  void setEventId(int eventId) { m_eventId = eventId; }
73  void setClusterId(int clusterId) { m_ClusterId = clusterId; }
75  void setEventRevo(int evt_revo) { m_evt_revo = evt_revo; }
77  void setMaxTCId(int maxtcid) { m_MaxTCId = maxtcid; }
79  void setMaxThetaId(int maxthetaid) { m_MaxThetaId = maxthetaid; }
81  void setMaxPhiId(int maxphiid) { m_MaxPhiId = maxphiid; }
82 
83 
85  void setNofTCinCluster(int NofTC) { m_NofTCinCluster = NofTC; }
86 
87 
89  void setEnergyDep(double edep) { m_edep = edep; }
90 
92  void setTimeAve(double TimeAve) { m_TimeAve = TimeAve; }
93 
94 
96  void setPositionX(double X) { m_X = X; }
98  void setPositionY(double Y) { m_Y = Y; }
100  void setPositionZ(double Z) { m_Z = Z; }
101 
102 
103 
105  int getEventId() const { return m_eventId; }
107  int getClusterId() const { return m_ClusterId; }
109  int getEventRevo() { return m_evt_revo; }
111  int getNofTCinCluster() const { return m_NofTCinCluster; }
113  int getMaxTCId() const { return m_MaxTCId; }
115  int getMaxThetaId() { return m_MaxThetaId ; }
117  int getMaxPhiId() { return m_MaxPhiId ;}
118 
120  double getEnergyDep() const { return m_edep; }
121 
123  double getTimeAve() const {return m_TimeAve;}
124 
127  double getPositionX() const {return m_X;}
129  double getPositionY() const {return m_Y;}
131  double getPositionZ() const {return m_Z;}
132 
133 
134  // Empty constructor
137  {
138  m_eventId = 0;
139  m_ClusterId = 0;
140  m_evt_revo = 0;
141  m_edep = 0;
142  m_TimeAve = 0;
143  m_NofTCinCluster = 0;
144  m_X = 0;
145  m_Y = 0;
146  m_Z = 0;
147  m_MaxTCId = 0;
148  m_MaxThetaId = 0;
149  m_MaxPhiId = 0;
150 
151  }
153  ClassDef(TRGECLCluster, 3); /*< the class title */
154 
155  };
156 
158 } // end namespace Belle2
159 
160 //#endif
Belle2::TRGECLCluster::setPositionY
void setPositionY(double Y)
Set Energy weighted position Y.
Definition: TRGECLCluster.h:98
Belle2::TRGECLCluster::setEnergyDep
void setEnergyDep(double edep)
The method to set deposited energy.
Definition: TRGECLCluster.h:89
Belle2::TRGECLCluster::setEventId
void setEventId(int eventId)
The method to set event id.
Definition: TRGECLCluster.h:71
Belle2::TRGECLCluster::m_MaxThetaId
int m_MaxThetaId
The Theta Id of maximum TC in Cluster.
Definition: TRGECLCluster.h:44
Belle2::TRGECLCluster::getMaxTCId
int getMaxTCId() const
The method to get the Maximum(center) TC id.
Definition: TRGECLCluster.h:113
Belle2::TRGECLCluster::m_X
double m_X
energy weighted position X
Definition: TRGECLCluster.h:59
Belle2::TRGECLCluster::m_MaxPhiId
int m_MaxPhiId
The Phi Id of maximum TC in Cluster.
Definition: TRGECLCluster.h:46
Belle2::TRGECLCluster::m_Phi
double m_Phi
Cluster Phi position.
Definition: TRGECLCluster.h:66
Belle2::TRGECLCluster::getEventRevo
int getEventRevo()
The method to get FAM revoultion clock.
Definition: TRGECLCluster.h:109
Belle2::TRGECLCluster::m_Y
double m_Y
energy weighted position Y
Definition: TRGECLCluster.h:61
Belle2::TRGECLCluster
Example Detector.
Definition: TRGECLCluster.h:25
Belle2::TRGECLCluster::setMaxPhiId
void setMaxPhiId(int maxphiid)
The method to set Phi Id of maximum TC in Cluster.
Definition: TRGECLCluster.h:81
Belle2::TRGECLCluster::getPositionX
double getPositionX() const
The method to get hit average time Get Energy weighted position X.
Definition: TRGECLCluster.h:127
Belle2::TRGECLCluster::m_edep
double m_edep
icn_flag - perfect icn : 1 , icn : 2
Definition: TRGECLCluster.h:53
Belle2::TRGECLCluster::setClusterId
void setClusterId(int clusterId)
The method to set cluster id.
Definition: TRGECLCluster.h:73
Belle2::TRGECLCluster::m_evt_revo
int m_evt_revo
Revolution clock.
Definition: TRGECLCluster.h:36
Belle2::TRGECLCluster::setTimeAve
void setTimeAve(double TimeAve)
The method to set hit average time.
Definition: TRGECLCluster.h:92
Belle2::TRGECLCluster::setPositionZ
void setPositionZ(double Z)
Set Energy weighted position Z.
Definition: TRGECLCluster.h:100
Belle2::TRGECLCluster::setMaxTCId
void setMaxTCId(int maxtcid)
The method to set maximum energy TC ID (Center TC ID)
Definition: TRGECLCluster.h:77
Belle2::TRGECLCluster::m_ClusterId
int m_ClusterId
The cell id of this hit.
Definition: TRGECLCluster.h:33
Belle2::TRGECLCluster::getPositionZ
double getPositionZ() const
Get Energy weighted position Z.
Definition: TRGECLCluster.h:131
Belle2::TRGECLCluster::getPositionY
double getPositionY() const
Get Energy weighted position Y.
Definition: TRGECLCluster.h:129
Belle2::TRGECLCluster::setNofTCinCluster
void setNofTCinCluster(int NofTC)
The method to set # of output per TC.
Definition: TRGECLCluster.h:85
Belle2::TRGECLCluster::TRGECLCluster
TRGECLCluster()
Recommended for ROOT IO.
Definition: TRGECLCluster.h:136
Belle2::TRGECLCluster::m_TimeAve
double m_TimeAve
Hit average time.
Definition: TRGECLCluster.h:56
Belle2::TRGECLCluster::getMaxThetaId
int getMaxThetaId()
The method to set Theta Id of maximum TC in Cluster.
Definition: TRGECLCluster.h:115
Belle2::TRGECLCluster::getClusterId
int getClusterId() const
The method to get Cluster id.
Definition: TRGECLCluster.h:107
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TRGECLCluster::setMaxThetaId
void setMaxThetaId(int maxthetaid)
The method to set Theta Id of maximum TC in Cluster.
Definition: TRGECLCluster.h:79
Belle2::TRGECLCluster::m_MaxTCId
int m_MaxTCId
The maximum(center) TC Id in Cluster.
Definition: TRGECLCluster.h:42
Belle2::TRGECLCluster::m_NofTCinCluster
int m_NofTCinCluster
The # of TC in Cluster.
Definition: TRGECLCluster.h:39
Belle2::TRGECLCluster::getNofTCinCluster
int getNofTCinCluster() const
The method to get the number of TC in a cluster.
Definition: TRGECLCluster.h:111
Belle2::TRGECLCluster::getEventId
int getEventId() const
The method to get event id.
Definition: TRGECLCluster.h:105
Belle2::TRGECLCluster::setEventRevo
void setEventRevo(int evt_revo)
Set FAM revoultion clock.
Definition: TRGECLCluster.h:75
Belle2::RelationsObject
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
Definition: RelationsObject.h:443
Belle2::TRGECLCluster::m_eventId
int m_eventId
The cell id of this hit.
Definition: TRGECLCluster.h:30
Belle2::TRGECLCluster::m_Z
double m_Z
energy weighted position Z
Definition: TRGECLCluster.h:63
Belle2::TRGECLCluster::ClassDef
ClassDef(TRGECLCluster, 3)
The Class title.
Belle2::TRGECLCluster::m_Theta
double m_Theta
Cluster Theta position.
Definition: TRGECLCluster.h:68
Belle2::TRGECLCluster::getEnergyDep
double getEnergyDep() const
The method to get deposited energy.
Definition: TRGECLCluster.h:120
Belle2::TRGECLCluster::getMaxPhiId
int getMaxPhiId()
The method to set Phi Id of maximum TC in Cluster.
Definition: TRGECLCluster.h:117
Belle2::TRGECLCluster::setPositionX
void setPositionX(double X)
Set Energy weighted position X.
Definition: TRGECLCluster.h:96
Belle2::TRGECLCluster::getTimeAve
double getTimeAve() const
The method to get hit average time.
Definition: TRGECLCluster.h:123