/[PAMELA software]/DarthVader/OrbitalInfo/inc/OrbitalInfo.h
ViewVC logotype

Annotation of /DarthVader/OrbitalInfo/inc/OrbitalInfo.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (hide annotations) (download)
Fri Nov 23 16:42:41 2007 UTC (17 years ago) by mocchiut
Branch: MAIN
CVS Tags: v5r00
Changes since 1.14: +1 -1 lines
File MIME type: text/plain
Wrong TObject methods overloading fixed everywhere but in tracker code

1 mocchiut 1.1 #ifndef OrbitalInfo_h
2 mocchiut 1.2 #define OrbitalInfo_h
3 mocchiut 1.1
4     #include <TObject.h>
5 mocchiut 1.14 #include <algorithm> // EMILIANO
6 pam-fi 1.5 #include <OrbitalInfoStruct.h>
7 mocchiut 1.1
8 pam-rm2 1.9 /**
9     * Class that stores position, time, inclination, magnetic field and
10     * cutoff informations.
11     */
12 mocchiut 1.1 class OrbitalInfo : public TObject {
13     public:
14     OrbitalInfo();
15 mocchiut 1.3 OrbitalInfo* GetOrbitalInfo(){return this;}; // Elena
16 mocchiut 1.1
17 mocchiut 1.11 UInt_t absTime; ///< Absolute Time (seconds)
18     UInt_t OBT; ///< On Board Time (ms)
19     UInt_t pkt_num; ///< CPU packet number
20    
21     Float_t lon; ///< degrees from -180 to 180
22     Float_t lat; ///< degrees from -90 to 90
23     Float_t alt; ///< meters asl
24 pam-rm2 1.9
25     // B components.
26 mocchiut 1.11 Float_t Bnorth; ///< gauss
27     Float_t Beast; ///< gauss
28     Float_t Bdown; ///< gauss
29 pam-rm2 1.9
30 mocchiut 1.11 Float_t Babs; ///< abs value (guass)
31 pam-rm2 1.9
32 mocchiut 1.11 Float_t BB0; ///< B abs over the B minimum on this field line
33 pam-rm2 1.9
34 mocchiut 1.11 Float_t L; ///< McIlwain's L shell (in earth radii)
35 pam-rm2 1.9
36 mocchiut 1.12 // Dipolar magnetic coordinates (not used).
37 mocchiut 1.11 Float_t londip; ///< degrees from -180 to 180
38     Float_t latdip; ///< degrees from -90 to 90
39     Float_t altdip; ///< meters
40 pam-rm2 1.9
41 mocchiut 1.12 // Corrected magnetic coordinates (not used).
42 mocchiut 1.11 Float_t loncgm; ///< degrees from -180 to 180
43     Float_t latcgm; ///< degrees from -90 to 90
44     Float_t altcgm; ///< meters
45 pam-rm2 1.9
46 mocchiut 1.12 // Corrected B min magnetic coordinates (not used).
47 mocchiut 1.11 Float_t loncbm; ///< degrees from -180 to 180
48     Float_t latcbm; ///< degrees from -90 to 90
49     Float_t altcbm; ///< meters
50 pam-rm2 1.7
51     Float_t cutoff[20];
52    
53 mocchiut 1.12 // Quaternions
54 mocchiut 1.13 Float_t q0; ///< Quaternion 0
55     Float_t q1; ///< Quaternion 1
56     Float_t q2; ///< Quaternion 2
57     Float_t q3; ///< Quaternion 3
58    
59     // Euler angles (Resurs velocity reference frame)
60     Float_t theta; ///< Euler angle theta in the velocity reference frame (pitch)
61     Float_t phi; ///< Euler angle phi in the velocity reference frame (yaw)
62     Float_t etha; ///< Euler angle etha in the velocity reference frame (roll)
63 pam-rm2 1.7
64 mocchiut 1.13 /**
65     * The variable mode means a character time distant between two quaternions, inside which stay every events
66     */
67     Int_t mode; // 0 - means that time different pair of quaternions exuals to 0.25 seconds in R10 mode
68     // (it mean that all quaternions in array is correct)
69     // 1 - means that we have R10 mode and use just first value of quaternions array
70     // 2 - means that we have non R10 mode and use every quaternions from array.
71     // 3 - means normal transition from R10 to non R10 or from non R10 to R10.
72     // 4 - means that we have eliminable hole between R10 and non R10 or between non R10 and R10
73     // 5 - means that we have uneliminable hole between R10 and non R10 or between non R10 and R10
74     // 6 - means that we have eliminable hole inside R10 (in such keys eliminable depends from other factors also)
75     // 7 - means that we have uneliminable hole inside R10
76     // 8 - means that we have eliminable hole inside non R10
77     // 9 - means that we have uneliminable hole inside non R10
78    
79 pam-rm2 1.9 /**
80     \return Returns the B minimum along the field line.
81     */
82 mocchiut 1.8 Float_t GetB0() { return Babs/BB0; };
83    
84 pam-rm2 1.9 /**
85     \return Returns the Stormer vertical cutoff using L shell:
86     14.9/L^2 (GV/c).
87     */
88 mocchiut 1.8 Float_t GetCutoffSVL() { return cutoff[0]; };
89 pam-rm2 1.7
90 pam-fi 1.5 void SetFromLevel2Struct(cOrbitalInfo *l2);
91     void GetLevel2Struct(cOrbitalInfo *l2) const;
92    
93 mocchiut 1.15 void Clear(Option_t *t=""); // emiliano
94 mocchiut 1.4 //
95 mocchiut 1.13 ClassDef(OrbitalInfo, 3)
96 mocchiut 1.1 };
97     #endif

  ViewVC Help
Powered by ViewVC 1.1.23