CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
TCgemKalTrack.h
Go to the documentation of this file.
1#ifndef RootEventData_TCgemKalTrack_H
2#define RootEventData_TCgemKalTrack_H 1
3
4#include "TObject.h"
5#include "TString.h"
6
7class TCgemKalTrack : public TObject {
8
9public:
10
12
14
15 //extractors
16 Int_t getTrackId() const { return m_trackId; }
17 Int_t getStat(const Int_t pid) const { return m_stat[pid]; }
18 Int_t getStat2(const Int_t pid) const { return m_stat2[pid]; }
19 Double_t getChisq(const Int_t pid) const { return m_chisq[pid];}
20 Int_t getNdf(const Int_t pid) const { return m_ndf[pid]; }
21 Int_t getFirstLayer(const Int_t pid) const { return m_firstLayer[pid]; }
22 Int_t getLastLayer(const Int_t pid) const {return m_lastLayer[pid];}
23
24 Double_t getZHelix(Int_t i) const {return m_zhelix[i];}
25 Double_t getZError(Int_t i, Int_t j) const {return m_zerror[i][j];}
26 //Double_t getPoca(Int_t i) const {return m_poca[i];}
27 Double_t getZHelixE(Int_t i) const {return m_zhelix_e[i];}
28 Double_t getZErrorE(Int_t i, Int_t j) const {return m_zerror_e[i][j];}
29 //Double_t getPocaE(Int_t i) const {return m_poca_e[i];}
30 Double_t getZHelixMu(Int_t i) const {return m_zhelix_mu[i];}
31 Double_t getZErrorMu(Int_t i, Int_t j) const {return m_zerror_mu[i][j];}
32 //Double_t getPocaMu(Int_t i) const {return m_poca_mu[i];}
33 Double_t getZHelixK(Int_t i) const {return m_zhelix_k[i];}
34 Double_t getZErrorK(Int_t i, Int_t j) const {return m_zerror_k[i][j];}
35 //Double_t getPocaK(Int_t i) const {return m_poca_k[i];}
36 Double_t getZHelixP(Int_t i) const {return m_zhelix_p[i];}
37 Double_t getZErrorP(Int_t i, Int_t j) const {return m_zerror_p[i][j];}
38 //Double_t getPocaP(Int_t i) const {return m_poca_p[i];}
39
40 Double_t getFHelix(Int_t i) const {return m_fhelix[i];}
41 Double_t getFError(Int_t i, Int_t j) const {return m_ferror[i][j];}
42 Double_t getFHelixE(Int_t i) const {return m_fhelix_e[i];}
43 Double_t getFErrorE(Int_t i, Int_t j) const {return m_ferror_e[i][j];}
44 Double_t getFHelixMu(Int_t i) const {return m_fhelix_mu[i];}
45 Double_t getFErrorMu(Int_t i, Int_t j) const {return m_ferror_mu[i][j];}
46 Double_t getFHelixK(Int_t i) const {return m_fhelix_k[i];}
47 Double_t getFErrorK(Int_t i, Int_t j) const {return m_ferror_k[i][j];}
48 Double_t getFHelixP(Int_t i) const {return m_fhelix_p[i];}
49 Double_t getFErrorP(Int_t i, Int_t j) const {return m_ferror_p[i][j];}
50 //modifiers
51 void setTrackId (const Int_t trackId) { m_trackId = trackId; }
52 void setStat(const Int_t stat, const Int_t pid) {m_stat[pid] = stat;}
53 void setStat2(const Int_t stat, const Int_t pid) {m_stat2[pid] = stat;}
54 void setChisq(const Double_t chisq, const Int_t pid) {m_chisq[pid] = chisq;}
55 void setNdf(const Int_t ndf, const Int_t pid) {m_ndf[pid] = ndf;}
56 void setFirstLayer(const Int_t fL, const Int_t pid) { m_firstLayer[pid] = fL; }
57 void setLastLayer(const Int_t lL, const Int_t pid){ m_lastLayer[pid] = lL;}
58
59 void setZHelix(const Double_t zhelix[5]){
60 for (int i=0; i<5; i++)
61 m_zhelix[i] = zhelix[i];
62 }
63 void setZError(const Double_t zerror[5][5]){
64 for (int i=0 ; i<5 ; i++)
65 for (int j=0; j<=i; j++){
66 m_zerror[i][j] = zerror[i][j];
67 m_zerror[j][i] = zerror[i][j];
68 }
69 }
70
71 //void setPoca(const Double_t poca[3]){
72 // for(int i=0; i<3; i++) m_poca[i] = poca[i];
73 //}
74
75 void setZHelixE(const Double_t zhelix_e[5]){
76 for (int i = 0 ; i<5 ; i++)
77 m_zhelix_e[i] = zhelix_e[i];
78 }
79 void setZErrorE(const Double_t zerror_e[5][5]){
80 for (int i= 0 ; i<5 ; i++)
81 for (int j=0; j<=i; j++){
82 m_zerror_e[i][j] = zerror_e[i][j];
83 m_zerror_e[j][i] = zerror_e[i][j];
84 }
85 }
86 //void setPocaE(const Double_t poca_e[3]){
87 // for(int i=0; i<3; i++) m_poca_e[i] = poca_e[i];
88 //}
89
90 void setZHelixMu(const Double_t zhelix_mu[5]){
91 for (int i = 0 ; i<5 ; i++)
92 m_zhelix_mu[i] = zhelix_mu[i];
93 }
94 void setZErrorMu(const Double_t zerror_mu[5][5]){
95 for (int i= 0 ; i<5 ; i++)
96 for (int j=0; j<=i; j++){
97 m_zerror_mu[i][j] = zerror_mu[i][j];
98 m_zerror_mu[j][i] = zerror_mu[i][j]; }
99 }
100 //void setPocaMu(const Double_t poca_mu[3]){
101 // for(int i=0; i<3; i++) m_poca_mu[i] = poca_mu[i];
102 //}
103
104 void setZHelixK(const Double_t zhelix_k[5]){
105 for (int i = 0 ; i<5 ; i++)
106 m_zhelix_k[i] = zhelix_k[i];
107 }
108 void setZErrorK(const Double_t zerror_k[5][5]){
109 for (int i= 0 ; i<5 ; i++)
110 for (int j=0; j<=i; j++){
111 m_zerror_k[i][j] = zerror_k[i][j];
112 m_zerror_k[j][i] = zerror_k[i][j];
113 }
114 }
115 //void setPocaK(const Double_t poca_k[3]){
116 // for(int i=0; i<3; i++) m_poca_k[i] = poca_k[i];
117 //}
118
119 void setZHelixP(const Double_t zhelix_p[5]){
120 for (int i = 0 ; i<5 ; i++)
121 m_zhelix_p[i] = zhelix_p[i];
122 }
123 void setZErrorP(const Double_t zerror_p[5][5]){
124 for (int i=0; i<5; i++)
125 for (int j=0; j<=i; j++){
126 m_zerror_p[i][j] = zerror_p[i][j];
127 m_zerror_p[j][i] = zerror_p[i][j];
128 }
129 }
130 //void setPocaP(const Double_t poca_p[3]){
131 // for(int i=0; i<3; i++) m_poca_p[i] = poca_p[i];
132 //}
133
134 void setFHelix(const Double_t fhelix[5]){
135 for (int i=0; i<5; i++)
136 m_fhelix[i] = fhelix[i];
137 }
138 void setFError(const Double_t ferror[5][5]){
139 for (int i=0 ; i<5 ; i++)
140 for (int j=0; j<=i; j++){
141 m_ferror[i][j] = ferror[i][j];
142 m_ferror[j][i] = ferror[i][j];
143 }
144 }
145
146 void setFHelixE(const Double_t fhelix_e[5]){
147 for (int i = 0 ; i<5 ; i++)
148 m_fhelix_e[i] = fhelix_e[i];
149 }
150 void setFErrorE(const Double_t ferror_e[5][5]){
151 for (int i= 0 ; i<5 ; i++)
152 for (int j=0; j<=i; j++){
153 m_ferror_e[i][j] = ferror_e[i][j];
154 m_ferror_e[j][i] = ferror_e[i][j];
155 }
156 }
157
158 void setFHelixMu(const Double_t fhelix_mu[5]){
159 for (int i = 0 ; i<5 ; i++)
160 m_fhelix_mu[i] = fhelix_mu[i];
161 }
162 void setFErrorMu(const Double_t ferror_mu[5][5]){
163 for (int i= 0 ; i<5 ; i++)
164 for (int j=0; j<=i; j++){
165 m_ferror_mu[i][j] = ferror_mu[i][j];
166 m_ferror_mu[j][i] = ferror_mu[i][j];
167 }
168 }
169
170 void setFHelixK(const Double_t fhelix_k[5]){
171 for (int i = 0 ; i<5 ; i++)
172 m_fhelix_k[i] = fhelix_k[i];
173 }
174 void setFErrorK(const Double_t ferror_k[5][5]){
175 for (int i= 0 ; i<5 ; i++)
176 for (int j=0; j<=i; j++){
177 m_ferror_k[i][j] = ferror_k[i][j];
178 m_ferror_k[j][i] = ferror_k[i][j];
179 }
180 }
181
182 void setFHelixP(const Double_t fhelix_p[5]){
183 for (int i = 0 ; i<5 ; i++)
184 m_fhelix_p[i] = fhelix_p[i];
185 }
186 void setFErrorP(const Double_t ferror_p[5][5]){
187 for (int i= 0 ; i<5 ; i++)
188 for (int j=0; j<=i; j++){
189 m_ferror_p[i][j] = ferror_p[i][j];
190 m_ferror_p[j][i] = ferror_p[i][j];
191 }
192 }
193
194
195private:
196 Int_t m_trackId;
197 Int_t m_stat[5];
198 Int_t m_stat2[5];
199 Double_t m_chisq[5];
200 Int_t m_ndf[5];
201 Int_t m_firstLayer[5];
202 Int_t m_lastLayer[5];
203
204 //Double_t m_poca[3];
205 Double_t m_zhelix[5]; // 5 track parameters at zero point for pi
206 Double_t m_zerror[5][5]; // error matrix at zero point for pion
207
208 //Double_t m_poca_e[3];
209 Double_t m_zhelix_e[5]; // 5 track parameters at zero point for el
210 Double_t m_zerror_e[5][5]; // error matrix at zero point for electron
211
212 //Double_t m_poca_mu[3];
213 Double_t m_zhelix_mu[5]; // 5 track parameters at zero point for mu
214 Double_t m_zerror_mu[5][5];// error matrix at zero point for muon ;
215
216 //Double_t m_poca_k[3];
217 Double_t m_zhelix_k[5]; // 5 track parameters at zero point for ka
218 Double_t m_zerror_k[5][5]; // error matrix at zero point for kaon
219
220 //Double_t m_poca_p[3];
221 Double_t m_zhelix_p[5]; // 5 track parameters at zero point for pr
222 Double_t m_zerror_p[5][5]; // error matrix at zero point for proton
223
224 Double_t m_fhelix[5]; // 5 track parameters at first Cgemhit for pi
225 Double_t m_ferror[5][5]; // error matrix at first Cgem hit for pion
226 Double_t m_fhelix_e[5];
227 Double_t m_ferror_e[5][5];
228 Double_t m_fhelix_mu[5];
229 Double_t m_ferror_mu[5][5];
230 Double_t m_fhelix_k[5];
231 Double_t m_ferror_k[5][5];
232 Double_t m_fhelix_p[5];
233 Double_t m_ferror_p[5][5];
234
235 ClassDef(TCgemKalTrack,2)
236};
237
238#endif
void setZErrorK(const Double_t zerror_k[5][5])
void setTrackId(const Int_t trackId)
void setZHelix(const Double_t zhelix[5])
Double_t getZHelixE(Int_t i) const
Int_t getNdf(const Int_t pid) const
void setFErrorK(const Double_t ferror_k[5][5])
Double_t getZErrorMu(Int_t i, Int_t j) const
Double_t getZErrorP(Int_t i, Int_t j) const
Int_t getTrackId() const
void setZErrorP(const Double_t zerror_p[5][5])
void setFHelixK(const Double_t fhelix_k[5])
void setFHelixMu(const Double_t fhelix_mu[5])
void setStat(const Int_t stat, const Int_t pid)
Double_t getFHelixE(Int_t i) const
void setFHelixP(const Double_t fhelix_p[5])
void setFError(const Double_t ferror[5][5])
Double_t getZHelixMu(Int_t i) const
Double_t getFHelixMu(Int_t i) const
void setZHelixK(const Double_t zhelix_k[5])
void setFirstLayer(const Int_t fL, const Int_t pid)
Double_t getFErrorE(Int_t i, Int_t j) const
void setFHelix(const Double_t fhelix[5])
void setZHelixP(const Double_t zhelix_p[5])
Double_t getChisq(const Int_t pid) const
Double_t getZErrorK(Int_t i, Int_t j) const
Double_t getZHelixK(Int_t i) const
void setZHelixMu(const Double_t zhelix_mu[5])
Double_t getFHelix(Int_t i) const
void setNdf(const Int_t ndf, const Int_t pid)
void setLastLayer(const Int_t lL, const Int_t pid)
Int_t getStat2(const Int_t pid) const
void setFErrorP(const Double_t ferror_p[5][5])
void setZErrorMu(const Double_t zerror_mu[5][5])
Double_t getFErrorK(Int_t i, Int_t j) const
Double_t getFErrorMu(Int_t i, Int_t j) const
Int_t getStat(const Int_t pid) const
Double_t getFHelixK(Int_t i) const
void setZHelixE(const Double_t zhelix_e[5])
void setZErrorE(const Double_t zerror_e[5][5])
void setFHelixE(const Double_t fhelix_e[5])
Double_t getZHelixP(Int_t i) const
void setFErrorMu(const Double_t ferror_mu[5][5])
void setStat2(const Int_t stat, const Int_t pid)
Double_t getZHelix(Int_t i) const
Int_t getFirstLayer(const Int_t pid) const
void setZError(const Double_t zerror[5][5])
Double_t getZErrorE(Int_t i, Int_t j) const
void setChisq(const Double_t chisq, const Int_t pid)
Int_t getLastLayer(const Int_t pid) const
Double_t getFErrorP(Int_t i, Int_t j) const
Double_t getZError(Int_t i, Int_t j) const
Double_t getFHelixP(Int_t i) const
void setFErrorE(const Double_t ferror_e[5][5])
Double_t getFError(Int_t i, Int_t j) const