/[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.9 by pam-fi, Thu Sep 28 14:04:39 2006 UTC revision 1.12 by pam-fi, Thu Oct 26 16:22:36 2006 UTC
# Line 83  public: Line 83  public:
83    
84  //      TRef clx[6];  //      TRef clx[6];
85  //      TRef cly[6];  //      TRef cly[6];
86          TRefArray *clx;      TRefArray *clx;
87          TRefArray *cly;      TRefArray *cly;
88    
89      float al[5];           ///<TRACK STATE VECTOR      float al[5];           ///<TRACK STATE VECTOR
90      float coval[5][5];     ///<covariance matrix      float coval[5][5];     ///<covariance matrix
# Line 96  public: Line 96  public:
96      float resx[6];         ///<spatial resolution on X view      float resx[6];         ///<spatial resolution on X view
97      float resy[6];         ///<spatial resolution on y view      float resy[6];         ///<spatial resolution on y view
98      float chi2;            ///<chi2      float chi2;            ///<chi2
99          int   nstep;           ///<n. step      int   nstep;           ///<n. step
100          float xv[6];           ///<calculated x coordinates      float xv[6];           ///<calculated x coordinates
101      float yv[6];           ///<calculated y coordinates      float yv[6];           ///<calculated y coordinates
102      float zv[6];           ///<calculated z coordinates      float zv[6];           ///<calculated z coordinates
103      float axv[6];          ///<calculated angles (deg) on x view      float axv[6];          ///<calculated angles (deg) on x view
# Line 109  public: Line 109  public:
109      TrkTrack();      TrkTrack();
110      TrkTrack(const TrkTrack&);      TrkTrack(const TrkTrack&);
111    
112        ~TrkTrack(){Delete();};
113            
114      void Dump();      void Dump();
115          void Clear();      void Clear();
116        void Delete();
117                    
118      Int_t  GetSeqNo(){return seqno;}        ///< Returns the track sequential number      Int_t  GetSeqNo(){return seqno;}        ///< Returns the track sequential number
119      Int_t  GetImageSeqNo(){return image;}   ///< Returns the track image sequential number      Int_t  GetImageSeqNo(){return image;}   ///< Returns the track image sequential number
# Line 124  public: Line 127  public:
127      Float_t GetRigidity();      Float_t GetRigidity();
128      Float_t GetDeflection();      Float_t GetDeflection();
129      Float_t GetDEDX();      Float_t GetDEDX();
130          Float_t GetDEDX(Int_t ip){if( !(xgood[ip]+ygood[ip]) ) return 0; return (dedx_x[ip]+dedx_y[ip])/(xgood[ip]+ygood[ip]);};      Float_t GetDEDX(Int_t ip){if( !(xgood[ip]+ygood[ip]) ) return 0; return (dedx_x[ip]+dedx_y[ip])/(xgood[ip]+ygood[ip]);};
131          // sono un'imbecille... assegno xm e ym anche quando si tratta di un singolo      // sono un'imbecille... assegno xm e ym anche quando si tratta di un singolo
132          // non posso quindi usare xm e ym per dire se una vista e` inclusa nel fit o no      // non posso quindi usare xm e ym per dire se una vista e` inclusa nel fit o no
133  /*      Bool_t XGood(int ip){ return xm[ip] != -100.;};  /*      Bool_t XGood(int ip){ return xm[ip] != -100.;};
134          Bool_t YGood(int ip){ return ym[ip] != -100.;};*/          Bool_t YGood(int ip){ return ym[ip] != -100.;};*/
135          Bool_t XGood(int ip){ return xgood[ip]==1;};      Bool_t XGood(int ip){ return xgood[ip]==1;};
136          Bool_t YGood(int ip){ return ygood[ip]==1;};      Bool_t YGood(int ip){ return ygood[ip]==1;};
137            
138          TrkCluster *GetClusterX(int ip){TrkCluster *pt = (TrkCluster*)(clx->At(ip)); return pt;};      void SetMeasure(double *xmeas, double *ymeas, double *zmeas);
139          TrkCluster *GetClusterY(int ip){TrkCluster *pt = (TrkCluster*)(cly->At(ip)); return pt;};      void SetResolution(double *rx, double *ry);
140                void SetGood(int *xg, int *yg);
141        void LoadField(TString s);
142        void Fit(double pfixed, int& fail, int iprint);
143        void FitReset();
144        
145        TrkCluster *GetClusterX(int ip){TrkCluster *pt = (TrkCluster*)(clx->At(ip)); return pt;};
146        TrkCluster *GetClusterY(int ip){TrkCluster *pt = (TrkCluster*)(cly->At(ip)); return pt;};
147        
148      TrkTrack* GetTrkTrack(){return this;};      TrkTrack* GetTrkTrack(){return this;};
149    
150      friend class TrkLevel2;      friend class TrkLevel2;
# Line 165  public: Line 175  public:
175    
176      void Dump();      void Dump();
177                    
178          TrkCluster *GetCluster(){TrkCluster *pt = (TrkCluster*)cls.GetObject(); return pt;};      TrkCluster *GetCluster(){TrkCluster *pt = (TrkCluster*)cls.GetObject(); return pt;};
179    
180      friend class TrkLevel2;      friend class TrkLevel2;
181    
# Line 202  class TrkLevel2 : public TObject { Line 212  class TrkLevel2 : public TObject {
212    
213      TrkLevel2();      TrkLevel2();
214  //    TrkLevel2(cTrkLevel2 *);  //    TrkLevel2(cTrkLevel2 *);
215        ~TrkLevel2(){Delete();};
216            
217        void Clear();
218        void Delete();
219        
220      int ntrk() {return Track->GetEntries();}    ///< number of stored track      int ntrk() {return Track->GetEntries();}    ///< number of stored track
221      int nclsx(){return SingletX->GetEntries();} ///< number of x singlets      int nclsx(){return SingletX->GetEntries();} ///< number of x singlets
222      int nclsy(){return SingletY->GetEntries();} ///< number of y singlets      int nclsy(){return SingletY->GetEntries();} ///< number of y singlets
223    
224      void Dump();      void Dump();
225      void SetFromLevel2Struct(cTrkLevel2 *);      void SetFromLevel2Struct(cTrkLevel2 *);
226          void SetFromLevel2Struct(cTrkLevel2 *, TrkLevel1 *);      void SetFromLevel2Struct(cTrkLevel2 *, TrkLevel1 *);
227          void GetLevel2Struct(cTrkLevel2 *) const;      void GetLevel2Struct(cTrkLevel2 *) const;
     void Clear();  
228      void LoadField(TString);      void LoadField(TString);
229      Float_t GetZTrk(Int_t);      Float_t GetZTrk(Int_t);
230      Float_t GetXTrkLeft(){return XTRKL;};      Float_t GetXTrkLeft(){return XTRKL;};
# Line 227  class TrkLevel2 : public TObject { Line 240  class TrkLevel2 : public TObject {
240  //    TClonesArray *GetTracks_Chi2Sorted();  //    TClonesArray *GetTracks_Chi2Sorted();
241  //    TClonesArray *GetTracks_NFitSorted();  //    TClonesArray *GetTracks_NFitSorted();
242  //    TClonesArray *GetTracks();  //    TClonesArray *GetTracks();
243          TRefArray *GetTracks_NFitSorted();      TRefArray *GetTracks_NFitSorted();
244          TRefArray *GetTracks(){return this->GetTracks_NFitSorted();};      TRefArray *GetTracks(){return this->GetTracks_NFitSorted();};
245        
246  //    int       GetNTracks(){return this->GetTracks()->GetEntries();}  //    int       GetNTracks(){return this->GetTracks()->GetEntries();}
247          Int_t     GetNTracks();      Int_t     GetNTracks();
248          TrkTrack* GetTrack(int i);      TrkTrack* GetTrack(int i);
249      TrkTrack* GetTrackImage(int i);      TrkTrack* GetTrackImage(int i);
250        
251      TrkLevel2*    GetTrkLevel2(){return this;}      TrkLevel2*    GetTrkLevel2(){return this;}
252      TClonesArray* GetTrackArray(){return Track;};///< returns pointer to the track array      TClonesArray* GetTrackArray(){return Track;};///< returns pointer to the track array
253            

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.23