| 4 |
#include <TObject.h> |
#include <TObject.h> |
| 5 |
#include <OrbitalInfoStruct.h> |
#include <OrbitalInfoStruct.h> |
| 6 |
|
|
| 7 |
|
/** |
| 8 |
|
* Class that stores position, time, inclination, magnetic field and |
| 9 |
|
* cutoff informations. |
| 10 |
|
*/ |
| 11 |
class OrbitalInfo : public TObject { |
class OrbitalInfo : public TObject { |
| 12 |
public: |
public: |
| 13 |
OrbitalInfo(); |
OrbitalInfo(); |
| 14 |
OrbitalInfo* GetOrbitalInfo(){return this;}; // Elena |
OrbitalInfo* GetOrbitalInfo(){return this;}; // Elena |
| 15 |
|
|
| 16 |
UInt_t absTime; //< Absolute Time |
UInt_t absTime; ///< Absolute Time (seconds) |
| 17 |
// EM: added On Board Time and CPU Packet Number |
UInt_t OBT; ///< On Board Time (ms) |
| 18 |
UInt_t OBT; //< On Board Time |
UInt_t pkt_num; ///< CPU packet number |
| 19 |
UInt_t pkt_num; //< CPU packet number |
|
| 20 |
|
Float_t lon; ///< degrees from -180 to 180 |
| 21 |
// Position |
Float_t lat; ///< degrees from -90 to 90 |
| 22 |
Float_t lon; // degrees from -180 to 180 |
Float_t alt; ///< meters asl |
| 23 |
Float_t lat; // degrees from -90 to 90 |
|
| 24 |
Float_t alt; // meters |
// B components. |
| 25 |
|
Float_t Bnorth; ///< gauss |
| 26 |
// Magnetic field |
Float_t Beast; ///< gauss |
| 27 |
|
Float_t Bdown; ///< gauss |
| 28 |
// components (gauss) |
|
| 29 |
Float_t Bnorth; |
Float_t Babs; ///< abs value (guass) |
| 30 |
Float_t Beast; |
|
| 31 |
Float_t Bdown; |
Float_t BB0; ///< B abs over the B minimum on this field line |
| 32 |
|
|
| 33 |
// abs value (guass) |
Float_t L; ///< McIlwain's L shell (in earth radii) |
| 34 |
Float_t Babs; |
|
| 35 |
|
// Dipolar magnetic coordinates (not used). |
| 36 |
// Minimum along the field line (that is at the magnetic equator) |
Float_t londip; ///< degrees from -180 to 180 |
| 37 |
Float_t BB0; |
Float_t latdip; ///< degrees from -90 to 90 |
| 38 |
|
Float_t altdip; ///< meters |
| 39 |
// L shell (in earth radii) |
|
| 40 |
Float_t L; |
// Corrected magnetic coordinates (not used). |
| 41 |
|
Float_t loncgm; ///< degrees from -180 to 180 |
| 42 |
// Dipolar magnetic coordinates |
Float_t latcgm; ///< degrees from -90 to 90 |
| 43 |
Float_t londip; // degrees from -180 to 180 |
Float_t altcgm; ///< meters |
| 44 |
Float_t latdip; // degrees from -90 to 90 |
|
| 45 |
Float_t altdip; // meters |
// Corrected B min magnetic coordinates (not used). |
| 46 |
|
Float_t loncbm; ///< degrees from -180 to 180 |
| 47 |
// Corrected magnetic coordinates |
Float_t latcbm; ///< degrees from -90 to 90 |
| 48 |
Float_t loncgm; // degrees from -180 to 180 |
Float_t altcbm; ///< meters |
|
Float_t latcgm; // degrees from -90 to 90 |
|
|
Float_t altcgm; // meters |
|
|
|
|
|
// Corrected B min magnetic coordinates |
|
|
Float_t loncbm; // degrees from -180 to 180 |
|
|
Float_t latcbm; // degrees from -90 to 90 |
|
|
Float_t altcbm; // meters |
|
| 49 |
|
|
| 50 |
Float_t cutoff[20]; |
Float_t cutoff[20]; |
| 51 |
|
|
| 52 |
// Quaternions |
// Quaternions |
| 53 |
Float_t q0, q1, q2, q3; |
Float_t q0, q1, q2, q3; |
| 54 |
|
|
| 55 |
// Euler angles (nadir reference frame) |
// Euler angles (nadir reference frame) (not used) |
| 56 |
Float_t theta, phi, etha; |
Float_t theta, phi, etha; |
| 57 |
|
|
| 58 |
// Euler angles (local field reference frame) |
// Euler angles (local field reference frame) (not used) |
| 59 |
Float_t thetamag, phimag, ethamag; |
Float_t thetamag, phimag, ethamag; |
| 60 |
|
|
| 61 |
// Useful? |
// Useful? |
| 62 |
Int_t goodAttitude[5]; |
Int_t goodAttitude[5]; |
| 63 |
|
|
| 64 |
Float_t GetB0() {return Babs/BB0;}; |
/** |
| 65 |
|
\return Returns the B minimum along the field line. |
| 66 |
|
*/ |
| 67 |
|
Float_t GetB0() { return Babs/BB0; }; |
| 68 |
|
|
| 69 |
|
/** |
| 70 |
|
\return Returns the Stormer vertical cutoff using L shell: |
| 71 |
|
14.9/L^2 (GV/c). |
| 72 |
|
*/ |
| 73 |
|
Float_t GetCutoffSVL() { return cutoff[0]; }; |
| 74 |
|
|
| 75 |
void SetFromLevel2Struct(cOrbitalInfo *l2); |
void SetFromLevel2Struct(cOrbitalInfo *l2); |
| 76 |
void GetLevel2Struct(cOrbitalInfo *l2) const; |
void GetLevel2Struct(cOrbitalInfo *l2) const; |
| 77 |
|
|
| 78 |
void Clear(); // emiliano |
void Clear(); // emiliano |
| 79 |
// |
// |
| 80 |
ClassDef(OrbitalInfo, 1) |
ClassDef(OrbitalInfo, 2) |
| 81 |
}; |
}; |
| 82 |
#endif |
#endif |