/[PAMELA software]/DarthVader/TrackerLevel2/inc/TrkLevel2.h
ViewVC logotype

Diff of /DarthVader/TrackerLevel2/inc/TrkLevel2.h

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

revision 1.2 by pam-fi, Thu Jun 1 09:03:09 2006 UTC revision 1.3 by pam-fi, Wed Jun 14 10:01:44 2006 UTC
# Line 8  Line 8 
8  #include <TObject.h>  #include <TObject.h>
9  #include <TObjArray.h>  #include <TObjArray.h>
10  #include <TClonesArray.h>  #include <TClonesArray.h>
11    
12  #include <TrkStruct.h>  #include <TrkStruct.h>
13    
14  // z-coordinate of track state-vector reference-plane  // z-coordinate of track state-vector reference-plane
# Line 60  class TrkTrack : public TObject { Line 61  class TrkTrack : public TObject {
61    
62  private:  private:
63    
64        int   seqno;           ///<stored track sequential number
65        int   image;           ///<sequential number of track-image
66    
67  public:  public:
68    
69    
70      float al[5];           ///<TRACK STATE VECTOR      float al[5];           ///<TRACK STATE VECTOR
71      float coval[5][5];     ///<covariance matrix      float coval[5][5];     ///<covariance matrix
72      int   xgood[6];        ///<mask of included x planes      int   xgood[6];        ///<mask of included x planes
# Line 79  public: Line 84  public:
84      float ayv[6];          ///<calculated angles (deg) on y view      float ayv[6];          ///<calculated angles (deg) on y view
85      float dedx_x[6];       ///<signal in MIP (scaled to 300 micrometer)      float dedx_x[6];       ///<signal in MIP (scaled to 300 micrometer)
86      float dedx_y[6];       ///<signal in MIP (scaled to 300 micrometer)      float dedx_y[6];       ///<signal in MIP (scaled to 300 micrometer)
87      int   image;           ///<flag to tag track-images  
88    
89      TrkTrack();      TrkTrack();
90      TrkTrack(const TrkTrack&);      TrkTrack(const TrkTrack&);
91    
92      void Dump();      void Dump();
93    
94        Int_t  GetSeqNo(){return seqno;}        ///< Returns the track sequential number
95        Int_t  GetImageSeqNo(){return image;}   ///< Returns the track image sequential number
96      Bool_t HasImage(){return !(image==-1);} ///< Returns true if the track has an image      Bool_t HasImage(){return !(image==-1);} ///< Returns true if the track has an image
97      int DoTrack(Trajectory* t);                         ///< Evaluates the trajectory in the apparatus.      int DoTrack(Trajectory* t);                         ///< Evaluates the trajectory in the apparatus.
98      int DoTrack2(Trajectory* t);                        ///< Evaluates the trajectory in the apparatus.      int DoTrack2(Trajectory* t);                        ///< Evaluates the trajectory in the apparatus.
99      float BdL(){return 0;};                                     ///< Evaluates the integral of B*dL along the track.      float BdL(){return 0;};                                     ///< Evaluates the integral of B*dL along the track.
100      Int_t GetNX(){Int_t n=0; for(Int_t i=0; i<6; i++)n+=xgood[i]; return n;};      Int_t GetNX(){Int_t n=0; for(Int_t i=0; i<6; i++)n+=xgood[i]; return n;};
101      Int_t GetNY(){Int_t n=0; for(Int_t i=0; i<6; i++)n+=ygood[i]; return n;};      Int_t GetNY(){Int_t n=0; for(Int_t i=0; i<6; i++)n+=ygood[i]; return n;};
102        Int_t GetNtot(){return GetNX()+GetNY();};
103      Float_t GetRigidity();      Float_t GetRigidity();
104      Float_t GetDeflection();      Float_t GetDeflection();
105      Float_t GetDEDX();      Float_t GetDEDX();
106    
107      TrkTrack* GetTrkTrack(){return this;};      TrkTrack* GetTrkTrack(){return this;};
108    
109        friend class TrkLevel2;
110    
111      ClassDef(TrkTrack,1);      ClassDef(TrkTrack,1);
112    
113  };  };
# Line 121  public: Line 131  public:
131    
132      void Dump();      void Dump();
133    
134        friend class TrkLevel2;
135    
136      ClassDef(TrkSinglet,1);      ClassDef(TrkSinglet,1);
137    
138  };  };
# Line 154  class TrkLevel2 : public TObject { Line 166  class TrkLevel2 : public TObject {
166      TrkLevel2();      TrkLevel2();
167  //    TrkLevel2(cTrkLevel2 *);  //    TrkLevel2(cTrkLevel2 *);
168    
169      int ntrk(){return Track->GetEntries();}     ///< number of stored track      int ntrk() {return Track->GetEntries();}     ///< number of stored track
170      int nclsx(){return SingletX->GetEntries();} ///< number of x singlets      int nclsx(){return SingletX->GetEntries();} ///< number of x singlets
171      int nclsy(){return SingletY->GetEntries();} ///< number of y singlets      int nclsy(){return SingletY->GetEntries();} ///< number of y singlets
172    
173      void Dump();      void Dump();
174      void FillCommonVar(cTrkLevel2 *);      void FillCommonVar(cTrkLevel2 *);
175      void Clear();      void Clear();
176          void LoadField(TString);      void LoadField(TString);
177    
178      TrkTrack *GetStoredTrack(int i);      TrkTrack     *GetStoredTrack(int i);
179      TClonesArray *GetTracks();        Int_t         GetSeqNo(Int_t i)  {return (((TrkTrack *)Track->At(i))->seqno);}; ///< Returns track sequential number
180        TClonesArray *GetTracks_Chi2Sorted();
181        TClonesArray *GetTracks_NFitSorted();
182        TClonesArray *GetTracks();
183    
184      int GetNTracks(){return this->GetTracks()->GetEntries();}      int       GetNTracks(){return this->GetTracks()->GetEntries();}
185      TrkTrack* GetTrack(int i);      TrkTrack* GetTrack(int i);
186      TrkTrack* GetTrackImage(int i);      TrkTrack* GetTrackImage(int i);
187    
188      TrkLevel2* GetTrkLevel2(){return this;}      TrkLevel2*    GetTrkLevel2(){return this;}
189        TClonesArray* GetTrackArray(){return Track;};///< returns pointer to the track array
190        
191      ClassDef(TrkLevel2,1);      ClassDef(TrkLevel2,1);
192    
193  };  };
194    
195    
196    
   
197  #endif  #endif

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.23