/[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.15 by pam-fi, Thu Jan 11 10:20:57 2007 UTC revision 1.20 by pam-fi, Thu Mar 15 12:17:09 2007 UTC
# Line 11  Line 11 
11  #include <TRefArray.h>  #include <TRefArray.h>
12  #include <TRef.h>  #include <TRef.h>
13    
14  #include <TrkStruct.h>  //#include <TrkStruct.h>
15    #include <TrkParams.h>
16  #include <TrkLevel1.h>  #include <TrkLevel1.h>
17    
18  // z-coordinate of track state-vector reference-plane  // z-coordinate of track state-vector reference-plane
# Line 103  public: Line 104  public:
104      float zv[6];           ///<calculated z coordinates      float zv[6];           ///<calculated z coordinates
105      float axv[6];          ///<calculated angles (deg) on x view      float axv[6];          ///<calculated angles (deg) on x view
106      float ayv[6];          ///<calculated angles (deg) on y view      float ayv[6];          ///<calculated angles (deg) on y view
107      float dedx_x[6];       ///<signal in MIP (scaled to 300 micrometer)      float dedx_x[6];       ///<dE/dx in MIP
108      float dedx_y[6];       ///<signal in MIP (scaled to 300 micrometer)      float dedx_y[6];       ///<dE/dx in MIP
109    
110      TrkTrack();      TrkTrack();
111      TrkTrack(const TrkTrack&);      TrkTrack(const TrkTrack&);
# Line 116  public: Line 117  public:
117      void Clear(Option_t *option){Clear();};      void Clear(Option_t *option){Clear();};
118      void Delete();      void Delete();
119      void Copy(TrkTrack&);      void Copy(TrkTrack&);
120            //    void Set();
121    
122      Int_t  GetSeqNo(){return seqno;}        ///< Returns the track sequential number      Int_t  GetSeqNo(){return seqno;}        ///< Returns the track sequential number
123      Int_t  GetImageSeqNo(){return image;}   ///< Returns the track image sequential number      Int_t  GetImageSeqNo(){return image;}   ///< Returns the track image sequential number
124      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
# Line 134  public: Line 136  public:
136      // 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
137  /*      Bool_t XGood(int ip){ return xm[ip] != -100.;};  /*      Bool_t XGood(int ip){ return xm[ip] != -100.;};
138          Bool_t YGood(int ip){ return ym[ip] != -100.;};*/          Bool_t YGood(int ip){ return ym[ip] != -100.;};*/
139      Bool_t XGood(int ip){ return xgood[ip]==1;};      Bool_t XGood(int ip){ return xgood[ip]> 0;};
140      Bool_t YGood(int ip){ return ygood[ip]==1;};      Bool_t YGood(int ip){ return ygood[ip]> 0;};
141        
142    
143      void SetMeasure(double *xmeas, double *ymeas, double *zmeas);      void SetMeasure(double *xmeas, double *ymeas, double *zmeas);
144      void SetResolution(double *rx, double *ry);      void SetResolution(double *rx, double *ry);
# Line 143  public: Line 146  public:
146      void LoadField(TString s);      void LoadField(TString s);
147      void Fit(double pfixed, int& fail, int iprint);      void Fit(double pfixed, int& fail, int iprint);
148      void FitReset();      void FitReset();
149        void SetTrackingMode(int trackmode);
150    
151      void FillMiniStruct(cMini2track&);      void FillMiniStruct(cMini2track&);
152      void SetFromMiniStruct(cMini2track*);      void SetFromMiniStruct(cMini2track*);
153            
154      TrkCluster *GetClusterX(int ip){TrkCluster *pt = (TrkCluster*)(clx->At(ip)); return pt;};      TrkCluster *GetClusterX(int ip);
155      TrkCluster *GetClusterY(int ip){TrkCluster *pt = (TrkCluster*)(cly->At(ip)); return pt;};      TrkCluster *GetClusterY(int ip);
156    
157        Int_t GetClusterX_ID(int ip){return xgood[ip];};
158        Int_t GetClusterY_ID(int ip){return ygood[ip];};
159            
160      TrkTrack* GetTrkTrack(){return this;};      TrkTrack* GetTrkTrack(){return this;};
161    
# Line 222  class TrkLevel2 : public TObject { Line 229  class TrkLevel2 : public TObject {
229      void Clear();      void Clear();
230      void Clear(Option_t *option){Clear();};      void Clear(Option_t *option){Clear();};
231      void Delete();      void Delete();
232        void Set();
233            
234      int ntrk() {return Track->GetEntries();}    ///< number of stored track      int ntrk() {return Track->GetEntries();}    ///< number of stored track
235      int nclsx(){return SingletX->GetEntries();} ///< number of x singlets      int nclsx(){return SingletX->GetEntries();} ///< number of x singlets
236      int nclsy(){return SingletY->GetEntries();} ///< number of y singlets      int nclsy(){return SingletY->GetEntries();} ///< number of y singlets
237    
238      void Dump();      void Dump();
     void SetFromLevel2Struct(cTrkLevel2 *);  
239      void SetFromLevel2Struct(cTrkLevel2 *, TrkLevel1 *);      void SetFromLevel2Struct(cTrkLevel2 *, TrkLevel1 *);
240        void SetFromLevel2Struct(cTrkLevel2 *s2){ SetFromLevel2Struct(s2, NULL);          };
241        void SetFromLevel2Struct(TrkLevel1 *l1) { SetFromLevel2Struct(&level2event_, l1); };    
242        void SetFromLevel2Struct()              { SetFromLevel2Struct(&level2event_);     };    
243      void GetLevel2Struct(cTrkLevel2 *) const;      void GetLevel2Struct(cTrkLevel2 *) const;
244      void LoadField(TString);      void LoadField(TString);
245        float GetBX(float*);
246        float GetBY(float*);
247        float GetBZ(float*);
248      Float_t GetZTrk(Int_t);      Float_t GetZTrk(Int_t);
249      Float_t GetXTrkLeft(){return XTRKL;};      Float_t GetXTrkLeft(){return XTRKL;};
250      Float_t GetXTrkRight(){return XTRKR;};      Float_t GetXTrkRight(){return XTRKR;};

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.20

  ViewVC Help
Powered by ViewVC 1.1.23