AliRoot Core  3dc7879 (3dc7879)
AliESDTrdTracklet.h
Go to the documentation of this file.
1 #ifndef ALIESDTRDTRACKLET_H
2 #define ALIESDTRDTRACKLET_H
3 
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice */
6 
7 // ESD format for TRD tracklet from FEE used for triggering
8 
9 #include "AliVTrdTracklet.h"
10 
12 {
13  public:
15  AliESDTrdTracklet(UInt_t trackletWord, Short_t hcid, const Int_t *label=0);
19 
20  void SetTrackletWord(UInt_t trklWord) { fTrackletWord = trklWord; }
21  void SetHCId(Short_t hcid) { fHCId = hcid; }
22  void SetLabel(Int_t label[]) { for (int i=3;i--;) fLabel[i] = label[i]; }
23  void SetLabel(int ilb, Int_t label) { fLabel[ilb] = label; }
24 
25  // ----- tracklet information -----
26  virtual UInt_t GetTrackletWord() const { return fTrackletWord; }
27  virtual Int_t GetBinY() const;
28  virtual Int_t GetBinDy() const;
29  virtual Int_t GetBinZ() const { return ((fTrackletWord >> 20) & 0xf); }
30  virtual Int_t GetPID() const { return ((fTrackletWord >> 24) & 0xff); }
31 
32  // ----- geometrical information -----
33  Int_t GetHCId() const { return fHCId; }
34  Int_t GetDetector() const { return fHCId / 2; }
35  Int_t GetROB() const { return -1; }
36  Int_t GetMCM() const { return -1; }
37 
38  // ----- MC information -----
39  Int_t GetLabel() const { return fLabel[0]; }
40  Int_t GetLabel(int i) const { return fLabel[i]; }
41  const Int_t* GetLabels() const { return fLabel; }
42 
43  protected:
44  Short_t fHCId; // half-chamber ID
45 
46  UInt_t fTrackletWord; // tracklet word (as from FEE)
47  // pppp : pppp : zzzz : dddd : dddy : yyyy : yyyy : yyyy
48  Int_t fLabel[3]; // MC labels
49 
50  ClassDef(AliESDTrdTracklet, 3);
51 
52 };
53 
54 #endif
virtual UInt_t GetTrackletWord() const
virtual Int_t GetPID() const
virtual Int_t GetBinY() const
const Int_t * GetLabels() const
Int_t GetMCM() const
virtual Int_t GetBinDy() const
void SetLabel(Int_t label[])
virtual Int_t GetBinZ() const
AliESDTrdTracklet & operator=(const AliESDTrdTracklet &trkl)
Int_t GetDetector() const
void SetHCId(Short_t hcid)
void SetTrackletWord(UInt_t trklWord)
Int_t GetHCId() const
Int_t GetLabel(int i) const
Int_t GetLabel() const
void SetLabel(int ilb, Int_t label)
Int_t GetROB() const