7 |
|
|
8 |
OrbitalInfoTrkVar::OrbitalInfoTrkVar(){ |
OrbitalInfoTrkVar::OrbitalInfoTrkVar(){ |
9 |
this->Clear(); |
this->Clear(); |
10 |
|
// Eij = new TMatrixD(3,3); |
11 |
|
// Sij = new TMatrixD(3,3); |
12 |
} |
} |
13 |
|
|
14 |
void OrbitalInfoTrkVar::Clear(Option_t *t){ |
void OrbitalInfoTrkVar::Clear(Option_t *t){ |
15 |
trkseqno = 0; |
trkseqno = 0; |
16 |
pitch = -1000.; |
pitch = -1000.; |
17 |
|
cutoff = -1000.; |
18 |
|
Eij.Zero(); |
19 |
|
Sij.Zero(); |
20 |
} |
} |
21 |
|
|
22 |
|
void OrbitalInfoTrkVar::Delete(Option_t *t){ |
23 |
|
// if ( Eij ) Eij->Delete(); |
24 |
|
// if ( Sij ) Sij->Delete(); |
25 |
|
} |
26 |
|
|
27 |
OrbitalInfo::OrbitalInfo(){ |
OrbitalInfo::OrbitalInfo(){ |
28 |
OrbitalInfoTrk = 0; //ELENA |
OrbitalInfoTrk = 0; //ELENA |
29 |
this->Clear(); |
this->Clear(); |
30 |
} |
} |
31 |
|
|
32 |
|
OrbitalInfoTrkVar::OrbitalInfoTrkVar(const OrbitalInfoTrkVar &t){ |
33 |
|
// |
34 |
|
trkseqno = t.trkseqno; |
35 |
|
// |
36 |
|
pitch = t.pitch; |
37 |
|
cutoff = t.cutoff; |
38 |
|
// |
39 |
|
Eij.ResizeTo(t.Eij); |
40 |
|
Eij = t.Eij; |
41 |
|
Sij.ResizeTo(t.Sij); |
42 |
|
Sij = t.Sij; |
43 |
|
// |
44 |
|
}; |
45 |
|
|
46 |
void OrbitalInfo::Delete(Option_t *t){ //ELENA |
void OrbitalInfo::Delete(Option_t *t){ //ELENA |
47 |
// |
// |
48 |
|
// if ( Iij ) Iij->Delete(); |
49 |
if(OrbitalInfoTrk){ |
if(OrbitalInfoTrk){ |
50 |
OrbitalInfoTrk->Delete(); //ELENA |
OrbitalInfoTrk->Delete(); //ELENA |
51 |
delete OrbitalInfoTrk; //ELENA |
delete OrbitalInfoTrk; //ELENA |
54 |
}; //ELENA |
}; //ELENA |
55 |
|
|
56 |
void OrbitalInfo::Set(){//ELENA |
void OrbitalInfo::Set(){//ELENA |
57 |
if ( !OrbitalInfoTrk ) OrbitalInfoTrk = new TClonesArray("OrbitalInfoTrkVar",2); //ELENA |
if ( !OrbitalInfoTrk ) OrbitalInfoTrk = new TClonesArray("OrbitalInfoTrkVar",2); //ELENA} |
58 |
|
// if ( !Iij ) Iij = new TMatrixD(3,3); |
59 |
}//ELENA |
}//ELENA |
60 |
|
|
61 |
|
OrbitalInfoTrkVar *OrbitalInfo::GetOrbitalInfoTrkVar(Int_t itrk){ |
62 |
|
// |
63 |
|
if(itrk >= ntrk()){ |
64 |
|
printf(" OrbitalInfo ERROR: track related variables set %i does not exists! \n",itrk); |
65 |
|
printf(" stored track related variables = %i \n",ntrk()); |
66 |
|
return(NULL); |
67 |
|
} |
68 |
|
// |
69 |
|
if(!OrbitalInfoTrk)return 0; //ELENA |
70 |
|
TClonesArray &t = *(OrbitalInfoTrk); |
71 |
|
OrbitalInfoTrkVar *orbtrack = (OrbitalInfoTrkVar*)t[itrk]; |
72 |
|
return orbtrack; |
73 |
|
} |
74 |
|
|
75 |
void OrbitalInfo::Clear(Option_t *t){ |
void OrbitalInfo::Clear(Option_t *t){ |
76 |
// |
// |
88 |
Beast = -1000.; |
Beast = -1000.; |
89 |
Bdown = -1000.; |
Bdown = -1000.; |
90 |
Babs = -1000.; |
Babs = -1000.; |
91 |
|
M = -1000; |
92 |
BB0 = -1000.; |
BB0 = -1000.; |
93 |
L = -1000.; |
L = -1000.; |
94 |
|
|
95 |
londip = -1000.; |
// londip = -1000.; |
96 |
latdip = -1000.; |
// latdip = -1000.; |
97 |
altdip = -1000.; |
// altdip = -1000.; |
98 |
|
|
99 |
loncgm = -1000.; |
// loncgm = -1000.; |
100 |
latcgm = -1000.; |
// latcgm = -1000.; |
101 |
altcgm = -1000.; |
// altcgm = -1000.; |
102 |
|
|
103 |
loncbm = -1000.; |
// loncbm = -1000.; |
104 |
latcbm = -1000.; |
// latcbm = -1000.; |
105 |
altcbm = -1000.; |
// altcbm = -1000.; |
106 |
|
|
107 |
std::fill_n(cutoff, 20, 0.); |
// std::fill_n(cutoff, 20, 0.); |
108 |
|
// std::fill_n(cutoff, 2, 0.); |
109 |
|
cutoffsvl = 0.; |
110 |
|
|
111 |
// Quaternions |
// Quaternions |
112 |
q0 = -1000.; |
q0 = -1000.; |
124 |
// phimag = -1000.; |
// phimag = -1000.; |
125 |
// ethamag = -1000.; |
// ethamag = -1000.; |
126 |
|
|
127 |
pamzenitangle = -1000.; |
// pamzenitangle = -1000.; |
128 |
pamBangle = -1000.; |
// pamBangle = -1000.; |
129 |
|
Iij.Zero(); |
130 |
|
|
131 |
mode = 0; |
mode = 0; |
132 |
// std::fill_n(goodAttitude, 5, 0); |
// std::fill_n(goodAttitude, 5, 0); |
148 |
l2->Beast = Beast; |
l2->Beast = Beast; |
149 |
l2->Bdown = Bdown; |
l2->Bdown = Bdown; |
150 |
l2->Babs = Babs; |
l2->Babs = Babs; |
151 |
|
l2->M = M; |
152 |
l2->BB0 = BB0; |
l2->BB0 = BB0; |
153 |
l2->L = L; |
l2->L = L; |
154 |
|
|
155 |
l2->londip = londip; |
// l2->londip = londip; |
156 |
l2->latdip = latdip; |
// l2->latdip = latdip; |
157 |
l2->altdip = altdip; |
// l2->altdip = altdip; |
158 |
|
|
159 |
l2->loncgm = loncgm; |
// l2->loncgm = loncgm; |
160 |
l2->latcgm = latcgm; |
// l2->latcgm = latcgm; |
161 |
l2->altcgm = altcgm; |
// l2->altcgm = altcgm; |
162 |
|
|
163 |
l2->loncbm = loncbm; |
// l2->loncbm = loncbm; |
164 |
l2->latcbm = latcbm; |
// l2->latcbm = latcbm; |
165 |
l2->altcbm = altcbm; |
// l2->altcbm = altcbm; |
166 |
|
|
167 |
memcpy(l2->cutoff, cutoff, sizeof(cutoff)); |
l2->cutoffsvl = cutoffsvl; |
168 |
|
// memcpy(l2->cutoffsvl, cutoffsvl, sizeof(cutoffsvl)); |
169 |
|
|
170 |
// Quaternions |
// Quaternions |
171 |
l2->q0 = q0; |
l2->q0 = q0; |
200 |
l2->Beast = Beast; |
l2->Beast = Beast; |
201 |
l2->Bdown = Bdown; |
l2->Bdown = Bdown; |
202 |
l2->Babs = Babs; |
l2->Babs = Babs; |
203 |
|
M = l2->M; |
204 |
BB0 = l2->BB0; |
BB0 = l2->BB0; |
205 |
L = l2->L; |
L = l2->L; |
206 |
|
|
207 |
londip = l2->londip; |
// londip = l2->londip; |
208 |
latdip = l2->latdip; |
// latdip = l2->latdip; |
209 |
altdip = l2->altdip; |
// altdip = l2->altdip; |
210 |
|
|
211 |
loncgm = l2->loncgm; |
// loncgm = l2->loncgm; |
212 |
latcgm = l2->latcgm; |
// latcgm = l2->latcgm; |
213 |
altcgm = l2->altcgm; |
// altcgm = l2->altcgm; |
214 |
|
|
215 |
loncbm = l2->loncbm; |
// loncbm = l2->loncbm; |
216 |
latcbm = l2->latcbm; |
// latcbm = l2->latcbm; |
217 |
altcbm = l2->altcbm; |
// altcbm = l2->altcbm; |
218 |
|
|
219 |
memcpy(cutoff, l2->cutoff, sizeof(l2->cutoff)); |
// memcpy(cutoff, l2->cutoff, sizeof(l2->cutoff)); |
220 |
|
l2->cutoffsvl = cutoffsvl; |
221 |
|
|
222 |
// Quaternions |
// Quaternions |
223 |
q0 = l2->q0; |
q0 = l2->q0; |