Update master to aliroot
[u/mrichter/AliRoot.git] / STEER / AOD / AliAODTrdTracklet.h
CommitLineData
9aa7ebff 1#ifndef ALIAODTRDTRACKLET_H
2#define ALIAODTRDTRACKLET_H
3
4#include "AliVTrdTracklet.h"
5
6class AliAODTrdTracklet : public AliVTrdTracklet {
7 public:
8
9 AliAODTrdTracklet();
10 AliAODTrdTracklet(const AliVTrdTracklet &rhs);
11 AliAODTrdTracklet(UInt_t trackletWord, Short_t hcid, Int_t label = -1);
12 virtual ~AliAODTrdTracklet() {};
13 AliAODTrdTracklet(const AliAODTrdTracklet& track);
14 AliAODTrdTracklet& operator=(const AliAODTrdTracklet& track);
15 virtual void Copy(TObject &obj) const;
16
17 void SetTrackletWord(UInt_t trklWord) { fTrackletWord = trklWord; }
18 void SetHCId(Short_t hcid) { fHCId = hcid; }
19 void SetLabel(Int_t label) { fLabel = label; }
20
21 virtual UInt_t GetTrackletWord() const { return fTrackletWord; }
22 virtual Int_t GetBinY() const;
23 virtual Int_t GetBinDy() const;
24 virtual Int_t GetBinZ() const { return ((fTrackletWord >> 20) & 0xf); }
25 virtual Int_t GetPID() const { return ((fTrackletWord >> 24) & 0xff); }
26
27 virtual Int_t GetHCId() const { return fHCId; }
28 virtual Int_t GetDetector() const { return fHCId / 2; }
29
30 virtual Int_t GetLabel() const { return fLabel; }
31
32 protected:
33 Short_t fHCId; // half-chamber ID
34 UInt_t fTrackletWord; // tracklet word (as from FEE)
35 // pppp : pppp : zzzz : dddd : dddy : yyyy : yyyy : yyyy
36 Int_t fLabel; // MC label
37
38 ClassDef(AliAODTrdTracklet,1)
39};
40
41#endif