/[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.24 by pam-fi, Fri Apr 27 10:39:57 2007 UTC revision 1.27 by pam-fi, Thu May 24 14:32:14 2007 UTC
# Line 17  Line 17 
17  // z-coordinate of track state-vector reference-plane  // z-coordinate of track state-vector reference-plane
18  #define ZINI 23.5    #define ZINI 23.5  
19  // (mechanical) z-coordinate of the tracker planes  // (mechanical) z-coordinate of the tracker planes
20  #define ZTRK6 -22.23  #define ZTRK6 -22.22
21  #define ZTRK5 -13.32  #define ZTRK5 -13.31
22  #define ZTRK4 -4.42  #define ZTRK4 -4.41
23  #define ZTRK3 4.48  #define ZTRK3 4.49
24  #define ZTRK2 13.38  #define ZTRK2 13.39
25  #define ZTRK1 22.28  #define ZTRK1 22.29
26    // magnet cavity dimensions
27    #define ZMAGNHIGH 21.83
28    #define ZMAGNLOW -21.83
29    #define XMAGNHIGH 8.07
30    #define XMAGNLOW -8.07
31    #define YMAGNHIGH 6.57
32    #define YMAGNLOW -6.57
33  // (mechanical) x/y-coordinates of magnet cavity  // (mechanical) x/y-coordinates of magnet cavity
34  #define XTRKL -8.1  #define XTRKL -8.1
35  #define XTRKR  8.1  #define XTRKR  8.1
# Line 144  public: Line 151  public:
151    
152      void SetMeasure(double *xmeas, double *ymeas, double *zmeas);      void SetMeasure(double *xmeas, double *ymeas, double *zmeas);
153      void SetResolution(double *rx, double *ry);      void SetResolution(double *rx, double *ry);
154        void SetTail(double *tx, double *ty, double factor);
155        void SetStudentParam(int flag);
156      void SetGood(int *xg, int *yg);      void SetGood(int *xg, int *yg);
157      void LoadField(TString s);      void LoadField(TString s);
158      void Fit(double pfixed, int& fail, int iprint);      void Fit(double pfixed, int& fail, int iprint, int froml1);
159        void Fit(double pfixed, int& fail, int iprint){ Fit(pfixed,fail,iprint,0); };
160      void FitReset();      void FitReset();
161      void SetTrackingMode(int trackmode);      void SetTrackingMode(int trackmode);
162      void SetPrecisionFactor(double fact);      void SetPrecisionFactor(double fact);
163      void SetStepMin(int istepmin);      void SetStepMin(int istepmin);
164        Bool_t IsInsideCavity();
165    
166        void EvaluateClusterPositions();
167    
168      void FillMiniStruct(cMini2track&);      void FillMiniStruct(cMini2track&);
169      void SetFromMiniStruct(cMini2track*);      void SetFromMiniStruct(cMini2track*);
# Line 161  public: Line 174  public:
174      Int_t GetSensor(int ip);      Int_t GetSensor(int ip);
175      Bool_t XGood(int ip){ return GetClusterX_ID(ip)!=-1; };      Bool_t XGood(int ip){ return GetClusterX_ID(ip)!=-1; };
176      Bool_t YGood(int ip){ return GetClusterY_ID(ip)!=-1; };      Bool_t YGood(int ip){ return GetClusterY_ID(ip)!=-1; };
177        void ResetXGood(int ip){ xgood[ip]=0; };
178        void ResetYGood(int ip){ ygood[ip]=0; };
179        void SetXGood(int ip, int clid, int is);
180        void SetYGood(int ip, int clid, int is);
181    
182      Bool_t BadClusterX(int ip){ return IsBad(ip,0); };      Bool_t BadClusterX(int ip){ return IsBad(ip,0); };
183      Bool_t BadClusterY(int ip){ return IsBad(ip,1); };      Bool_t BadClusterY(int ip){ return IsBad(ip,1); };
# Line 253  class TrkLevel2 : public TObject { Line 270  class TrkLevel2 : public TObject {
270      void SetFromLevel2Struct()              { SetFromLevel2Struct(&level2event_);     };          void SetFromLevel2Struct()              { SetFromLevel2Struct(&level2event_);     };    
271      void GetLevel2Struct(cTrkLevel2 *) const;      void GetLevel2Struct(cTrkLevel2 *) const;
272      void LoadField(TString);      void LoadField(TString);
273      float GetBX(float*);      float GetBX(float* v){return TrkParams::GetBX(v);};///< Bx (kGauss)
274      float GetBY(float*);      float GetBY(float* v){return TrkParams::GetBY(v);};///< By (kGauss)
275      float GetBZ(float*);      float GetBZ(float* v){return TrkParams::GetBZ(v);};///< Bz (kGauss)
276      Float_t GetZTrk(Int_t);      Float_t GetZTrk(Int_t);
277      Float_t GetXTrkLeft(){return XTRKL;};      Float_t GetXTrkLeft(){return XTRKL;};
278      Float_t GetXTrkRight(){return XTRKR;};      Float_t GetXTrkRight(){return XTRKR;};

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.27

  ViewVC Help
Powered by ViewVC 1.1.23