]>
Commit | Line | Data |
---|---|---|
a9e2aefa | 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$*/ | |
30178c30 | 7 | // Revision of includes 07/05/2004 |
a9e2aefa | 8 | |
692de412 | 9 | /// \ingroup rec |
10 | /// \class AliMUONTrackParam | |
11 | /// \brief Track parameters in ALICE dimuon spectrometer | |
12 | /// | |
13 | //////////////////////////////////////////////////// | |
14 | /// Track parameters in ALICE dimuon spectrometer | |
15 | //////////////////////////////////////////////////// | |
a9e2aefa | 16 | |
3831f268 | 17 | #include <TObject.h> |
de2cd600 | 18 | #include "AliMUONHitForRec.h" |
a9e2aefa | 19 | |
211c52eb | 20 | class AliESDMuonTrack; |
1a38e749 | 21 | class AliMagF; |
211c52eb | 22 | |
30178c30 | 23 | class AliMUONTrackParam : public TObject |
24 | { | |
a9e2aefa | 25 | public: |
30178c30 | 26 | AliMUONTrackParam(); // Constructor |
de2cd600 | 27 | virtual ~AliMUONTrackParam(); // Destructor |
61adb9bd | 28 | |
de2cd600 | 29 | AliMUONTrackParam(const AliMUONTrackParam& theMUONTrackParam); |
30 | AliMUONTrackParam& operator=(const AliMUONTrackParam& theMUONTrackParam); | |
211c52eb | 31 | |
32 | void GetParamFrom(const AliESDMuonTrack& esdMuonTrack); | |
33 | void SetParamFor(AliESDMuonTrack& esdMuonTrack); | |
34 | ||
35 | ||
a9e2aefa | 36 | // Get and Set methods for data |
3831f268 | 37 | Double_t GetInverseBendingMomentum(void) const {return fInverseBendingMomentum;} |
6464217e | 38 | void SetInverseBendingMomentum(Double_t InverseBendingMomentum) {fInverseBendingMomentum = InverseBendingMomentum;} |
3831f268 | 39 | Double_t GetBendingSlope(void) const {return fBendingSlope;} |
6464217e | 40 | void SetBendingSlope(Double_t BendingSlope) {fBendingSlope = BendingSlope;} |
3831f268 | 41 | Double_t GetNonBendingSlope(void) const {return fNonBendingSlope;} |
6464217e | 42 | void SetNonBendingSlope(Double_t NonBendingSlope) {fNonBendingSlope = NonBendingSlope;} |
3831f268 | 43 | Double_t GetZ(void) const {return fZ;} |
6464217e | 44 | void SetZ(Double_t Z) {fZ = Z;} |
3831f268 | 45 | Double_t GetBendingCoor(void) const {return fBendingCoor;} |
6464217e | 46 | void SetBendingCoor(Double_t BendingCoor) {fBendingCoor = BendingCoor;} |
3831f268 | 47 | Double_t GetNonBendingCoor(void) const {return fNonBendingCoor;} |
6464217e | 48 | void SetNonBendingCoor(Double_t NonBendingCoor) {fNonBendingCoor = NonBendingCoor;} |
de2cd600 | 49 | void SetTrackParam(AliMUONTrackParam& TrackParam); |
50 | AliMUONHitForRec* GetHitForRecPtr(void) const; | |
51 | void SetHitForRecPtr(AliMUONHitForRec* HitForRec) {fHitForRecPtr = HitForRec;} | |
52 | ||
6464217e | 53 | Double_t Px() const; // return px |
54 | Double_t Py() const; // return py | |
55 | Double_t Pz() const; // return pz | |
56 | Double_t P() const; // return total momentum | |
a9e2aefa | 57 | |
de2cd600 | 58 | Bool_t IsSortable () const {return kTRUE;} // necessary for sorting TClonesArray of TrackHit's |
59 | Int_t Compare(const TObject* TrackParam) const; // "Compare" function for sorting | |
60 | ||
a9e2aefa | 61 | void ExtrapToZ(Double_t Z); |
62 | void ExtrapToStation(Int_t Station, AliMUONTrackParam *TrackParam); | |
889a0215 | 63 | void ExtrapToVertex(Double_t xVtx, Double_t yVtx, Double_t zVtx); // extrapolation to vertex through the absorber (with true vertex) |
64 | void BransonCorrection(Double_t xVtx, Double_t yVtx, Double_t zVtx); // makes Branson correction with true vertex | |
65 | // returns total momentum after energy loss correction in the absorber | |
61adb9bd | 66 | Double_t TotalMomentumEnergyLoss(Double_t thetaLimit, Double_t pTotal, Double_t theta); |
b45fd22b | 67 | void FieldCorrection(Double_t Z); // makes simple magnetic field correction through the absorber |
a9e2aefa | 68 | |
f161a467 | 69 | void ExtrapOneStepHelix(Double_t charge, Double_t step, |
70 | Double_t *vect, Double_t *vout) const; | |
71 | void ExtrapOneStepHelix3(Double_t field, Double_t step, | |
72 | Double_t *vect, Double_t *vout) const; | |
73 | ||
74 | void ExtrapOneStepRungekutta(Double_t charge, Double_t step, | |
75 | Double_t* vect, Double_t* vout) const; | |
6464217e | 76 | |
1a38e749 | 77 | virtual void Print(Option_t* opt="") const; |
78 | ||
79 | void SetField(const AliMagF* magField) {fkField = magField;} | |
80 | ||
6464217e | 81 | |
a9e2aefa | 82 | protected: |
83 | private: | |
829425a5 | 84 | Double_t fInverseBendingMomentum; ///< Inverse bending momentum (GeV/c ** -1) times the charge (assumed forward motion) |
85 | Double_t fBendingSlope; ///< Bending slope (cm ** -1) | |
86 | Double_t fNonBendingSlope; ///< Non bending slope (cm ** -1) | |
87 | Double_t fZ; ///< Z coordinate (cm) | |
88 | Double_t fBendingCoor; ///< bending coordinate (cm) | |
89 | Double_t fNonBendingCoor; ///< non bending coordinate (cm) | |
a9e2aefa | 90 | |
1a38e749 | 91 | const AliMagF* fkField; //!< field map |
92 | ||
a9e2aefa | 93 | void SetGeant3Parameters(Double_t *VGeant3, Double_t ForwardBackward); |
94 | void GetFromGeant3Parameters(Double_t *VGeant3, Double_t Charge); | |
4d03a78e | 95 | |
f161a467 | 96 | void GetField(Double_t *Position, Double_t *Field) const; |
de2cd600 | 97 | |
98 | AliMUONHitForRec *fHitForRecPtr; //!< Pointer to associated HitForRec if any | |
99 | ||
100 | ClassDef(AliMUONTrackParam, 2) // Track parameters in ALICE dimuon spectrometer | |
a9e2aefa | 101 | }; |
102 | ||
103 | #endif |