]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDtracklet.h
better ESD performance plot
[u/mrichter/AliRoot.git] / TRD / AliTRDtracklet.h
1 #ifndef ALITRDTRACKLET_H
2 #define ALITRDTRACKLET_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6
7 /* $Id$ */
8
9 #include <TObject.h>
10
11 ////////////////////////////////////////////////////////////////////////////
12 //                                                                        //
13 //  A TRD tracklet                                                        //
14 //                                                                        //
15 ////////////////////////////////////////////////////////////////////////////
16
17 class AliTRDtracklet : public TObject {
18  
19  public:
20
21   AliTRDtracklet();
22   virtual          ~AliTRDtracklet();
23
24            void     Set(Float_t x, Float_t y, Float_t z, Float_t alpha, Float_t error2)
25                                                            { fX = x; fY = y; fZ = z;
26                                                              fAlpha = alpha; fSigma2 = error2; }
27            void     SetP0(Float_t p0)                      { fP0             = p0;     }
28            void     SetP1(Float_t p1)                      { fP1             = p1;     }
29            void     SetN(Int_t n)                          { fNFound         = n;      }
30            void     SetNCross(Int_t nc)                    { fNCross         = nc;     }
31            void     SetPlane(Int_t plane)                  { fPlane          = plane;  }
32            void     SetSigma2(Float_t sigma2)              { fExpectedSigma2 = sigma2; }
33            void     SetChi2(Float_t chi2)                  { fChi2           = chi2;   }
34            void     SetTilt(Float_t tilt)                  { fTilt           = tilt;   }
35            void     SetMaxPos(Short_t pos, Short_t pos4, Short_t pos5)
36                                                            { fMaxPos         = pos; 
37                                                              fMaxPos4        = pos4; 
38                                                              fMaxPos5        = pos5;   }
39
40            Float_t  GetX() const                           { return fX;                }
41            Float_t  GetY() const                           { return fY;                }
42            Float_t  GetZ() const                           { return fZ;                }
43            Float_t  GetAlpha() const                       { return fAlpha;            } 
44            Float_t  GetTrackletSigma2() const              { return fSigma2;           }
45            Float_t  GetP0() const                          { return fP0;               }
46            Float_t  GetP1() const                          { return fP1;               }
47            Int_t    GetN() const                           { return fNFound;           }
48            Int_t    GetNCross() const                      { return fNCross;           }  
49            Int_t    GetPlane() const                       { return fPlane;            }
50            Float_t  GetClusterSigma2() const               { return fExpectedSigma2;   }
51            Float_t  GetChi2() const                        { return fChi2;             }
52            Float_t  GetTilt() const                        { return fTilt;             }
53
54  protected:
55
56            Float_t  fY;                  //  Y position
57            Float_t  fZ;                  //  Z position
58            Float_t  fX;                  //  X position
59            Float_t  fAlpha;              //  Rotation angle
60            Float_t  fSigma2;             //  Expected error of tracklet position
61            Float_t  fP0;                 //  Offset in y
62            Float_t  fP1;                 //  Offset in tangent
63            Int_t    fNFound;             //  Number of found clusters
64            Int_t    fNCross;             //  Number of crosses
65            Int_t    fPlane;              //  Plane number
66            Float_t  fExpectedSigma2;     //  Expected sigma of residual distribution of clusters
67            Float_t  fChi2;               //  Chi2 of the tracklet
68            Float_t  fTilt;               //  Tilt factor 
69            Short_t  fMaxPos;             //  Time bin with max charge
70            Short_t  fMaxPos4;            //  Time bin with max charge
71            Short_t  fMaxPos5;            //  Time bin with max charge
72
73   ClassDef(AliTRDtracklet,2)             //  The TRD tracklet in one ROC
74
75 };
76
77 #endif