5 |
#include <algorithm> // EMILIANO |
#include <algorithm> // EMILIANO |
6 |
#include <OrbitalInfoStruct.h> |
#include <OrbitalInfoStruct.h> |
7 |
#include <TClonesArray.h> |
#include <TClonesArray.h> |
8 |
|
#include <TMatrixD.h> |
9 |
|
|
10 |
class OrbitalInfoTrkVar : public TObject { |
class OrbitalInfoTrkVar : public TObject { |
11 |
private: |
private: |
14 |
// |
// |
15 |
Int_t trkseqno; // tof sequ. number: -1=ToF standalone, 0=first Tracker track, ... |
Int_t trkseqno; // tof sequ. number: -1=ToF standalone, 0=first Tracker track, ... |
16 |
// |
// |
17 |
Float_t pitch; |
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 |
// |
// |
24 |
OrbitalInfoTrkVar(); |
OrbitalInfoTrkVar(); |
25 |
|
OrbitalInfoTrkVar(const OrbitalInfoTrkVar&); |
26 |
OrbitalInfoTrkVar* GetOrbitalInfoTrkVar(){return this;}; |
OrbitalInfoTrkVar* GetOrbitalInfoTrkVar(){return this;}; |
27 |
// |
// |
28 |
void Clear(Option_t *t=""); |
void Clear(Option_t *t=""); |
29 |
|
void Delete(Option_t *t=""); //ELENA |
30 |
// |
// |
31 |
ClassDef(OrbitalInfoTrkVar, 1); |
ClassDef(OrbitalInfoTrkVar, 3); |
32 |
// |
// |
33 |
}; |
}; |
34 |
|
|
63 |
|
|
64 |
Float_t L; ///< McIlwain's L shell (in earth radii) |
Float_t L; ///< McIlwain's L shell (in earth radii) |
65 |
|
|
66 |
// Dipolar magnetic coordinates (not used). |
/* // Dipolar magnetic coordinates (not used). */ |
67 |
Float_t londip; ///< degrees from -180 to 180 |
/* Float_t londip; ///< degrees from -180 to 180 */ |
68 |
Float_t latdip; ///< degrees from -90 to 90 |
/* Float_t latdip; ///< degrees from -90 to 90 */ |
69 |
Float_t altdip; ///< meters |
/* Float_t altdip; ///< meters */ |
70 |
|
|
71 |
// Corrected magnetic coordinates (not used). |
/* // Corrected magnetic coordinates (not used). */ |
72 |
Float_t loncgm; ///< degrees from -180 to 180 |
/* Float_t loncgm; ///< degrees from -180 to 180 */ |
73 |
Float_t latcgm; ///< degrees from -90 to 90 |
/* Float_t latcgm; ///< degrees from -90 to 90 */ |
74 |
Float_t altcgm; ///< meters |
/* Float_t altcgm; ///< meters */ |
75 |
|
|
76 |
// Corrected B min magnetic coordinates (not used). |
/* // Corrected B min magnetic coordinates (not used). */ |
77 |
Float_t loncbm; ///< degrees from -180 to 180 |
/* Float_t loncbm; ///< degrees from -180 to 180 */ |
78 |
Float_t latcbm; ///< degrees from -90 to 90 |
/* Float_t latcbm; ///< degrees from -90 to 90 */ |
79 |
Float_t altcbm; ///< meters |
/* Float_t altcbm; ///< meters */ |
80 |
|
|
81 |
|
// Float_t cutoff[17]; |
82 |
|
Float_t cutoffsvl; |
83 |
|
Float_t igrf_icode; |
84 |
|
|
85 |
Float_t cutoff[17]; |
// linear Quaternions |
|
|
|
|
// Quaternions |
|
86 |
Float_t q0; ///< Quaternion 0 |
Float_t q0; ///< Quaternion 0 |
87 |
Float_t q1; ///< Quaternion 1 |
Float_t q1; ///< Quaternion 1 |
88 |
Float_t q2; ///< Quaternion 2 |
Float_t q2; ///< Quaternion 2 |
89 |
Float_t q3; ///< Quaternion 3 |
Float_t q3; ///< Quaternion 3 |
90 |
|
|
91 |
|
//tested sine quaternions |
92 |
|
|
93 |
|
//Float_t q0t; |
94 |
|
//Float_t q1t; |
95 |
|
//Float_t q2t; |
96 |
|
//Float_t q3t; |
97 |
|
|
98 |
// Euler angles (Resurs velocity reference frame) |
// Euler angles (Resurs velocity reference frame) |
99 |
Float_t theta; ///< Euler angle theta in the velocity reference frame (pitch) |
Float_t theta; ///< Euler angle theta in the velocity reference frame (pitch) |
101 |
Float_t etha; ///< Euler angle etha in the velocity reference frame (roll) |
Float_t etha; ///< Euler angle etha in the velocity reference frame (roll) |
102 |
|
|
103 |
// Pitch angles |
// Pitch angles |
104 |
Float_t pamzenitangle; |
// Float_t pamzenitangle; |
105 |
Float_t pamBangle; |
// Float_t pamBangle; |
106 |
|
// |
107 |
|
TMatrixD Iij; ///< Angle between PAMELA Z direction and cartesian geographic coordinates |
108 |
|
|
109 |
/** |
/** |
110 |
* The variable mode means a character time distant between two quaternions, inside which stay every events |
* The variable mode means a character time distant between two quaternions, inside which stay every events |
121 |
// 8 - means that we have eliminable hole inside non R10 |
// 8 - means that we have eliminable hole inside non R10 |
122 |
// 9 - means that we have uneliminable hole inside non R10 |
// 9 - means that we have uneliminable hole inside non R10 |
123 |
// 10 - means other unknown problems |
// 10 - means other unknown problems |
124 |
|
// -10 - means we use recovered quaternions |
125 |
|
|
126 |
|
//Int_t R10f; //if 1 we recognize R10 mode using flight data if 0 - no R10 mode if -1 we know nothing about R10 mode |
127 |
|
//Bool_t R10r; //if true we recognize R10 mode using recovered data |
128 |
|
|
129 |
|
Float_t TimeGap; //Time gap between two points where interpolation have done. |
130 |
|
|
131 |
Int_t ntrk(){return OrbitalInfoTrk->GetEntries();}; |
Int_t ntrk(){return OrbitalInfoTrk->GetEntries();}; |
132 |
/** |
/** |
138 |
\return Returns the Stormer vertical cutoff using L shell: |
\return Returns the Stormer vertical cutoff using L shell: |
139 |
14.9/L^2 (GV/c). |
14.9/L^2 (GV/c). |
140 |
*/ |
*/ |
141 |
Float_t GetCutoffSVL() { return cutoff[0]; }; |
Float_t GetCutoffSVL() { return cutoffsvl; }; |
142 |
|
|
143 |
void SetFromLevel2Struct(cOrbitalInfo *l2); |
void SetFromLevel2Struct(cOrbitalInfo *l2); |
144 |
void GetLevel2Struct(cOrbitalInfo *l2) const; |
void GetLevel2Struct(cOrbitalInfo *l2) const; |
155 |
|
|
156 |
void Clear(Option_t *t=""); // emiliano |
void Clear(Option_t *t=""); // emiliano |
157 |
// |
// |
158 |
ClassDef(OrbitalInfo, 6); |
ClassDef(OrbitalInfo, 9); |
159 |
}; |
}; |
160 |
#endif |
#endif |