]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/STEERBase/AliVTrdTracklet.h
Adding static methods to get the azimuthal angle and eta range for a given vzero...
[u/mrichter/AliRoot.git] / STEER / STEERBase / AliVTrdTracklet.h
1 #ifndef ALIVTRDTRACKLET_H
2 #define ALIVTRDTRACKLET_H
3
4 // format for the TRD tracklets calculated in the FEE,
5 // used for the TRD L1 trigger
6 // Author: Jochen Klein <jochen.klein@cern.ch>
7
8 #include "TObject.h"
9
10 class AliVTrdTracklet : public TObject {
11  public:
12
13   AliVTrdTracklet();
14   virtual ~AliVTrdTracklet() {};
15   AliVTrdTracklet(const AliVTrdTracklet& track);
16   AliVTrdTracklet& operator=(const AliVTrdTracklet& track);
17   virtual void Copy(TObject &obj) const;
18
19   // tracklet information
20   virtual UInt_t GetTrackletWord() const = 0;
21   virtual Int_t  GetBinY() const = 0;
22   virtual Int_t  GetBinDy() const = 0;
23   virtual Int_t  GetBinZ() const = 0;
24   virtual Int_t  GetPID() const = 0;
25
26   // position and deflection information (chamber-local)
27   Float_t GetLocalY() const { return GetBinY() * fgkBinWidthY; }
28   Float_t GetDyDx() const { return GetBinDy() * fgkBinWidthDy/fgkDriftLength; }
29
30   virtual Int_t GetHCId() const = 0;
31   virtual Int_t GetDetector() const = 0;
32   virtual Int_t GetLabel() const = 0;
33
34  protected:
35
36   static const Float_t fgkBinWidthY;   // bin width y-position
37   static const Float_t fgkBinWidthDy;  // bin width deflection length
38   static const Float_t fgkDriftLength; // drift length to which the deflection length is scaled
39
40   ClassDef(AliVTrdTracklet,0)
41 };
42
43 #endif