/[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.26 by pam-fi, Thu May 24 13:29:08 2007 UTC revision 1.31 by pam-fi, Fri Aug 31 14:56:50 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 90  public: Line 97  public:
97    
98      float al[5];           ///<TRACK STATE VECTOR      float al[5];           ///<TRACK STATE VECTOR
99      float coval[5][5];     ///<covariance matrix      float coval[5][5];     ///<covariance matrix
100      int   xgood[6];        ///<cluster flag for x-view (0 = view not included in the fit)      int   xgood[6];        ///<cluster id for x-view (0 = view not included in the fit)
101      int   ygood[6];        ///<cluster flag for y-view (0 = view not included in the fit)      int   ygood[6];        ///<cluster id for y-view (0 = view not included in the fit)
102      float xm[6];           ///<measured x coordinates      float xm[6];           ///<measured x coordinates
103      float ym[6];           ///<measured y coordinates      float ym[6];           ///<measured y coordinates
104      float zm[6];           ///<measured z coordinates      float zm[6];           ///<measured z coordinates
# Line 100  public: Line 107  public:
107      float tailx[6];        ///<spatial resolution tail on X view      float tailx[6];        ///<spatial resolution tail on X view
108      float taily[6];        ///<spatial resolution tail on y view      float taily[6];        ///<spatial resolution tail on y view
109      float chi2;            ///<chi2      float chi2;            ///<chi2
110      int   nstep;           ///<n. step      int   nstep;           ///<n.step
111      float xv[6];           ///<calculated x coordinates      float xv[6];           ///<calculated x coordinates
112      float yv[6];           ///<calculated y coordinates      float yv[6];           ///<calculated y coordinates
113      float zv[6];           ///<calculated z coordinates      float zv[6];           ///<calculated z coordinates
# Line 108  public: Line 115  public:
115      float ayv[6];          ///<calculated angles (deg) on y view      float ayv[6];          ///<calculated angles (deg) on y view
116      float dedx_x[6];       ///<dE/dx in MIP (<0 if saturated)      float dedx_x[6];       ///<dE/dx in MIP (<0 if saturated)
117      float dedx_y[6];       ///<dE/dx in MIP (<0 if saturated)      float dedx_y[6];       ///<dE/dx in MIP (<0 if saturated)
118        int   multmaxx[6];     ///<cluster multiplicity and strip of maximum on x view
119        int   multmaxy[6];     ///<cluster multiplicity and strip of maximum on y view
120        float seedx[6];        ///< seed of the cluster x
121        float seedy[6];        ///< seed of the cluster y
122        float xpu[6];          ///< x coordinate in pitch units
123        float ypu[6];          ///< y coordinate in pitch units
124    
125      TrkTrack();      TrkTrack();
126      TrkTrack(const TrkTrack&);      TrkTrack(const TrkTrack&);
# Line 137  public: Line 150  public:
150      Bool_t IsSaturated();      Bool_t IsSaturated();
151      Bool_t IsBad(int,int);      Bool_t IsBad(int,int);
152      Float_t GetDEDX();      Float_t GetDEDX();
153      Float_t GetDEDX(int);      Float_t GetDEDX(int ip);
154      Float_t GetDEDX(int,int);      Float_t GetDEDX(int ip,int iv);
155      Int_t GetLeverArmX();      Int_t GetLeverArmX();
156      Int_t GetLeverArmY();      Int_t GetLeverArmY();
157        Float_t GetChi2X();
158        Float_t GetChi2Y();
159        Float_t GetLnLX();
160        Float_t GetLnLY();
161    
162        Float_t GetEffectiveAngle(int ip, int iv);
163        
164      void SetMeasure(double *xmeas, double *ymeas, double *zmeas);      void SetMeasure(double *xmeas, double *ymeas, double *zmeas);
165      void SetResolution(double *rx, double *ry);      void SetResolution(double *rx, double *ry);
166      void SetTail(double *tx, double *ty, double factor);      void SetTail(double *tx, double *ty, double factor);
# Line 154  public: Line 173  public:
173      void SetTrackingMode(int trackmode);      void SetTrackingMode(int trackmode);
174      void SetPrecisionFactor(double fact);      void SetPrecisionFactor(double fact);
175      void SetStepMin(int istepmin);      void SetStepMin(int istepmin);
176        Bool_t IsInsideCavity();
177    
178      void EvaluateClusterPositions();      Bool_t EvaluateClusterPositions();
179    
180      void FillMiniStruct(cMini2track&);      void FillMiniStruct(cMini2track&);
181      void SetFromMiniStruct(cMini2track*);      void SetFromMiniStruct(cMini2track*);
# Line 177  public: Line 197  public:
197      Bool_t SaturatedClusterX(int ip){ return IsSaturated(ip,0); };      Bool_t SaturatedClusterX(int ip){ return IsSaturated(ip,0); };
198      Bool_t SaturatedClusterY(int ip){ return IsSaturated(ip,1); };      Bool_t SaturatedClusterY(int ip){ return IsSaturated(ip,1); };
199    
200        Int_t GetClusterX_Multiplicity(int ip){ return (Int_t)(multmaxx[ip]/10000); };
201        Int_t GetClusterY_Multiplicity(int ip){ return (Int_t)(multmaxy[ip]/10000); };
202        Int_t GetClusterX_MaxStrip(int ip){ return (Int_t)(multmaxx[ip]%10000); };
203        Int_t GetClusterY_MaxStrip(int ip){ return (Int_t)(multmaxy[ip]%10000); };
204        Float_t GetClusterX_Seed(int ip){ return seedx[ip]; };
205        Float_t GetClusterY_Seed(int ip){ return seedy[ip]; };
206    /*     Float_t GetClusterX_CoordinatePU(int ip); */
207    /*     Float_t GetClusterY_CoordinatePU(int ip); */
208        
209    
210      TrkTrack* GetTrkTrack(){return this;};      TrkTrack* GetTrkTrack(){return this;};
211    
212      friend class TrkLevel2;      friend class TrkLevel2;
213    
214      ClassDef(TrkTrack,3);      ClassDef(TrkTrack,4);
215    
216  };  };
217  /**  /**
# Line 227  public: Line 257  public:
257   * Each track may have an "image", due to the ambiguity on the Y view, which is stored also.   * Each track may have an "image", due to the ambiguity on the Y view, which is stored also.
258   * Thus, the number of stored tracks ( ntrk() ) differs from the number of "physical" tracks ( GetNTracks() ).   * Thus, the number of stored tracks ( ntrk() ) differs from the number of "physical" tracks ( GetNTracks() ).
259   * Proper methods allow to sort tracks and select the physical ones ( GetTracks() ).   * Proper methods allow to sort tracks and select the physical ones ( GetTracks() ).
260     *
261     * The event status indicates the processing status of data from each DSP, according to the following
262     * notation:
263     *
264     *     xxxx xxxx xxxx xxxx xxxx xxxx
265     *     |||| |||| |||| |||| |||| ||||_ 0 missing packet
266     *     |||| |||| |||| |||| |||| |||__ 1 CRC error
267     *     |||| |||| |||| |||| |||| ||___ 2 on-line software alarm (latch-up, timeout ecc...)
268     *     |||| |||| |||| |||| |||| |____ 3 jump in the trigger counter
269     *     |||| |||| |||| |||| ||||______ 4 decode error
270     *     |||| |||| |||| |||| |||_______ 5 n.clusters > maximum number (level1 processing)
271     *     |||| |||| |||| |||| ||________ 6
272     *     |||| |||| |||| |||| |_________ 7
273     *     |||| |||| |||| ||||___________ 8 n.clusters > maximum value (level2 processing)
274     *     |||| |||| |||| |||____________ 9 n.couples per plane > maximum values (vector dimention)
275     *     |||| |||| |||| ||_____________ 10 n.doublets > maximum values
276     *     |||| |||| |||| |______________ 11 n.triplets > maximum values
277     *     |||| |||| ||||________________ 12 n.yz-clouds > maximum values
278     *     |||| |||| |||_________________ 13 n.xz-clouds > maximum values
279     *     |||| |||| ||__________________ 14 n.candidate-tracks > maximum values
280     *     |||| |||| |___________________ 15 n.couples per plane > maximum values (for Hough transform)
281     *     |||| ||||_____________________ 16
282     *        
283     *
284     * For all data processed before June 2007 the event status was coded according to
285     * a different rule:
286     *
287     * Status of level1 processing
288     *  0 -- OK  
289     *  1 -- missing packet
290     *  2 -- 1  CRC error
291     *  3 -- 2 on-line software alarm (latch-up flags asserted or n.transmitted-words = 0)
292     *  4 -- 3 jump in the trigger counter
293     * 10 -- 4 decode error
294     * 11 -- 5  n.clusters > maximum number (for level1 processing)
295     * Status of level2 processing
296     * 21 -- 0 n.clusters > maximum value (for level2 processing)
297     * 22 -- 1 n.couples per plane > maximum values (vector dimention)
298     * 23 -- 2 n.doublets > maximum values
299     * 24 -- 3 n.triplets > maximum values
300     * 25 -- 4 n.yz-clouds > maximum values
301     * 26 -- 5 n.xz-clouds > maximum values
302     * 27 -- 6 n.candidate-tracks > maximum values
303     * 28 -- 7 n.couples per plane > maximum values (for Hough transform)
304     *  
305     *
306   */   */
307  class TrkLevel2 : public TObject {  class TrkLevel2 : public TObject {
308    
# Line 291  class TrkLevel2 : public TObject { Line 367  class TrkLevel2 : public TObject {
367      TrkLevel2*    GetTrkLevel2(){return this;}      TrkLevel2*    GetTrkLevel2(){return this;}
368      TClonesArray* GetTrackArray(){return Track;};///< returns pointer to the track array      TClonesArray* GetTrackArray(){return Track;};///< returns pointer to the track array
369            
370        void   StatusDump(int view);
371        Bool_t StatusCheck(int view, int flagmask);
372    
373      ClassDef(TrkLevel2,3);      ClassDef(TrkLevel2,3);
374    
375  };  };

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.31

  ViewVC Help
Powered by ViewVC 1.1.23