/[PAMELA software]/DarthVader/OrbitalInfo/inc/OrbitalInfo.h
ViewVC logotype

Diff of /DarthVader/OrbitalInfo/inc/OrbitalInfo.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by mocchiut, Fri May 19 13:15:58 2006 UTC revision 1.17 by mocchiut, Fri Oct 31 15:48:58 2008 UTC
# Line 1  Line 1 
1  #ifndef OrbitalInfo_h  #ifndef OrbitalInfo_h
   
2  #define OrbitalInfo_h  #define OrbitalInfo_h
3    
4  #include <TObject.h>  #include <TObject.h>
5  //#include <GLTables.h>  #include <algorithm> // EMILIANO
6  //#include <RunInfo.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
31     * cutoff informations.
32     */
33  class OrbitalInfo : public TObject {  class OrbitalInfo : public TObject {
34     private:
35    
36   public:   public:
37      TClonesArray *OrbitalInfoTrk;
38    
39      UInt_t absTime; ///< Absolute Time (seconds)
40      UInt_t OBT; ///< On Board Time (ms)
41      UInt_t pkt_num; ///< CPU packet number
42    
43      Float_t lon; ///< degrees from -180 to 180
44      Float_t lat; ///< degrees from -90 to 90
45      Float_t alt; ///< meters asl
46    
47      // B components.
48      Float_t Bnorth; ///< gauss
49      Float_t Beast; ///< gauss
50      Float_t Bdown; ///< gauss
51    
52      Float_t Babs; ///< abs value (guass)
53    
54      Float_t BB0; ///< B abs over the B minimum on this field line
55    
56      Float_t L; ///< McIlwain's L shell (in earth radii)
57    
58      // Dipolar magnetic coordinates (not used).
59      Float_t londip; ///< degrees from -180 to 180
60      Float_t latdip; ///< degrees from -90 to 90
61      Float_t altdip; ///< meters
62    
63      // Corrected magnetic coordinates (not used).
64      Float_t loncgm; ///< degrees from -180 to 180
65      Float_t latcgm; ///< degrees from -90 to 90
66      Float_t altcgm; ///< meters
67    
68      // Corrected B min magnetic coordinates (not used).
69      Float_t loncbm; ///< degrees from -180 to 180
70      Float_t latcbm; ///< degrees from -90 to 90
71      Float_t altcbm; ///< meters
72    
73      Float_t cutoff[17];
74    
75      // Quaternions
76      Float_t q0; ///< Quaternion 0
77      Float_t q1; ///< Quaternion 1
78      Float_t q2; ///< Quaternion 2
79      Float_t q3; ///< Quaternion 3
80    
81      // Euler angles (Resurs velocity reference frame)
82      Float_t theta; ///< Euler angle theta in the velocity reference frame (pitch)
83      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)
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  
92       */
93      Int_t mode;   // 0  - means that time different pair of quaternions exuals to 0.25 seconds in R10 mode
94                    //      (it mean that all quaternions in array is correct)
95                    // 1  - means that we have R10 mode and use just first value of quaternions array
96                    // 2  - means that we have non R10 mode and use every quaternions from array.
97                    // 3  - means normal transition from R10 to non R10 or from non R10 to R10.
98                    // 4  - means that we have eliminable hole between R10 and non R10 or between non R10 and R10
99                    // 5  - means that we have uneliminable hole between R10 and non R10 or between non R10 and R10
100                    // 6  - means that we have eliminable hole inside R10 (in such keys eliminable depends from other factors also)
101                    // 7  - means that we have uneliminable hole inside R10
102                    // 8  - means that we have eliminable hole inside non R10
103                    // 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.
109      */
110      Float_t GetB0() { return Babs/BB0; };
111    
112      /**
113         \return Returns the Stormer vertical cutoff using L shell:
114         14.9/L^2 (GV/c).
115      */
116      Float_t GetCutoffSVL() { return cutoff[0]; };
117    
118      void SetFromLevel2Struct(cOrbitalInfo *l2);
119      void GetLevel2Struct(cOrbitalInfo *l2) const;
120      OrbitalInfoTrkVar *GetOrbitalInfoTrkVar(Int_t notrack);
121      //
122    OrbitalInfo();    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    ULong64_t absTime;    void Clear(Option_t *t=""); // emiliano
132    ClassDef(OrbitalInfo, 1)    //
133      ClassDef(OrbitalInfo, 6);
134  };  };
135  #endif  #endif

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.23