Belle II Software  release-08-01-10
TRGECLCluster.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 represent TRG ECL.
11 //-----------------------------------------------------------
12 
13 #pragma once
14 
15 #include <framework/datastore/RelationsObject.h>
16 
17 namespace Belle2 {
24  class TRGECLCluster : public RelationsObject {
25  public:
26 
27 
29  int m_eventId;
30 
33 
36 
39 
41  int m_MaxTCId;
46 
48 
52  double m_edep;
53 
55  double m_TimeAve;
56 
58  double m_X;
60  double m_Y;
62  double m_Z;
63 
65  double m_Phi = 0.;
67  double m_Theta = 0.;
68 
70  void setEventId(int eventId) { m_eventId = eventId; }
72  void setClusterId(int clusterId) { m_ClusterId = clusterId; }
74  void setEventRevo(int evt_revo) { m_evt_revo = evt_revo; }
76  void setMaxTCId(int maxtcid) { m_MaxTCId = maxtcid; }
78  void setMaxThetaId(int maxthetaid) { m_MaxThetaId = maxthetaid; }
80  void setMaxPhiId(int maxphiid) { m_MaxPhiId = maxphiid; }
81 
82 
84  void setNofTCinCluster(int NofTC) { m_NofTCinCluster = NofTC; }
85 
86 
88  void setEnergyDep(double edep) { m_edep = edep; }
89 
91  void setTimeAve(double TimeAve) { m_TimeAve = TimeAve; }
92 
93 
95  void setPositionX(double X) { m_X = X; }
97  void setPositionY(double Y) { m_Y = Y; }
99  void setPositionZ(double Z) { m_Z = Z; }
100 
101 
102 
104  int getEventId() const { return m_eventId; }
106  int getClusterId() const { return m_ClusterId; }
108  int getEventRevo() { return m_evt_revo; }
110  int getNofTCinCluster() const { return m_NofTCinCluster; }
112  int getMaxTCId() const { return m_MaxTCId; }
114  int getMaxThetaId() { return m_MaxThetaId ; }
116  int getMaxPhiId() { return m_MaxPhiId ;}
117 
119  double getEnergyDep() const { return m_edep; }
120 
122  double getTimeAve() const {return m_TimeAve;}
123 
126  double getPositionX() const {return m_X;}
128  double getPositionY() const {return m_Y;}
130  double getPositionZ() const {return m_Z;}
131 
132 
133  // Empty constructor
136  {
137  m_eventId = 0;
138  m_ClusterId = 0;
139  m_evt_revo = 0;
140  m_edep = 0;
141  m_TimeAve = 0;
142  m_NofTCinCluster = 0;
143  m_X = 0;
144  m_Y = 0;
145  m_Z = 0;
146  m_MaxTCId = 0;
147  m_MaxThetaId = 0;
148  m_MaxPhiId = 0;
149 
150  }
152  ClassDef(TRGECLCluster, 3); /*< the class title */
153 
154  };
155 
157 } // end namespace Belle2
158 
159 //#endif
Defines interface for accessing relations of objects in StoreArray.
Example Detector.
Definition: TRGECLCluster.h:24
double getTimeAve() const
The method to get hit average time.
void setPositionY(double Y)
Set Energy weighted position Y.
Definition: TRGECLCluster.h:97
int m_MaxTCId
The maximum(center) TC Id in Cluster.
Definition: TRGECLCluster.h:41
int m_MaxThetaId
The Theta Id of maximum TC in Cluster.
Definition: TRGECLCluster.h:43
double getPositionZ() const
Get Energy weighted position Z.
void setPositionZ(double Z)
Set Energy weighted position Z.
Definition: TRGECLCluster.h:99
int getNofTCinCluster() const
The method to get the number of TC in a cluster.
int getEventRevo()
The method to get FAM revoultion clock.
void setClusterId(int clusterId)
The method to set cluster id.
Definition: TRGECLCluster.h:72
int getMaxThetaId()
The method to set Theta Id of maximum TC in Cluster.
double getEnergyDep() const
The method to get deposited energy.
void setEventRevo(int evt_revo)
Set FAM revoultion clock.
Definition: TRGECLCluster.h:74
void setNofTCinCluster(int NofTC)
The method to set # of output per TC.
Definition: TRGECLCluster.h:84
double getPositionX() const
The method to get hit average time Get Energy weighted position X.
void setMaxPhiId(int maxphiid)
The method to set Phi Id of maximum TC in Cluster.
Definition: TRGECLCluster.h:80
void setEnergyDep(double edep)
The method to set deposited energy.
Definition: TRGECLCluster.h:88
double getPositionY() const
Get Energy weighted position Y.
int m_eventId
The cell id of this hit.
Definition: TRGECLCluster.h:29
int getEventId() const
The method to get event id.
double m_X
energy weighted position X
Definition: TRGECLCluster.h:58
double m_edep
icn_flag - perfect icn : 1 , icn : 2
Definition: TRGECLCluster.h:52
int getMaxPhiId()
The method to set Phi Id of maximum TC in Cluster.
int m_NofTCinCluster
The # of TC in Cluster.
Definition: TRGECLCluster.h:38
double m_Y
energy weighted position Y
Definition: TRGECLCluster.h:60
int m_evt_revo
Revolution clock.
Definition: TRGECLCluster.h:35
double m_Theta
Cluster Theta position.
Definition: TRGECLCluster.h:67
void setMaxThetaId(int maxthetaid)
The method to set Theta Id of maximum TC in Cluster.
Definition: TRGECLCluster.h:78
int m_ClusterId
The cell id of this hit.
Definition: TRGECLCluster.h:32
ClassDef(TRGECLCluster, 3)
The Class title.
double m_TimeAve
Hit average time.
Definition: TRGECLCluster.h:55
void setEventId(int eventId)
The method to set event id.
Definition: TRGECLCluster.h:70
double m_Z
energy weighted position Z
Definition: TRGECLCluster.h:62
int getMaxTCId() const
The method to get the Maximum(center) TC id.
double m_Phi
Cluster Phi position.
Definition: TRGECLCluster.h:65
void setMaxTCId(int maxtcid)
The method to set maximum energy TC ID (Center TC ID)
Definition: TRGECLCluster.h:76
int m_MaxPhiId
The Phi Id of maximum TC in Cluster.
Definition: TRGECLCluster.h:45
TRGECLCluster()
Recommended for ROOT IO.
void setPositionX(double X)
Set Energy weighted position X.
Definition: TRGECLCluster.h:95
int getClusterId() const
The method to get Cluster id.
void setTimeAve(double TimeAve)
The method to set hit average time.
Definition: TRGECLCluster.h:91
Abstract base class for different kinds of events.