CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
TCgemMc.h
Go to the documentation of this file.
1#ifndef RootEventData_TCgemMc_H
2#define RootEventData_TCgemMc_H 1
3
4#include "TObject.h"
5#include "TArrayI.h"
6#include "TString.h"
7#include <vector>
8#include <string>
9
10class TCgemMc : public TObject {
11
12public:
13
15 ~TCgemMc();
16
17 /* Set methods */
18 void SetTrackID ( UInt_t f_ID_track ) {m_ID_track = f_ID_track ;};
19 void SetLayerID ( UInt_t f_ID_layer ) {m_ID_layer = f_ID_layer ;};
20 void SetPDGCode ( UInt_t f_pdg_code ) {m_pdg_code = f_pdg_code ;};
21 void SetParentID ( UInt_t f_ID_parent ) {m_ID_parent = f_ID_parent ;};
22 void SetTotalEnergyDeposit ( Double_t f_E_deposit ) {m_E_deposit = f_E_deposit ;};
23 void SetPositionXOfPrePoint ( Double_t f_XYZ_pre_x ) {m_XYZ_pre_x = f_XYZ_pre_x ;};
24 void SetPositionYOfPrePoint ( Double_t f_XYZ_pre_y ) {m_XYZ_pre_y = f_XYZ_pre_y ;};
25 void SetPositionZOfPrePoint ( Double_t f_XYZ_pre_z ) {m_XYZ_pre_z = f_XYZ_pre_z ;};
26 void SetPositionXOfPostPoint ( Double_t f_XYZ_post_x ) {m_XYZ_post_x = f_XYZ_post_x ;};
27 void SetPositionYOfPostPoint ( Double_t f_XYZ_post_y ) {m_XYZ_post_y = f_XYZ_post_y ;};
28 void SetPositionZOfPostPoint ( Double_t f_XYZ_post_z ) {m_XYZ_post_z = f_XYZ_post_z ;};
29 void SetMomentumXOfPrePoint ( Double_t f_P_pre_x ) {m_P_pre_x = f_P_pre_x ;};
30 void SetMomentumYOfPrePoint ( Double_t f_P_pre_y ) {m_P_pre_y = f_P_pre_y ;};
31 void SetMomentumZOfPrePoint ( Double_t f_P_pre_z ) {m_P_pre_z = f_P_pre_z ;};
32 void SetMomentumXOfPostPoint ( Double_t f_P_post_x ) {m_P_post_x = f_P_post_x ;};
33 void SetMomentumYOfPostPoint ( Double_t f_P_post_y ) {m_P_post_y = f_P_post_y ;};
34 void SetMomentumZOfPostPoint ( Double_t f_P_post_z ) {m_P_post_z = f_P_post_z ;};
35 void SetIsSecondary ( UInt_t isSec ) {m_isSecondary= isSec ;};
36 void SetFlightLengthPrePoint ( Double_t f_len ) {m_flightLength_pre=f_len;}
37 void SetFlightLengthPostPoint( Double_t f_len ) {m_flightLength_post=f_len;};
38 void SetDigiIdxVec ( const std::vector<int>& vec ) {m_vec_digi_id=vec ;};
39 void SetXclusterIdxVec ( const std::vector<int>& vec ) {m_vec_Xcluster_id=vec ;};
40 void SetVclusterIdxVec ( const std::vector<int>& vec ) {m_vec_Vcluster_id=vec ;};
41 /*
42 void SetPrePositionXInCu ( Double_t f_Cu_pre_x ) {m_Cu_pre_x = f_Cu_pre_x ;};
43 void SetPrePositionYInCu ( Double_t f_Cu_pre_y ) {m_Cu_pre_y = f_Cu_pre_y ;};
44 void SetPrePositionZInCu ( Double_t f_Cu_pre_z ) {m_Cu_pre_z = f_Cu_pre_z ;};
45 void SetPostPositionXInCu ( Double_t f_Cu_post_x ) {m_Cu_post_x = f_Cu_post_x ;};
46 void SetPostPositionYInCu ( Double_t f_Cu_post_y ) {m_Cu_post_y = f_Cu_post_y ;};
47 void SetPostPositionZInCu ( Double_t f_Cu_post_z ) {m_Cu_post_z = f_Cu_post_z ;};
48 void SetMomentumXOfCuPre ( Double_t f_P_Cu_pre_x ) {m_P_Cu_pre_x = f_P_Cu_pre_x ;};
49 void SetMomentumYOfCuPre ( Double_t f_P_Cu_pre_y ) {m_P_Cu_pre_y = f_P_Cu_pre_y ;};
50 void SetMomentumZOfCuPre ( Double_t f_P_Cu_pre_z ) {m_P_Cu_pre_z = f_P_Cu_pre_z ;};
51 void SetMomentumXOfCuPost ( Double_t f_P_Cu_post_x ) {m_P_Cu_post_x = f_P_Cu_post_x ;};
52 void SetMomentumYOfCuPost ( Double_t f_P_Cu_post_y ) {m_P_Cu_post_y = f_P_Cu_post_y ;};
53 void SetMomentumZOfCuPost ( Double_t f_P_Cu_post_z ) {m_P_Cu_post_z = f_P_Cu_post_z ;};
54 */
55 // 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);};
56 void AddIdentifier ( Int_t f_ID_Identifier[2000] , Int_t N_dim ) {m_ID_Identifier.Set(N_dim, f_ID_Identifier); };
57 void SetCreatorProcess (std::string creatorProcess) {m_creatorProcess=creatorProcess;};
58
59
60 /* Get methods */
61 UInt_t GetTrackID () const {return m_ID_track ;};
62 UInt_t GetLayerID () const {return m_ID_layer ;};
63 UInt_t GetPDGCode () const {return m_pdg_code ;};
64 UInt_t GetParentID () const {return m_ID_parent ;};
65 Double_t GetTotalEnergyDeposit () const {return m_E_deposit ;};
66 Double_t GetPositionXOfPrePoint () const {return m_XYZ_pre_x ;};
67 Double_t GetPositionYOfPrePoint () const {return m_XYZ_pre_y ;};
68 Double_t GetPositionZOfPrePoint () const {return m_XYZ_pre_z ;};
69 Double_t GetPositionXOfPostPoint () const {return m_XYZ_post_x ;};
70 Double_t GetPositionYOfPostPoint () const {return m_XYZ_post_y ;};
71 Double_t GetPositionZOfPostPoint () const {return m_XYZ_post_z ;};
72 Double_t GetMomentumXOfPrePoint () const {return m_P_pre_x ;};
73 Double_t GetMomentumYOfPrePoint () const {return m_P_pre_y ;};
74 Double_t GetMomentumZOfPrePoint () const {return m_P_pre_z ;};
75 Double_t GetMomentumXOfPostPoint () const {return m_P_post_x ;};
76 Double_t GetMomentumYOfPostPoint () const {return m_P_post_y ;};
77 Double_t GetMomentumZOfPostPoint () const {return m_P_post_z ;};
78 UInt_t GetIsSecondary () const {return m_isSecondary;};
79 Double_t GetFlightLengthPrePoint () const {return m_flightLength_pre;}
80 Double_t GetFlightLengthPostPoint() const {return m_flightLength_post;}
81 const std::vector<int>& GetDigiIdxVec () const {return m_vec_digi_id;};
82 const std::vector<int>& GetXclusterIdxVec () const {return m_vec_Xcluster_id;};
83 const std::vector<int>& GetVclusterIdxVec () const {return m_vec_Vcluster_id;};
84 /*
85 Double_t GetPrePositionXInCu () const {return m_Cu_pre_x ;};
86 Double_t GetPrePositionYInCu () const {return m_Cu_pre_y ;};
87 Double_t GetPrePositionZInCu () const {return m_Cu_pre_z ;};
88 Double_t GetPostPositionXInCu () const {return m_Cu_post_x ;};
89 Double_t GetPostPositionYInCu () const {return m_Cu_post_y ;};
90 Double_t GetPostPositionZInCu () const {return m_Cu_post_z ;};
91 Double_t GetMomentumXOfCuPre () const {return m_P_Cu_pre_x ;};
92 Double_t GetMomentumYOfCuPre () const {return m_P_Cu_pre_y ;};
93 Double_t GetMomentumZOfCuPre () const {return m_P_Cu_pre_z ;};
94 Double_t GetMomentumXOfCuPost () const {return m_P_Cu_post_x;};
95 Double_t GetMomentumYOfCuPost () const {return m_P_Cu_post_y;};
96 Double_t GetMomentumZOfCuPost () const {return m_P_Cu_post_z;};
97 */
98
99 TArrayI GetIdentifier () const {return m_ID_Identifier;};
100 TString GetCreatorProcess () const {return m_creatorProcess;};
101
102private:
103 UInt_t m_ID_track;
104 UInt_t m_isSecondary;
105 UInt_t m_ID_layer;
106 UInt_t m_pdg_code;
107 UInt_t m_ID_parent;
108 Double_t m_E_deposit;
109 Double_t m_XYZ_pre_x;
110 Double_t m_XYZ_pre_y;
111 Double_t m_XYZ_pre_z;
112 Double_t m_XYZ_post_x;
113 Double_t m_XYZ_post_y;
114 Double_t m_XYZ_post_z;
115 Double_t m_P_pre_x;
116 Double_t m_P_pre_y;
117 Double_t m_P_pre_z;
118 Double_t m_P_post_x;
119 Double_t m_P_post_y;
120 Double_t m_P_post_z;
121 Double_t m_flightLength_pre;
122 Double_t m_flightLength_post;
123 std::vector<int> m_vec_digi_id;
124 std::vector<int> m_vec_Xcluster_id;
125 std::vector<int> m_vec_Vcluster_id;
126
127 /*
128 Double_t m_Cu_pre_x;
129 Double_t m_Cu_pre_y;
130 Double_t m_Cu_pre_z;
131 Double_t m_Cu_post_x;
132 Double_t m_Cu_post_y;
133 Double_t m_Cu_post_z;
134 Double_t m_P_Cu_pre_x;
135 Double_t m_P_Cu_pre_y;
136 Double_t m_P_Cu_pre_z;
137 Double_t m_P_Cu_post_x;
138 Double_t m_P_Cu_post_y;
139 Double_t m_P_Cu_post_z;
140 */
141
142 TArrayI m_ID_Identifier;
143 TString m_creatorProcess;
144 ClassDef(TCgemMc,1)
145};
146
147#endif //TrackRootData_TCgemMc_H
148
void SetIsSecondary(UInt_t isSec)
Definition: TCgemMc.h:35
Double_t GetPositionXOfPrePoint() const
Definition: TCgemMc.h:66
Double_t GetMomentumYOfPostPoint() const
Definition: TCgemMc.h:76
void AddIdentifier(Int_t f_ID_Identifier[2000], Int_t N_dim)
Definition: TCgemMc.h:56
void SetMomentumZOfPrePoint(Double_t f_P_pre_z)
Definition: TCgemMc.h:31
Double_t GetMomentumYOfPrePoint() const
Definition: TCgemMc.h:73
Double_t GetPositionYOfPrePoint() const
Definition: TCgemMc.h:67
UInt_t GetPDGCode() const
Definition: TCgemMc.h:63
Double_t GetPositionZOfPostPoint() const
Definition: TCgemMc.h:71
void SetMomentumYOfPostPoint(Double_t f_P_post_y)
Definition: TCgemMc.h:33
void SetPositionZOfPostPoint(Double_t f_XYZ_post_z)
Definition: TCgemMc.h:28
~TCgemMc()
Definition: TCgemMc.cxx:12
Double_t GetPositionZOfPrePoint() const
Definition: TCgemMc.h:68
Double_t GetFlightLengthPrePoint() const
Definition: TCgemMc.h:79
void SetMomentumXOfPrePoint(Double_t f_P_pre_x)
Definition: TCgemMc.h:29
void SetCreatorProcess(std::string creatorProcess)
Definition: TCgemMc.h:57
void SetVclusterIdxVec(const std::vector< int > &vec)
Definition: TCgemMc.h:40
void SetParentID(UInt_t f_ID_parent)
Definition: TCgemMc.h:21
void SetPositionXOfPrePoint(Double_t f_XYZ_pre_x)
Definition: TCgemMc.h:23
Double_t GetMomentumZOfPostPoint() const
Definition: TCgemMc.h:77
void SetTrackID(UInt_t f_ID_track)
Definition: TCgemMc.h:18
UInt_t GetTrackID() const
Definition: TCgemMc.h:61
void SetPositionZOfPrePoint(Double_t f_XYZ_pre_z)
Definition: TCgemMc.h:25
void SetMomentumYOfPrePoint(Double_t f_P_pre_y)
Definition: TCgemMc.h:30
void SetLayerID(UInt_t f_ID_layer)
Definition: TCgemMc.h:19
const std::vector< int > & GetXclusterIdxVec() const
Definition: TCgemMc.h:82
UInt_t GetIsSecondary() const
Definition: TCgemMc.h:78
void SetPDGCode(UInt_t f_pdg_code)
Definition: TCgemMc.h:20
void SetPositionYOfPrePoint(Double_t f_XYZ_pre_y)
Definition: TCgemMc.h:24
Double_t GetMomentumXOfPostPoint() const
Definition: TCgemMc.h:75
UInt_t GetLayerID() const
Definition: TCgemMc.h:62
const std::vector< int > & GetDigiIdxVec() const
Definition: TCgemMc.h:81
Double_t GetMomentumZOfPrePoint() const
Definition: TCgemMc.h:74
Double_t GetPositionYOfPostPoint() const
Definition: TCgemMc.h:70
void SetPositionYOfPostPoint(Double_t f_XYZ_post_y)
Definition: TCgemMc.h:27
Double_t GetPositionXOfPostPoint() const
Definition: TCgemMc.h:69
Double_t GetTotalEnergyDeposit() const
Definition: TCgemMc.h:65
void SetPositionXOfPostPoint(Double_t f_XYZ_post_x)
Definition: TCgemMc.h:26
UInt_t GetParentID() const
Definition: TCgemMc.h:64
Double_t GetFlightLengthPostPoint() const
Definition: TCgemMc.h:80
void SetMomentumXOfPostPoint(Double_t f_P_post_x)
Definition: TCgemMc.h:32
void SetXclusterIdxVec(const std::vector< int > &vec)
Definition: TCgemMc.h:39
void SetMomentumZOfPostPoint(Double_t f_P_post_z)
Definition: TCgemMc.h:34
void SetFlightLengthPrePoint(Double_t f_len)
Definition: TCgemMc.h:36
void SetDigiIdxVec(const std::vector< int > &vec)
Definition: TCgemMc.h:38
Double_t GetMomentumXOfPrePoint() const
Definition: TCgemMc.h:72
TArrayI GetIdentifier() const
Definition: TCgemMc.h:99
void SetFlightLengthPostPoint(Double_t f_len)
Definition: TCgemMc.h:37
const std::vector< int > & GetVclusterIdxVec() const
Definition: TCgemMc.h:83
void SetTotalEnergyDeposit(Double_t f_E_deposit)
Definition: TCgemMc.h:22
TString GetCreatorProcess() const
Definition: TCgemMc.h:100
dble_vec_t vec[12]
Definition: ranlxd.c:372