/[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.25 - (hide annotations) (download)
Tue Sep 16 08:16:02 2014 UTC (10 years, 2 months ago) by pam-ts
Branch: MAIN
Changes since 1.24: +2 -0 lines
File MIME type: text/plain
*** empty log message ***

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

  ViewVC Help
Powered by ViewVC 1.1.23