1 #ifndef ALIESDTRDTRACKLET_H
2 #define ALIESDTRDTRACKLET_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
7 // ESD format for TRD tracklet from FEE used for triggering
11 class AliESDTrdTracklet : public TObject
15 AliESDTrdTracklet(UInt_t trackletWord, Short_t hcid, Int_t label = -1);
16 AliESDTrdTracklet(const AliESDTrdTracklet &trkl);
17 AliESDTrdTracklet& operator=(const AliESDTrdTracklet &trkl);
20 void SetTrackletWord(UInt_t trklWord) { fTrackletWord = trklWord; }
21 void SetHCId(Short_t hcid) { fHCId = hcid; }
23 // ----- tracklet information -----
24 UInt_t GetTrackletWord() const { return fTrackletWord; }
25 Int_t GetBinY() const;
26 Int_t GetBinDy() const;
27 Int_t GetBinZ() const { return ((fTrackletWord >> 20) & 0xf); }
28 Int_t GetPID() const { return ((fTrackletWord >> 24) & 0xff); }
30 // ----- position information (chamber-local) -----
31 Float_t GetLocalX() const { return fgkX0; }
32 Float_t GetLocalY() const { return GetBinY() * fgkBinWidthY; }
33 Float_t GetDyDx() const;
35 // ----- geometrical information -----
36 Int_t GetHCId() const { return fHCId; }
37 Int_t GetDetector() const { return fHCId / 2; }
38 Int_t GetROB() const { return -1; }
39 Int_t GetMCM() const { return -1; }
41 // ----- MC information -----
42 Int_t GetLabel() const { return fLabel; }
45 Short_t fHCId; // half-chamber ID
47 UInt_t fTrackletWord; // tracklet word (as from FEE)
48 // pppp : pppp : zzzz : dddd : dddy : yyyy : yyyy : yyyy
49 Int_t fLabel; // MC label
51 static const Float_t fgkBinWidthY; // bin width y-position
52 static const Float_t fgkBinWidthDy; // bin width deflection length
54 static const Float_t fgkX0; // reference position in x-direction
55 static const Float_t fgkDriftLength; // drift length to which the deflection length is scaled
57 ClassDef(AliESDTrdTracklet, 1);