]>
Commit | Line | Data |
---|---|---|
672b5f43 | 1 | #ifndef ALIESDMUONTRACK_H |
2 | #define ALIESDMUONTRACK_H | |
3 | ||
af7ba10c | 4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | /* $Id$ */ | |
8 | ||
9 | // Class to describe the MUON tracks | |
10 | // in the Event Summary Data class | |
11 | // Author: G.Martinez | |
12 | ||
13 | ||
672b5f43 | 14 | #include "TObject.h" |
15 | ||
39b8d0dd | 16 | class TLorentzVector; |
17 | ||
672b5f43 | 18 | class AliESDMuonTrack : public TObject { |
5ec1b3bc | 19 | public: |
90e48c0c | 20 | AliESDMuonTrack(); //Constructor |
af7ba10c | 21 | virtual ~AliESDMuonTrack(){} // Destructor |
22 | AliESDMuonTrack(const AliESDMuonTrack& esdm); | |
23 | AliESDMuonTrack& operator=(const AliESDMuonTrack& esdm); | |
5ec1b3bc | 24 | |
25 | ||
39b8d0dd | 26 | // Get and Set methods for data at vertex |
5ec1b3bc | 27 | Double_t GetInverseBendingMomentum(void) const {return fInverseBendingMomentum;} |
39b8d0dd | 28 | void SetInverseBendingMomentum(Double_t InverseBendingMomentum) |
29 | {fInverseBendingMomentum = InverseBendingMomentum;} | |
5ec1b3bc | 30 | Double_t GetThetaX(void) const {return fThetaX;} |
39b8d0dd | 31 | void SetThetaX(Double_t ThetaX) {fThetaX = ThetaX;} |
5ec1b3bc | 32 | Double_t GetThetaY(void) const {return fThetaY;} |
39b8d0dd | 33 | void SetThetaY(Double_t ThetaY) {fThetaY = ThetaY;} |
5ec1b3bc | 34 | Double_t GetZ(void) const {return fZ;} |
39b8d0dd | 35 | void SetZ(Double_t Z) {fZ = Z;} |
5ec1b3bc | 36 | Double_t GetBendingCoor(void) const {return fBendingCoor;} |
39b8d0dd | 37 | void SetBendingCoor(Double_t BendingCoor) {fBendingCoor = BendingCoor;} |
5ec1b3bc | 38 | Double_t GetNonBendingCoor(void) const {return fNonBendingCoor;} |
39b8d0dd | 39 | void SetNonBendingCoor(Double_t NonBendingCoor) {fNonBendingCoor = NonBendingCoor;} |
40 | ||
41 | // Get and Set methods for data at first station | |
42 | Double_t GetInverseBendingMomentumUncorrected(void) const {return fInverseBendingMomentumUncorrected;} | |
43 | void SetInverseBendingMomentumUncorrected(Double_t InverseBendingMomentum) | |
44 | {fInverseBendingMomentumUncorrected = InverseBendingMomentum;} | |
45 | Double_t GetThetaXUncorrected(void) const {return fThetaXUncorrected;} | |
46 | void SetThetaXUncorrected(Double_t ThetaX) {fThetaXUncorrected = ThetaX;} | |
47 | Double_t GetThetaYUncorrected(void) const {return fThetaYUncorrected;} | |
48 | void SetThetaYUncorrected(Double_t ThetaY) {fThetaYUncorrected = ThetaY;} | |
49 | Double_t GetZUncorrected(void) const {return fZUncorrected;} | |
50 | void SetZUncorrected(Double_t Z) {fZUncorrected = Z;} | |
51 | Double_t GetBendingCoorUncorrected(void) const {return fBendingCoorUncorrected;} | |
52 | void SetBendingCoorUncorrected(Double_t BendingCoor) {fBendingCoorUncorrected = BendingCoor;} | |
53 | Double_t GetNonBendingCoorUncorrected(void) const {return fNonBendingCoorUncorrected;} | |
54 | void SetNonBendingCoorUncorrected(Double_t NonBendingCoor) {fNonBendingCoorUncorrected = NonBendingCoor;} | |
55 | ||
56 | // Get and Set methods for global tracking info | |
5ec1b3bc | 57 | Double_t GetChi2(void) const {return fChi2;} |
39b8d0dd | 58 | void SetChi2(Double_t Chi2) {fChi2 = Chi2;} |
59 | UInt_t GetNHit(void) const {return fNHit;} | |
60 | void SetNHit(UInt_t NHit) {fNHit = NHit;} | |
5ec1b3bc | 61 | |
39b8d0dd | 62 | // Get and Set methods for trigger matching |
fbc3395d | 63 | Int_t GetMatchTrigger() const {return fMatchTrigger;} |
64 | void SetMatchTrigger(Int_t MatchTrigger) {fMatchTrigger = MatchTrigger;} | |
8252d536 | 65 | Double_t GetChi2MatchTrigger() const {return fChi2MatchTrigger;} |
39b8d0dd | 66 | void SetChi2MatchTrigger(Double_t Chi2MatchTrigger) {fChi2MatchTrigger = Chi2MatchTrigger;} |
fbc3395d | 67 | UShort_t GetHitsPatternInTrigCh() const {return fHitsPatternInTrigCh;} |
68 | void SetHitsPatternInTrigCh(UShort_t hitsPatternInTrigCh) {fHitsPatternInTrigCh = hitsPatternInTrigCh;} | |
39b8d0dd | 69 | |
70 | // Methods to compute track momentum | |
71 | Double_t Px() const; | |
72 | Double_t Py() const; | |
73 | Double_t Pz() const; | |
74 | Double_t P() const; | |
75 | void LorentzP(TLorentzVector& vP) const; | |
76 | Double_t PxUncorrected() const; | |
77 | Double_t PyUncorrected() const; | |
78 | Double_t PzUncorrected() const; | |
79 | Double_t PUncorrected() const; | |
80 | void LorentzPUncorrected(TLorentzVector& vP) const; | |
81 | ||
82 | ||
5ec1b3bc | 83 | protected: |
39b8d0dd | 84 | // parameters at vertex |
5ec1b3bc | 85 | Double_t fInverseBendingMomentum; // Inverse bending momentum (GeV/c ** -1) times the charge |
39b8d0dd | 86 | Double_t fThetaX; // Angle of track at vertex in X direction (rad) |
87 | Double_t fThetaY; // Angle of track at vertex in Y direction (rad) | |
88 | Double_t fZ; // Z coordinate (cm) | |
89 | Double_t fBendingCoor; // bending coordinate (cm) | |
90 | Double_t fNonBendingCoor; // non bending coordinate (cm) | |
91 | ||
92 | // parameters at first tracking station | |
93 | Double_t fInverseBendingMomentumUncorrected; // Inverse bending momentum (GeV/c ** -1) times the charge | |
94 | Double_t fThetaXUncorrected; // Angle of track at vertex in X direction (rad) | |
95 | Double_t fThetaYUncorrected; // Angle of track at vertex in Y direction (rad) | |
96 | Double_t fZUncorrected; // Z coordinate (cm) | |
97 | Double_t fBendingCoorUncorrected; // bending coordinate (cm) | |
98 | Double_t fNonBendingCoorUncorrected; // non bending coordinate (cm) | |
99 | ||
100 | // global tracking info | |
101 | Double_t fChi2; // chi2 in the MUON track fit | |
102 | UInt_t fNHit; // number of hit in the track | |
5ec1b3bc | 103 | |
39b8d0dd | 104 | // trigger matching |
fbc3395d | 105 | Int_t fMatchTrigger; // -1 track does not match trigger |
106 | // 0 track match but does not pass pt cut | |
107 | // 1 track match Low pt cut | |
108 | // 2 track match High pt cut | |
109 | Double_t fChi2MatchTrigger; // chi2 of trigger/track matching | |
110 | ||
111 | UShort_t fHitsPatternInTrigCh; ///< Word containing info on the hits left in trigger chambers | |
5ec1b3bc | 112 | |
8252d536 | 113 | |
fbc3395d | 114 | ClassDef(AliESDMuonTrack,4) //MUON ESD track class |
672b5f43 | 115 | }; |
116 | ||
117 | #endif |