/[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.16 - (hide annotations) (download)
Wed Oct 1 15:25:38 2008 UTC (16 years, 2 months ago) by mocchiut
Branch: MAIN
Changes since 1.15: +42 -5 lines
File MIME type: text/plain
Orientation infos added to OrbitalInfo, OrbitalInfo class changed, small changes in the Makefile

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

  ViewVC Help
Powered by ViewVC 1.1.23