Belle II Software prerelease-10-00-00a
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
17namespace Belle2 {
22
25 public:
26
27
30
33
36
39
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;
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 }
151
152 ClassDef(TRGECLCluster, 3); /*< the class title */
153
154 };
155
157} // end namespace Belle2
158
159//#endif
double getTimeAve() const
The method to get hit average time.
void setPositionY(double Y)
Set Energy weighted position Y.
int m_MaxTCId
The maximum(center) TC Id in Cluster.
int m_MaxThetaId
The Theta Id of maximum TC in Cluster.
double getPositionZ() const
Get Energy weighted position Z.
void setPositionZ(double Z)
Set Energy weighted position Z.
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.
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.
void setNofTCinCluster(int NofTC)
The method to set # of output per TC.
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.
void setEnergyDep(double edep)
The method to set deposited energy.
double getPositionY() const
Get Energy weighted position Y.
int m_eventId
The cell id of this hit.
int getEventId() const
The method to get event id.
double m_X
energy weighted position X
double m_edep
icn_flag - perfect icn : 1 , icn : 2
int getMaxPhiId()
The method to set Phi Id of maximum TC in Cluster.
int m_NofTCinCluster
The # of TC in Cluster.
double m_Y
energy weighted position Y
int m_evt_revo
Revolution clock.
double m_Theta
Cluster Theta position.
void setMaxThetaId(int maxthetaid)
The method to set Theta Id of maximum TC in Cluster.
int m_ClusterId
The cell id of this hit.
ClassDef(TRGECLCluster, 3)
The Class title.
double m_TimeAve
Hit average time.
void setEventId(int eventId)
The method to set event id.
double m_Z
energy weighted position Z
int getMaxTCId() const
The method to get the Maximum(center) TC id.
double m_Phi
Cluster Phi position.
void setMaxTCId(int maxtcid)
The method to set maximum energy TC ID (Center TC ID)
int m_MaxPhiId
The Phi Id of maximum TC in Cluster.
TRGECLCluster()
Recommended for ROOT IO.
void setPositionX(double X)
Set Energy weighted position X.
int getClusterId() const
The method to get Cluster id.
void setTimeAve(double TimeAve)
The method to set hit average time.
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
Abstract base class for different kinds of events.