/[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.11 by pam-fi, Thu Oct 12 15:41:02 2006 UTC revision 1.14 by pam-fi, Wed Nov 15 15:18:49 2006 UTC
# Line 57  class Trajectory : public TObject{ Line 57  class Trajectory : public TObject{
57      Trajectory(int n, float* pz);      Trajectory(int n, float* pz);
58      void Dump();      void Dump();
59    
60        int DoTrack2(float* al);
61      float GetLength(){float l=0; for(int i=0; i<npoint;i++)l=l+tl[i]; return l;};      float GetLength(){float l=0; for(int i=0; i<npoint;i++)l=l+tl[i]; return l;};
62      float GetLength(int,int);      float GetLength(int,int);
63    
# Line 83  public: Line 84  public:
84    
85  //      TRef clx[6];  //      TRef clx[6];
86  //      TRef cly[6];  //      TRef cly[6];
87          TRefArray *clx;      TRefArray *clx;
88          TRefArray *cly;      TRefArray *cly;
89    
90      float al[5];           ///<TRACK STATE VECTOR      float al[5];           ///<TRACK STATE VECTOR
91      float coval[5][5];     ///<covariance matrix      float coval[5][5];     ///<covariance matrix
# Line 96  public: Line 97  public:
97      float resx[6];         ///<spatial resolution on X view      float resx[6];         ///<spatial resolution on X view
98      float resy[6];         ///<spatial resolution on y view      float resy[6];         ///<spatial resolution on y view
99      float chi2;            ///<chi2      float chi2;            ///<chi2
100          int   nstep;           ///<n. step      int   nstep;           ///<n. step
101          float xv[6];           ///<calculated x coordinates      float xv[6];           ///<calculated x coordinates
102      float yv[6];           ///<calculated y coordinates      float yv[6];           ///<calculated y coordinates
103      float zv[6];           ///<calculated z coordinates      float zv[6];           ///<calculated z coordinates
104      float axv[6];          ///<calculated angles (deg) on x view      float axv[6];          ///<calculated angles (deg) on x view
# Line 109  public: Line 110  public:
110      TrkTrack();      TrkTrack();
111      TrkTrack(const TrkTrack&);      TrkTrack(const TrkTrack&);
112    
113          ~TrkTrack(){Delete();};      ~TrkTrack(){Delete();};
114                    
115      void Dump();      void Dump();
116          void Clear();      void Clear();
117          void Delete();      void Delete();
118                    
119      Int_t  GetSeqNo(){return seqno;}        ///< Returns the track sequential number      Int_t  GetSeqNo(){return seqno;}        ///< Returns the track sequential number
120      Int_t  GetImageSeqNo(){return image;}   ///< Returns the track image sequential number      Int_t  GetImageSeqNo(){return image;}   ///< Returns the track image sequential number
# Line 127  public: Line 128  public:
128      Float_t GetRigidity();      Float_t GetRigidity();
129      Float_t GetDeflection();      Float_t GetDeflection();
130      Float_t GetDEDX();      Float_t GetDEDX();
131          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]);};
132          // 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
133          // 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
134  /*      Bool_t XGood(int ip){ return xm[ip] != -100.;};  /*      Bool_t XGood(int ip){ return xm[ip] != -100.;};
135          Bool_t YGood(int ip){ return ym[ip] != -100.;};*/          Bool_t YGood(int ip){ return ym[ip] != -100.;};*/
136          Bool_t XGood(int ip){ return xgood[ip]==1;};      Bool_t XGood(int ip){ return xgood[ip]==1;};
137          Bool_t YGood(int ip){ return ygood[ip]==1;};      Bool_t YGood(int ip){ return ygood[ip]==1;};
138            
139          TrkCluster *GetClusterX(int ip){TrkCluster *pt = (TrkCluster*)(clx->At(ip)); return pt;};      void SetMeasure(double *xmeas, double *ymeas, double *zmeas);
140          TrkCluster *GetClusterY(int ip){TrkCluster *pt = (TrkCluster*)(cly->At(ip)); return pt;};      void SetResolution(double *rx, double *ry);
141                void SetGood(int *xg, int *yg);
142        void LoadField(TString s);
143        void Fit(double pfixed, int& fail, int iprint);
144        void FitReset();
145    
146        void FillMiniStruct(cMini2track&);
147        void SetFromMiniStruct(cMini2track*);
148        
149        TrkCluster *GetClusterX(int ip){TrkCluster *pt = (TrkCluster*)(clx->At(ip)); return pt;};
150        TrkCluster *GetClusterY(int ip){TrkCluster *pt = (TrkCluster*)(cly->At(ip)); return pt;};
151        
152      TrkTrack* GetTrkTrack(){return this;};      TrkTrack* GetTrkTrack(){return this;};
153    
154      friend class TrkLevel2;      friend class TrkLevel2;

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.23