/[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.18 - (hide annotations) (download)
Tue Nov 11 10:46:42 2008 UTC (16 years, 1 month ago) by mocchiut
Branch: MAIN
Changes since 1.17: +31 -21 lines
File MIME type: text/plain
New cutoff calculation, important changes to the class

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

  ViewVC Help
Powered by ViewVC 1.1.23