CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
CgemMcHit.h
Go to the documentation of this file.
1#ifndef CgemMcHit_H
2#define CgemMcHit_H
3#include <algorithm>
4#include <string>
5#include "GaudiKernel/ContainedObject.h"
7#include "GaudiKernel/ObjectVector.h"
9#include "TArrayI.h"
10
11using namespace EventModel;
12using namespace std;
13
14//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
15extern const CLID& CLID_CgemMcHit;
16
17//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
18namespace Event
19{ /* NameSpace */
20 class CgemMcHit : virtual public ContainedObject
21 {
22 public:
23 virtual const CLID& clID() const
24 {
25 return CgemMcHit::classID();
26 }
27
28 static const CLID& classID()
29 {
30 return CLID_CgemMcHit;
31 }
32
33 /* Constructor */
35 CgemMcHit(int f_ID_track , int f_ID_layer , int pdg,
36 int f_ID_parent , double f_E_deposit ,
37 double f_XYZ_pre_x , double f_XYZ_pre_y , double f_XYZ_pre_z ,
38 double f_XYZ_post_x , double f_XYZ_post_y , double f_XYZ_post_z ,
39 double f_P_pre_x , double f_P_pre_y , double f_P_pre_z ,
40 double f_P_post_x , double f_P_post_y , double f_P_post_z );
41 /*,
42 double f_Cu_pre_x , double f_Cu_pre_y , double f_Cu_pre_z ,
43 double f_Cu_post_x , double f_Cu_post_y , double f_Cu_post_z ,
44 double f_Cu_P_pre_x , double f_Cu_P_pre_y , double f_Cu_P_pre_z ,
45 double f_Cu_P_post_x, double f_Cu_P_post_y, double f_Cu_P_post_z);
46 */
47
48 /* Set methods */
49 void SetTrackID ( int f_ID_track ) {m_ID_track = f_ID_track ;};
50 void SetCurrentTrackID ( int f_ID_track ) {m_currentTrackID=f_ID_track;};
51 void SetIsSecondary ( int isSec ) {m_isSecondary= isSec ;};
52 void SetLayerID ( int f_ID_layer ) {m_ID_layer = f_ID_layer ;};
53 void SetPDGCode ( int pdg ) {m_pdg = pdg ;};
54 void SetParentID ( int f_ID_parent ) {m_ID_parent = f_ID_parent ;};
55 void SetTotalEnergyDeposit ( double f_E_deposit ) {m_E_deposit = f_E_deposit ;};
56 void SetPositionXOfPrePoint ( double f_XYZ_pre_x ) {m_XYZ_pre_x = f_XYZ_pre_x ;};
57 void SetPositionYOfPrePoint ( double f_XYZ_pre_y ) {m_XYZ_pre_y = f_XYZ_pre_y ;};
58 void SetPositionZOfPrePoint ( double f_XYZ_pre_z ) {m_XYZ_pre_z = f_XYZ_pre_z ;};
59 void SetPositionXOfPostPoint ( double f_XYZ_post_x ) {m_XYZ_post_x = f_XYZ_post_x ;};
60 void SetPositionYOfPostPoint ( double f_XYZ_post_y ) {m_XYZ_post_y = f_XYZ_post_y ;};
61 void SetPositionZOfPostPoint ( double f_XYZ_post_z ) {m_XYZ_post_z = f_XYZ_post_z ;};
62 void SetMomentumXOfPrePoint ( double f_P_pre_x ) {m_P_pre_x = f_P_pre_x ;};
63 void SetMomentumYOfPrePoint ( double f_P_pre_y ) {m_P_pre_y = f_P_pre_y ;};
64 void SetMomentumZOfPrePoint ( double f_P_pre_z ) {m_P_pre_z = f_P_pre_z ;};
65 void SetMomentumXOfPostPoint ( double f_P_post_x ) {m_P_post_x = f_P_post_x ;};
66 void SetMomentumYOfPostPoint ( double f_P_post_y ) {m_P_post_y = f_P_post_y ;};
67 void SetMomentumZOfPostPoint ( double f_P_post_z ) {m_P_post_z = f_P_post_z ;};
68 void SetFlightLengthPrePoint ( double f_len ) {m_flightLength_pre=f_len;}
69 void SetFlightLengthPostPoint( double f_len ) {m_flightLength_post=f_len;};
70 // void AddIdentifier ( int f_ID_Identifier) {m_ID_Identifier.push_back(f_ID_Identifier);};
71 // void AddIdentifier (int f_ID_Identifier ,int f_ID ) {m_ID_Identifier.AddAt(f_ID_Identifier, f_ID);};
72 // void AddIdentifier ( Int_t f_ID_Identifier ,Int_t f_ID, Int_t Total ) {if(f_ID = 0)m_ID_Identifier.Set(Total); m_ID_Identifier.AddAt(f_ID_Identifier, f_ID);};
73 void AddIdentifier ( Int_t f_ID_Identifier[2000] , Int_t N_dim ) {m_ID_Identifier.Set(N_dim, f_ID_Identifier); };
74 void SetCreatorProcess (string creatorProcess) {m_creatorProcess = creatorProcess;};
75 void AddDigiIdx(int id) {m_vec_digi_id.push_back(id);};
76 void AddXclusterIdx(int id) {m_vec_Xcluster_id.push_back(id);};
77 void AddVclusterIdx(int id) {m_vec_Vcluster_id.push_back(id);};
78 void SetDigiIdxVec ( const vector<int>& vec) {m_vec_digi_id=vec ;};
79 void SetXclusterIdxVec ( const vector<int>& vec) {m_vec_Xcluster_id=vec;};
80 void SetVclusterIdxVec ( const vector<int>& vec) {m_vec_Vcluster_id=vec;};
81
82 /*
83 void SetPrePositionXInCu ( double f_Cu_pre_x ) {m_Cu_pre_x = f_Cu_pre_x ;};
84 void SetPrePositionYInCu ( double f_Cu_pre_y ) {m_Cu_pre_y = f_Cu_pre_y ;};
85 void SetPrePositionZInCu ( double f_Cu_pre_z ) {m_Cu_pre_z = f_Cu_pre_z ;};
86 void SetPostPositionXInCu ( double f_Cu_post_x ) {m_Cu_post_x = f_Cu_post_x ;};
87 void SetPostPositionYInCu ( double f_Cu_post_y ) {m_Cu_post_y = f_Cu_post_y ;};
88 void SetPostPositionZInCu ( double f_Cu_post_z ) {m_Cu_post_z = f_Cu_post_z ;};
89 void SetMomentumXOfCuPre ( double f_P_Cu_pre_x ) {m_P_Cu_pre_x = f_P_Cu_pre_x ;};
90 void SetMomentumYOfCuPre ( double f_P_Cu_pre_y ) {m_P_Cu_pre_y = f_P_Cu_pre_y ;};
91 void SetMomentumZOfCuPre ( double f_P_Cu_pre_z ) {m_P_Cu_pre_z = f_P_Cu_pre_z ;};
92 void SetMomentumXOfCuPost ( double f_P_Cu_post_x) {m_P_Cu_post_x= f_P_Cu_post_x;};
93 void SetMomentumYOfCuPost ( double f_P_Cu_post_y) {m_P_Cu_post_y= f_P_Cu_post_y;};
94 void SetMomentumZOfCuPost ( double f_P_Cu_post_z) {m_P_Cu_post_z= f_P_Cu_post_z;};
95 */
96 /* Get methods */
97 int GetTrackID () const {return m_ID_track ;};
98 int GetCurrentTrackID () const {return m_currentTrackID;}
99 int GetIsSecondary () const {return m_isSecondary;};
100 int GetLayerID () const {return m_ID_layer ;};
101 int GetPDGCode () const {return m_pdg ;};
102 int GetParentID () const {return m_ID_parent ;};
103 double GetTotalEnergyDeposit () const {return m_E_deposit ;};
104 double GetPositionXOfPrePoint () const {return m_XYZ_pre_x ;};
105 double GetPositionYOfPrePoint () const {return m_XYZ_pre_y ;};
106 double GetPositionZOfPrePoint () const {return m_XYZ_pre_z ;};
107 double GetPositionXOfPostPoint () const {return m_XYZ_post_x ;};
108 double GetPositionYOfPostPoint () const {return m_XYZ_post_y ;};
109 double GetPositionZOfPostPoint () const {return m_XYZ_post_z ;};
110 double GetMomentumXOfPrePoint () const {return m_P_pre_x ;};
111 double GetMomentumYOfPrePoint () const {return m_P_pre_y ;};
112 double GetMomentumZOfPrePoint () const {return m_P_pre_z ;};
113 double GetMomentumXOfPostPoint () const {return m_P_post_x ;};
114 double GetMomentumYOfPostPoint () const {return m_P_post_y ;};
115 double GetMomentumZOfPostPoint () const {return m_P_post_z ;};
116 double GetFlightLengthPrePoint () const {return m_flightLength_pre;}
117 double GetFlightLengthPostPoint() const {return m_flightLength_post;}
118 const vector<int> & GetDigiIdxVec() const {return m_vec_digi_id;}
119 const vector<int> & GetXclusterIdxVec() const {return m_vec_Xcluster_id;}
120 const vector<int> & GetVclusterIdxVec() const {return m_vec_Vcluster_id;}
121 // vector<int>GetIdentifier () const {return m_ID_Identifier;};
122 TArrayI GetIdentifier () const {return m_ID_Identifier;};
123 string GetCreatorProcess () const {return m_creatorProcess;};
124 /*
125 double GetPrePositionXInCu () const {return m_Cu_pre_x ;};
126 double GetPrePositionYInCu () const {return m_Cu_pre_y ;};
127 double GetPrePositionZInCu () const {return m_Cu_pre_z ;};
128 double GetPostPositionXInCu () const {return m_Cu_post_x ;};
129 double GetPostPositionYInCu () const {return m_Cu_post_y ;};
130 double GetPostPositionZInCu () const {return m_Cu_post_z ;};
131 double GetMomentumXOfCuPre () const {return m_P_Cu_pre_x ;};
132 double GetMomentumYOfCuPre () const {return m_P_Cu_pre_y ;};
133 double GetMomentumZOfCuPre () const {return m_P_Cu_pre_z ;};
134 double GetMomentumXOfCuPost () const {return m_P_Cu_post_x;};
135 double GetMomentumYOfCuPost () const {return m_P_Cu_post_y;};
136 double GetMomentumZOfCuPost () const {return m_P_Cu_post_z;};
137 */
138 private:
139
140 CgemMcHit(const CgemMcHit &);
141
142 CgemMcHit &operator=(const CgemMcHit &);
143
144 int m_ID_track;
145 int m_currentTrackID;
146 int m_isSecondary;
147 int m_ID_layer;
148 int m_pdg;
149 int m_ID_parent;
150 double m_E_deposit;
151 double m_XYZ_pre_x;
152 double m_XYZ_pre_y;
153 double m_XYZ_pre_z;
154 double m_XYZ_post_x;
155 double m_XYZ_post_y;
156 double m_XYZ_post_z;
157 double m_P_pre_x;
158 double m_P_pre_y;
159 double m_P_pre_z;
160 double m_P_post_x;
161 double m_P_post_y;
162 double m_P_post_z;
163 double m_flightLength_pre;
164 double m_flightLength_post;
165 TArrayI m_ID_Identifier;
166 string m_creatorProcess; /* Name of the generation process */
167 vector<int> m_vec_digi_id;
168 vector<int> m_vec_Xcluster_id;
169 vector<int> m_vec_Vcluster_id;
170 /*
171 double m_Cu_pre_x;
172 double m_Cu_pre_y;
173 double m_Cu_pre_z;
174 double m_Cu_post_x;
175 double m_Cu_post_y;
176 double m_Cu_post_z;
177 double m_P_Cu_pre_x;
178 double m_P_Cu_pre_y;
179 double m_P_Cu_pre_z;
180 double m_P_Cu_post_x;
181 double m_P_Cu_post_y;
182 double m_P_Cu_post_z;
183 */
184};
185
186typedef ObjectVector<CgemMcHit> CgemMcHitCol;
187
188} /* End of 'NameSpace Event' */
189
190//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
191#endif
const CLID & CLID_CgemMcHit
Definition: EventModel.cxx:248
const CLID & CLID_CgemMcHit
Definition: EventModel.cxx:248
double GetPositionXOfPostPoint() const
Definition: CgemMcHit.h:107
void SetMomentumXOfPostPoint(double f_P_post_x)
Definition: CgemMcHit.h:65
void SetMomentumZOfPostPoint(double f_P_post_z)
Definition: CgemMcHit.h:67
TArrayI GetIdentifier() const
Definition: CgemMcHit.h:122
void AddIdentifier(Int_t f_ID_Identifier[2000], Int_t N_dim)
Definition: CgemMcHit.h:73
int GetCurrentTrackID() const
Definition: CgemMcHit.h:98
int GetPDGCode() const
Definition: CgemMcHit.h:101
void SetFlightLengthPrePoint(double f_len)
Definition: CgemMcHit.h:68
void SetPositionXOfPrePoint(double f_XYZ_pre_x)
Definition: CgemMcHit.h:56
double GetPositionYOfPrePoint() const
Definition: CgemMcHit.h:105
double GetMomentumYOfPrePoint() const
Definition: CgemMcHit.h:111
void SetPositionZOfPrePoint(double f_XYZ_pre_z)
Definition: CgemMcHit.h:58
int GetIsSecondary() const
Definition: CgemMcHit.h:99
void SetCurrentTrackID(int f_ID_track)
Definition: CgemMcHit.h:50
double GetPositionZOfPrePoint() const
Definition: CgemMcHit.h:106
double GetMomentumXOfPrePoint() const
Definition: CgemMcHit.h:110
void SetXclusterIdxVec(const vector< int > &vec)
Definition: CgemMcHit.h:79
void SetIsSecondary(int isSec)
Definition: CgemMcHit.h:51
void SetDigiIdxVec(const vector< int > &vec)
Definition: CgemMcHit.h:78
void SetMomentumYOfPostPoint(double f_P_post_y)
Definition: CgemMcHit.h:66
void SetFlightLengthPostPoint(double f_len)
Definition: CgemMcHit.h:69
void SetMomentumZOfPrePoint(double f_P_pre_z)
Definition: CgemMcHit.h:64
int GetTrackID() const
Definition: CgemMcHit.h:97
void SetParentID(int f_ID_parent)
Definition: CgemMcHit.h:54
int GetLayerID() const
Definition: CgemMcHit.h:100
double GetFlightLengthPostPoint() const
Definition: CgemMcHit.h:117
void SetTrackID(int f_ID_track)
Definition: CgemMcHit.h:49
void SetMomentumXOfPrePoint(double f_P_pre_x)
Definition: CgemMcHit.h:62
void SetPositionXOfPostPoint(double f_XYZ_post_x)
Definition: CgemMcHit.h:59
static const CLID & classID()
Definition: CgemMcHit.h:28
void SetPositionYOfPrePoint(double f_XYZ_pre_y)
Definition: CgemMcHit.h:57
const vector< int > & GetVclusterIdxVec() const
Definition: CgemMcHit.h:120
void SetVclusterIdxVec(const vector< int > &vec)
Definition: CgemMcHit.h:80
void SetCreatorProcess(string creatorProcess)
Definition: CgemMcHit.h:74
void AddDigiIdx(int id)
Definition: CgemMcHit.h:75
double GetMomentumZOfPrePoint() const
Definition: CgemMcHit.h:112
double GetMomentumYOfPostPoint() const
Definition: CgemMcHit.h:114
void AddVclusterIdx(int id)
Definition: CgemMcHit.h:77
double GetMomentumZOfPostPoint() const
Definition: CgemMcHit.h:115
int GetParentID() const
Definition: CgemMcHit.h:102
void SetTotalEnergyDeposit(double f_E_deposit)
Definition: CgemMcHit.h:55
void SetPositionYOfPostPoint(double f_XYZ_post_y)
Definition: CgemMcHit.h:60
const vector< int > & GetXclusterIdxVec() const
Definition: CgemMcHit.h:119
double GetFlightLengthPrePoint() const
Definition: CgemMcHit.h:116
double GetTotalEnergyDeposit() const
Definition: CgemMcHit.h:103
double GetPositionXOfPrePoint() const
Definition: CgemMcHit.h:104
void SetLayerID(int f_ID_layer)
Definition: CgemMcHit.h:52
void SetPositionZOfPostPoint(double f_XYZ_post_z)
Definition: CgemMcHit.h:61
void SetMomentumYOfPrePoint(double f_P_pre_y)
Definition: CgemMcHit.h:63
double GetPositionZOfPostPoint() const
Definition: CgemMcHit.h:109
double GetMomentumXOfPostPoint() const
Definition: CgemMcHit.h:113
void SetPDGCode(int pdg)
Definition: CgemMcHit.h:53
double GetPositionYOfPostPoint() const
Definition: CgemMcHit.h:108
string GetCreatorProcess() const
Definition: CgemMcHit.h:123
void AddXclusterIdx(int id)
Definition: CgemMcHit.h:76
virtual const CLID & clID() const
Definition: CgemMcHit.h:23
const vector< int > & GetDigiIdxVec() const
Definition: CgemMcHit.h:118
Definition: Event.h:21
ObjectVector< CgemMcHit > CgemMcHitCol
Definition: CgemMcHit.h:186
dble_vec_t vec[12]
Definition: ranlxd.c:372