1 |
#include <OrbitalInfo.h> |
#include <OrbitalInfo.h> |
2 |
|
|
3 |
OrbitalInfo::OrbitalInfo(){ |
using namespace std; |
|
absTime = 0; |
|
|
OBT = 0; |
|
|
pkt_num = 0; |
|
4 |
|
|
5 |
lon = 0.; |
ClassImp(OrbitalInfoTrkVar); |
6 |
lat = 0.; |
ClassImp(OrbitalInfo); |
|
alt = 0.; |
|
|
|
|
|
Bnorth = 0.; |
|
|
Beast = 0.; |
|
|
Bdown = 0.; |
|
|
Babs = 0.; |
|
|
BB0 = 0.; |
|
|
L = 0.; |
|
7 |
|
|
8 |
londip = -1000.; |
OrbitalInfoTrkVar::OrbitalInfoTrkVar(){ |
9 |
latdip = -1000.; |
this->Clear(); |
10 |
altdip = -1000.; |
} |
|
|
|
|
loncgm = -1000.; |
|
|
latcgm = -1000.; |
|
|
altcgm = -1000.; |
|
|
|
|
|
loncbm = -1000.; |
|
|
latcbm = -1000.; |
|
|
altcbm = -1000.; |
|
|
|
|
|
std::fill_n(cutoff, 20, 0.); |
|
11 |
|
|
12 |
// Quaternions |
void OrbitalInfoTrkVar::Clear(Option_t *t){ |
13 |
q0 = -1000.; |
trkseqno = 0; |
14 |
q1 = -1000.; |
pitch = -1000.; |
15 |
q2 = -1000.; |
} |
|
q3 = -1000.; |
|
16 |
|
|
|
// Euler angles (nadir reference frame) |
|
|
theta = -1000.; |
|
|
phi = -1000.; |
|
|
etha = -1000.; |
|
17 |
|
|
18 |
// // Euler angles (local field reference frame) |
OrbitalInfo::OrbitalInfo(){ |
19 |
// thetamag = -1000.; |
OrbitalInfoTrk = 0; //ELENA |
20 |
// phimag = -1000.; |
this->Clear(); |
|
// ethamag = -1000.; |
|
|
mode = 0; |
|
|
// std::fill_n(goodAttitude, 5, 0); |
|
21 |
} |
} |
22 |
|
|
23 |
|
void OrbitalInfo::Delete(Option_t *t){ //ELENA |
24 |
void OrbitalInfo::Clear(){ |
// |
25 |
|
if(OrbitalInfoTrk){ |
26 |
|
OrbitalInfoTrk->Delete(); //ELENA |
27 |
|
delete OrbitalInfoTrk; //ELENA |
28 |
|
} |
29 |
|
// |
30 |
|
}; //ELENA |
31 |
|
|
32 |
|
void OrbitalInfo::Set(){//ELENA |
33 |
|
if ( !OrbitalInfoTrk ) OrbitalInfoTrk = new TClonesArray("OrbitalInfoTrkVar",2); //ELENA |
34 |
|
}//ELENA |
35 |
|
|
36 |
|
|
37 |
|
void OrbitalInfo::Clear(Option_t *t){ |
38 |
|
// |
39 |
|
if ( OrbitalInfoTrk ) OrbitalInfoTrk->Delete(); |
40 |
|
// |
41 |
absTime = 0; |
absTime = 0; |
42 |
OBT = 0; |
OBT = 0; |
43 |
pkt_num = 0; |
pkt_num = 0; |
83 |
// phimag = -1000.; |
// phimag = -1000.; |
84 |
// ethamag = -1000.; |
// ethamag = -1000.; |
85 |
|
|
86 |
|
pamzenitangle = -1000.; |
87 |
|
pamBangle = -1000.; |
88 |
|
|
89 |
|
|
90 |
mode = 0; |
mode = 0; |
91 |
// std::fill_n(goodAttitude, 5, 0); |
// std::fill_n(goodAttitude, 5, 0); |
92 |
} |
} |
194 |
// memcpy(goodAttitude, l2->goodAttitude, sizeof(l2->goodAttitude)); |
// memcpy(goodAttitude, l2->goodAttitude, sizeof(l2->goodAttitude)); |
195 |
} |
} |
196 |
|
|
|
ClassImp(OrbitalInfo) |
|