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 |
|
|
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 |
|
|
29 |
/** |
/** |
30 |
* Class that stores position, time, inclination, magnetic field and |
* Class that stores position, time, inclination, magnetic field and |
31 |
* cutoff informations. |
* cutoff informations. |
32 |
*/ |
*/ |
33 |
class OrbitalInfo : public TObject { |
class OrbitalInfo : public TObject { |
34 |
|
private: |
35 |
|
|
36 |
public: |
public: |
37 |
OrbitalInfo(); |
TClonesArray *OrbitalInfoTrk; |
|
OrbitalInfo* GetOrbitalInfo(){return this;}; // Elena |
|
38 |
|
|
39 |
UInt_t absTime; ///< Absolute Time (seconds) |
UInt_t absTime; ///< Absolute Time (seconds) |
40 |
UInt_t OBT; ///< On Board Time (ms) |
UInt_t OBT; ///< On Board Time (ms) |
70 |
Float_t latcbm; ///< degrees from -90 to 90 |
Float_t latcbm; ///< degrees from -90 to 90 |
71 |
Float_t altcbm; ///< meters |
Float_t altcbm; ///< meters |
72 |
|
|
73 |
Float_t cutoff[20]; |
Float_t cutoff[17]; |
74 |
|
|
75 |
// Quaternions |
// Quaternions |
76 |
Float_t q0; ///< Quaternion 0 |
Float_t q0; ///< Quaternion 0 |
83 |
Float_t phi; ///< Euler angle phi in the velocity reference frame (yaw) |
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) |
Float_t etha; ///< Euler angle etha in the velocity reference frame (roll) |
85 |
|
|
86 |
|
// Pitch angles |
87 |
|
Float_t pamzenitangle; |
88 |
|
Float_t pamBangle; |
89 |
|
|
90 |
/** |
/** |
91 |
* 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 |
92 |
*/ |
*/ |
101 |
// 7 - means that we have uneliminable hole inside R10 |
// 7 - means that we have uneliminable hole inside R10 |
102 |
// 8 - means that we have eliminable hole inside non R10 |
// 8 - means that we have eliminable hole inside non R10 |
103 |
// 9 - means that we have uneliminable hole inside non R10 |
// 9 - means that we have uneliminable hole inside non R10 |
104 |
|
// 10 - means other unknown problems |
105 |
|
|
106 |
|
Int_t ntrk(){return OrbitalInfoTrk->GetEntries();}; |
107 |
/** |
/** |
108 |
\return Returns the B minimum along the field line. |
\return Returns the B minimum along the field line. |
109 |
*/ |
*/ |
117 |
|
|
118 |
void SetFromLevel2Struct(cOrbitalInfo *l2); |
void SetFromLevel2Struct(cOrbitalInfo *l2); |
119 |
void GetLevel2Struct(cOrbitalInfo *l2) const; |
void GetLevel2Struct(cOrbitalInfo *l2) const; |
120 |
|
OrbitalInfoTrkVar *GetOrbitalInfoTrkVar(Int_t notrack); |
121 |
|
// |
122 |
|
OrbitalInfo(); |
123 |
|
~OrbitalInfo(){Delete();}; //ELENA |
124 |
|
// |
125 |
|
OrbitalInfo* GetOrbitalInfo(){return this;}; // Elena |
126 |
|
void Delete(Option_t *t=""); //ELENA |
127 |
|
void Set();//ELENA |
128 |
|
// |
129 |
|
// |
130 |
|
|
131 |
void Clear(); // emiliano |
void Clear(Option_t *t=""); // emiliano |
132 |
// |
// |
133 |
ClassDef(OrbitalInfo, 3) |
ClassDef(OrbitalInfo, 6); |
134 |
}; |
}; |
135 |
#endif |
#endif |