]>
Commit | Line | Data |
---|---|---|
1 | #ifndef ALIMUONTRACKPARAM_H | |
2 | #define ALIMUONTRACKPARAM_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /*$Id$*/ | |
7 | // Revision of includes 07/05/2004 | |
8 | ||
9 | /// \ingroup rec | |
10 | /// \class AliMUONTrackParam | |
11 | /// \brief Track parameters in ALICE dimuon spectrometer | |
12 | /// | |
13 | //////////////////////////////////////////////////// | |
14 | /// Track parameters in ALICE dimuon spectrometer | |
15 | //////////////////////////////////////////////////// | |
16 | ||
17 | #include <TObject.h> | |
18 | #include <TMatrixDfwd.h> | |
19 | #include "AliMUONHitForRec.h" | |
20 | ||
21 | class AliESDMuonTrack; | |
22 | ||
23 | class AliMUONTrackParam : public TObject | |
24 | { | |
25 | public: | |
26 | AliMUONTrackParam(); // Constructor | |
27 | virtual ~AliMUONTrackParam(); // Destructor | |
28 | ||
29 | AliMUONTrackParam(const AliMUONTrackParam& theMUONTrackParam); | |
30 | AliMUONTrackParam& operator=(const AliMUONTrackParam& theMUONTrackParam); | |
31 | ||
32 | void GetParamFrom(const AliESDMuonTrack& esdMuonTrack); | |
33 | void SetParamFor(AliESDMuonTrack& esdMuonTrack); | |
34 | void GetParamFromUncorrected(const AliESDMuonTrack& esdMuonTrack); | |
35 | void SetParamForUncorrected(AliESDMuonTrack& esdMuonTrack); | |
36 | ||
37 | // Get and Set methods for data | |
38 | /// return inverse bending momentum (GeV/c ** -1) times the charge (assumed forward motion) | |
39 | Double_t GetInverseBendingMomentum(void) const {return fInverseBendingMomentum;} | |
40 | /// set inverse bending momentum (GeV/c ** -1) times the charge (assumed forward motion) | |
41 | void SetInverseBendingMomentum(Double_t inverseBendingMomentum) {fInverseBendingMomentum = inverseBendingMomentum;} | |
42 | /// return bending slope (cm ** -1) | |
43 | Double_t GetBendingSlope(void) const {return fBendingSlope;} | |
44 | /// set bending slope (cm ** -1) | |
45 | void SetBendingSlope(Double_t bendingSlope) {fBendingSlope = bendingSlope;} | |
46 | /// return non bending slope (cm ** -1) | |
47 | Double_t GetNonBendingSlope(void) const {return fNonBendingSlope;} | |
48 | /// set non bending slope (cm ** -1) | |
49 | void SetNonBendingSlope(Double_t nonBendingSlope) {fNonBendingSlope = nonBendingSlope;} | |
50 | /// return Z coordinate (cm) | |
51 | Double_t GetZ(void) const {return fZ;} | |
52 | /// set Z coordinate (cm) | |
53 | void SetZ(Double_t z) {fZ = z;} | |
54 | /// return bending coordinate (cm) | |
55 | Double_t GetBendingCoor(void) const {return fBendingCoor;} | |
56 | /// set bending coordinate (cm) | |
57 | void SetBendingCoor(Double_t bendingCoor) {fBendingCoor = bendingCoor;} | |
58 | /// return non bending coordinate (cm) | |
59 | Double_t GetNonBendingCoor(void) const {return fNonBendingCoor;} | |
60 | /// set non bending coordinate (cm) | |
61 | void SetNonBendingCoor(Double_t nonBendingCoor) {fNonBendingCoor = nonBendingCoor;} | |
62 | ||
63 | void SetTrackParam(AliMUONTrackParam& theMUONTrackParam); | |
64 | ||
65 | AliMUONHitForRec* GetHitForRecPtr(void) const; | |
66 | /// set pointeur to associated HitForRec | |
67 | void SetHitForRecPtr(AliMUONHitForRec* hitForRec) {fHitForRecPtr = hitForRec;} | |
68 | ||
69 | Double_t Px() const; // return px | |
70 | Double_t Py() const; // return py | |
71 | Double_t Pz() const; // return pz | |
72 | Double_t P() const; // return total momentum | |
73 | ||
74 | /// return kTRUE if the covariance matrix exist, kFALSE if not | |
75 | Bool_t CovariancesExist(void) {return (fCovariances) ? kTRUE : kFALSE;} | |
76 | TMatrixD* GetCovariances(void); | |
77 | void SetCovariances(TMatrixD* covariances); | |
78 | void SetCovariances(Double_t matrix[5][5]); | |
79 | void SetVariances(Double_t matrix[5][5]); | |
80 | void DeleteCovariances(void); | |
81 | ||
82 | void EvalCovariances(AliMUONHitForRec* hit2); | |
83 | ||
84 | /// necessary for sorting TClonesArray of TrackHit's | |
85 | Bool_t IsSortable () const {return kTRUE;} | |
86 | Int_t Compare(const TObject* trackParam) const; | |
87 | ||
88 | virtual void Print(Option_t* opt="") const; | |
89 | ||
90 | ||
91 | private: | |
92 | // Parameters | |
93 | Double_t fNonBendingCoor; ///< Non bending coordinate (cm) | |
94 | Double_t fNonBendingSlope; ///< Non bending slope (cm ** -1) | |
95 | Double_t fBendingCoor; ///< Bending coordinate (cm) | |
96 | Double_t fBendingSlope; ///< Bending slope (cm ** -1) | |
97 | Double_t fInverseBendingMomentum; ///< Inverse bending momentum (GeV/c ** -1) times the charge (assumed forward motion) | |
98 | Double_t fZ; ///< Z coordinate (cm) | |
99 | ||
100 | /// Covariance matrix of track parameters, ordered as follow: | |
101 | /// <X,X> <X,SlopeX> <X,Y> <X,SlopeY> <X,InvP_yz> | |
102 | /// <X,SlopeX> <SlopeX,SlopeX> <Y,SlopeX> <SlopeX,SlopeY> <SlopeX,InvP_yz> | |
103 | /// <X,Y> <Y,SlopeX> <Y,Y> <Y,SlopeY> <Y,InvP_yz> | |
104 | /// <X,SlopeY> <SlopeX,SlopeY> <Y,SlopeY> <SlopeY,SlopeY> <SlopeY,InvP_yz> | |
105 | /// <X,InvP_yz> <SlopeX,InvP_yz> <Y,InvP_yz> <SlopeY,InvP_yz> <InvP_yz,InvP_yz> | |
106 | TMatrixD *fCovariances; //! | |
107 | ||
108 | AliMUONHitForRec *fHitForRecPtr; //!< Pointer to associated HitForRec if any | |
109 | ||
110 | ClassDef(AliMUONTrackParam, 2) // Track parameters in ALICE dimuon spectrometer | |
111 | }; | |
112 | ||
113 | #endif |