4 |
#include <TObject.h> |
#include <TObject.h> |
5 |
#include <algorithm> // EMILIANO |
#include <algorithm> // EMILIANO |
6 |
#include <OrbitalInfoStruct.h> |
#include <OrbitalInfoStruct.h> |
7 |
|
#include <TClonesArray.h> |
8 |
|
#include <TMatrixD.h> |
9 |
|
#include <TVector3.h> |
10 |
|
#include <string.h>//ELENA |
11 |
|
|
12 |
|
class OrbitalInfoTrkVar : public TObject { |
13 |
|
private: |
14 |
|
|
15 |
|
public: |
16 |
|
// |
17 |
|
Int_t trkseqno; // tof sequ. number: -1=ToF standalone, 0=first Tracker track, ... |
18 |
|
// |
19 |
|
Float_t pitch; ///< Pitch angle |
20 |
|
Float_t sunangle; |
21 |
|
Float_t sunmagangle; |
22 |
|
// |
23 |
|
TMatrixD Eij; ///< vector of incoming particle respect to cartesian geographic coordinates |
24 |
|
TMatrixD Sij; ///< vector of incoming particle respect to flight coordinates |
25 |
|
// |
26 |
|
Float_t cutoff; ///< Calculated cutoff for the incoming particle taking into account particle direction |
27 |
|
// |
28 |
|
OrbitalInfoTrkVar(); |
29 |
|
OrbitalInfoTrkVar(const OrbitalInfoTrkVar&); |
30 |
|
OrbitalInfoTrkVar* GetOrbitalInfoTrkVar(){return this;}; |
31 |
|
// |
32 |
|
void Clear(Option_t *t=""); |
33 |
|
void Delete(Option_t *t=""); //ELENA |
34 |
|
// |
35 |
|
ClassDef(OrbitalInfoTrkVar, 3); |
36 |
|
// |
37 |
|
}; |
38 |
|
|
39 |
|
|
40 |
|
|
41 |
/** |
/** |
42 |
* Class that stores position, time, inclination, magnetic field and |
* Class that stores position, time, inclination, magnetic field and |
43 |
* cutoff informations. |
* cutoff informations. |
44 |
*/ |
*/ |
45 |
class OrbitalInfo : public TObject { |
class OrbitalInfo : public TObject { |
46 |
|
private: |
47 |
|
|
48 |
public: |
public: |
49 |
OrbitalInfo(); |
TClonesArray *OrbitalInfoTrk; |
|
OrbitalInfo* GetOrbitalInfo(){return this;}; // Elena |
|
50 |
|
|
51 |
UInt_t absTime; ///< Absolute Time (seconds) |
UInt_t absTime; ///< Absolute Time (seconds) |
52 |
UInt_t OBT; ///< On Board Time (ms) |
UInt_t OBT; ///< On Board Time (ms) |
56 |
Float_t lat; ///< degrees from -90 to 90 |
Float_t lat; ///< degrees from -90 to 90 |
57 |
Float_t alt; ///< meters asl |
Float_t alt; ///< meters asl |
58 |
|
|
59 |
|
TVector3 V; /// velocity |
60 |
|
|
61 |
// B components. |
// B components. |
62 |
Float_t Bnorth; ///< gauss |
Float_t Bnorth; ///< gauss |
63 |
Float_t Beast; ///< gauss |
Float_t Beast; ///< gauss |
65 |
|
|
66 |
Float_t Babs; ///< abs value (guass) |
Float_t Babs; ///< abs value (guass) |
67 |
|
|
68 |
|
Float_t M; ///< M |
69 |
|
|
70 |
Float_t BB0; ///< B abs over the B minimum on this field line |
Float_t BB0; ///< B abs over the B minimum on this field line |
71 |
|
|
72 |
Float_t L; ///< McIlwain's L shell (in earth radii) |
Float_t L; ///< McIlwain's L shell (in earth radii) |
73 |
|
|
74 |
// Dipolar magnetic coordinates (not used). |
/* // Dipolar magnetic coordinates (not used). */ |
75 |
Float_t londip; ///< degrees from -180 to 180 |
Float_t londip; ///< degrees from -180 to 180 |
76 |
Float_t latdip; ///< degrees from -90 to 90 |
Float_t latdip; ///< degrees from -90 to 90 |
77 |
Float_t altdip; ///< meters |
|
78 |
|
// Float_t cutoff[17]; |
79 |
// Corrected magnetic coordinates (not used). |
Float_t cutoffsvl; |
80 |
Float_t loncgm; ///< degrees from -180 to 180 |
Float_t igrf_icode; |
|
Float_t latcgm; ///< degrees from -90 to 90 |
|
|
Float_t altcgm; ///< meters |
|
|
|
|
|
// Corrected B min magnetic coordinates (not used). |
|
|
Float_t loncbm; ///< degrees from -180 to 180 |
|
|
Float_t latcbm; ///< degrees from -90 to 90 |
|
|
Float_t altcbm; ///< meters |
|
|
|
|
|
Float_t cutoff[20]; |
|
81 |
|
|
82 |
// Quaternions |
// linear Quaternions |
83 |
Float_t q0; ///< Quaternion 0 |
Float_t q0; ///< Quaternion 0 |
84 |
Float_t q1; ///< Quaternion 1 |
Float_t q1; ///< Quaternion 1 |
85 |
Float_t q2; ///< Quaternion 2 |
Float_t q2; ///< Quaternion 2 |
90 |
Float_t phi; ///< Euler angle phi in the velocity reference frame (yaw) |
Float_t phi; ///< Euler angle phi in the velocity reference frame (yaw) |
91 |
Float_t etha; ///< Euler angle etha in the velocity reference frame (roll) |
Float_t etha; ///< Euler angle etha in the velocity reference frame (roll) |
92 |
|
|
93 |
|
// Pitch angles |
94 |
|
|
95 |
|
// |
96 |
|
TMatrixD Iij; ///< Angle between PAMELA Z direction and cartesian geographic coordinates |
97 |
|
|
98 |
/** |
/** |
99 |
* 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 |
100 |
*/ |
*/ |
109 |
// 7 - means that we have uneliminable hole inside R10 |
// 7 - means that we have uneliminable hole inside R10 |
110 |
// 8 - means that we have eliminable hole inside non R10 |
// 8 - means that we have eliminable hole inside non R10 |
111 |
// 9 - means that we have uneliminable hole inside non R10 |
// 9 - means that we have uneliminable hole inside non R10 |
112 |
|
// 10 - means other unknown problems |
113 |
|
// -10 - means we use recovered quaternions |
114 |
|
|
115 |
|
Int_t qkind; // How matrix Qij was got. |
116 |
|
// 0 means that it was calculated from flight quaternion |
117 |
|
// 1 means that it was calculated from Euler angles from Rotation Table |
118 |
|
|
119 |
|
Float_t TimeGap; //Time gap between two points where interpolation have done. |
120 |
|
|
121 |
|
Int_t errq; // flag, if errq == 1 then real flight quaternion (not interpolated) incorrect |
122 |
|
Int_t azim; // 0 - means everything is ok |
123 |
|
// 1 - means azimutal rotations were performed in this moment and in case of absense of flight quaternions orientation calculated here incorrect |
124 |
|
// >1 No flight quaternions, no azimuthal rotations, no adequate data from RotationTable, unaccuracy equals to Bank angle of rotetion in this moment |
125 |
|
|
126 |
|
Int_t ntrk(){return OrbitalInfoTrk->GetEntries();}; |
127 |
/** |
/** |
128 |
\return Returns the B minimum along the field line. |
\return Returns the B minimum along the field line. |
129 |
*/ |
*/ |
133 |
\return Returns the Stormer vertical cutoff using L shell: |
\return Returns the Stormer vertical cutoff using L shell: |
134 |
14.9/L^2 (GV/c). |
14.9/L^2 (GV/c). |
135 |
*/ |
*/ |
136 |
Float_t GetCutoffSVL() { return cutoff[0]; }; |
Float_t GetCutoffSVL() { return cutoffsvl; }; |
137 |
|
|
138 |
void SetFromLevel2Struct(cOrbitalInfo *l2); |
void SetFromLevel2Struct(cOrbitalInfo *l2); |
139 |
void GetLevel2Struct(cOrbitalInfo *l2) const; |
void GetLevel2Struct(cOrbitalInfo *l2) const; |
140 |
|
OrbitalInfoTrkVar *GetOrbitalInfoTrkVar(Int_t notrack); |
141 |
|
OrbitalInfoTrkVar * GetOrbitalInfoStoredTrack(Int_t seqno);///< returns pointer to the track set related to the seqno number |
142 |
|
|
143 |
|
// |
144 |
|
OrbitalInfo(); |
145 |
|
~OrbitalInfo(){Delete();}; //ELENA |
146 |
|
// |
147 |
|
OrbitalInfo* GetOrbitalInfo(){return this;}; // Elena |
148 |
|
void Delete(Option_t *t=""); //ELENA |
149 |
|
void Set();//ELENA |
150 |
|
// |
151 |
|
// |
152 |
|
TClonesArray *GetTrackArray(){return OrbitalInfoTrk;} ///< returns a pointer to the track related variables array |
153 |
|
TClonesArray** GetPointerToTrackArray(){return &OrbitalInfoTrk;}///< returns pointer to pointer to the track array |
154 |
|
void SetTrackArray(TClonesArray *track);///<set pointer to the track array |
155 |
|
|
156 |
void Clear(Option_t *t=""); // emiliano |
void Clear(Option_t *t=""); // emiliano |
157 |
// |
// |
158 |
ClassDef(OrbitalInfo, 3) |
ClassDef(OrbitalInfo, 10); |
159 |
}; |
}; |
160 |
#endif |
#endif |