]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDltuTracklet.h
bug fix
[u/mrichter/AliRoot.git] / TRD / AliTRDltuTracklet.h
1 #ifndef ALITRDLTUTRACKLET_H
2 #define ALITRDLTUTRACKLET_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7
8 ///////////////////////////////////////////////////////////////////////////////
9 //                                                                           //
10 //  TRD LTU tracklet                                                         //
11 //                                                                           //
12 ///////////////////////////////////////////////////////////////////////////////
13
14 #include <TObject.h>
15
16 class AliTRDltuTracklet : public TObject {
17   
18  public:
19
20   enum { kNplan = 6 };
21
22   AliTRDltuTracklet();
23   AliTRDltuTracklet(Int_t det, Int_t row, Float_t rowz, Float_t slope, Float_t offset
24                    ,Float_t time, Int_t ncl, Int_t label, Float_t q);
25   virtual         ~AliTRDltuTracklet();
26
27           Bool_t   IsSortable() const { return kTRUE; }
28   virtual Int_t    Compare(const TObject *o) const;
29
30           Int_t    GetDetector() const             { return fDetector;                };
31           Int_t    GetPlane(Int_t det) const       { return ((Int_t) (det % kNplan)); };
32           Int_t    GetRow() const                  { return fRow;                     };
33           Int_t    GetNclusters() const            { return fNclusters;               };
34           Float_t  GetSlope() const                { return fSlope;                   };
35           Float_t  GetOffset() const               { return fY;                       }; 
36           Float_t  GetTime0() const                { return fX;                       };
37           Float_t  GetRowz() const                 { return fRowz;                    };
38           Float_t  GetYproj(Float_t xpl) const;
39           Float_t  GetZproj(Float_t xpl) const;
40           Int_t    GetLabel() const                { return fLabel;                   };
41           Float_t  GetPt(Float_t field) const;
42           Float_t  GetQ() const                    { return fQ;                       };
43
44  protected:
45
46           Float_t  fX;                              // Distance vertex to entrance window
47           Float_t  fY;                              // Tracklet offset at entrance window
48           Float_t  fSlope;                          // Tracklet slope
49           Float_t  fRowz;                           // z coordinate of the pad row center
50           Int_t    fDetector;                       // Detector number
51           Int_t    fRow;                            // Pad row number 
52           Int_t    fNclusters;                      // Number of clusters
53           Int_t    fLabel;                          // MC track label
54           Float_t  fQ;                              // Charge sum divided by number of clusters
55
56   ClassDef(AliTRDltuTracklet,2)                     // LTU tracklet
57
58 };
59
60 #endif