]>
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> |
a9e2aefa | 18 | |
211c52eb | 19 | class AliESDMuonTrack; |
20 | ||
30178c30 | 21 | class AliMUONTrackParam : public TObject |
22 | { | |
a9e2aefa | 23 | public: |
30178c30 | 24 | AliMUONTrackParam(); // Constructor |
d837040f | 25 | virtual ~AliMUONTrackParam(){} // Destructor |
61adb9bd | 26 | |
d694b6f6 | 27 | AliMUONTrackParam(const AliMUONTrackParam& rhs);// copy constructor (should be added per default !) |
28 | AliMUONTrackParam& operator=(const AliMUONTrackParam& rhs);// (should be added per default !) | |
211c52eb | 29 | |
30 | void GetParamFrom(const AliESDMuonTrack& esdMuonTrack); | |
31 | void SetParamFor(AliESDMuonTrack& esdMuonTrack); | |
32 | ||
33 | ||
a9e2aefa | 34 | // Get and Set methods for data |
3831f268 | 35 | Double_t GetInverseBendingMomentum(void) const {return fInverseBendingMomentum;} |
6464217e | 36 | void SetInverseBendingMomentum(Double_t InverseBendingMomentum) {fInverseBendingMomentum = InverseBendingMomentum;} |
3831f268 | 37 | Double_t GetBendingSlope(void) const {return fBendingSlope;} |
6464217e | 38 | void SetBendingSlope(Double_t BendingSlope) {fBendingSlope = BendingSlope;} |
3831f268 | 39 | Double_t GetNonBendingSlope(void) const {return fNonBendingSlope;} |
6464217e | 40 | void SetNonBendingSlope(Double_t NonBendingSlope) {fNonBendingSlope = NonBendingSlope;} |
3831f268 | 41 | Double_t GetZ(void) const {return fZ;} |
6464217e | 42 | void SetZ(Double_t Z) {fZ = Z;} |
3831f268 | 43 | Double_t GetBendingCoor(void) const {return fBendingCoor;} |
6464217e | 44 | void SetBendingCoor(Double_t BendingCoor) {fBendingCoor = BendingCoor;} |
3831f268 | 45 | Double_t GetNonBendingCoor(void) const {return fNonBendingCoor;} |
6464217e | 46 | void SetNonBendingCoor(Double_t NonBendingCoor) {fNonBendingCoor = NonBendingCoor;} |
47 | Double_t Px() const; // return px | |
48 | Double_t Py() const; // return py | |
49 | Double_t Pz() const; // return pz | |
50 | Double_t P() const; // return total momentum | |
a9e2aefa | 51 | |
52 | void ExtrapToZ(Double_t Z); | |
53 | void ExtrapToStation(Int_t Station, AliMUONTrackParam *TrackParam); | |
889a0215 | 54 | void ExtrapToVertex(Double_t xVtx, Double_t yVtx, Double_t zVtx); // extrapolation to vertex through the absorber (with true vertex) |
55 | void BransonCorrection(Double_t xVtx, Double_t yVtx, Double_t zVtx); // makes Branson correction with true vertex | |
56 | // returns total momentum after energy loss correction in the absorber | |
61adb9bd | 57 | Double_t TotalMomentumEnergyLoss(Double_t thetaLimit, Double_t pTotal, Double_t theta); |
b45fd22b | 58 | void FieldCorrection(Double_t Z); // makes simple magnetic field correction through the absorber |
a9e2aefa | 59 | |
f161a467 | 60 | void ExtrapOneStepHelix(Double_t charge, Double_t step, |
61 | Double_t *vect, Double_t *vout) const; | |
62 | void ExtrapOneStepHelix3(Double_t field, Double_t step, | |
63 | Double_t *vect, Double_t *vout) const; | |
64 | ||
65 | void ExtrapOneStepRungekutta(Double_t charge, Double_t step, | |
66 | Double_t* vect, Double_t* vout) const; | |
6464217e | 67 | |
68 | ||
69 | virtual void Print(Option_t* opt="") const; | |
70 | ||
a9e2aefa | 71 | protected: |
72 | private: | |
829425a5 | 73 | Double_t fInverseBendingMomentum; ///< Inverse bending momentum (GeV/c ** -1) times the charge (assumed forward motion) |
74 | Double_t fBendingSlope; ///< Bending slope (cm ** -1) | |
75 | Double_t fNonBendingSlope; ///< Non bending slope (cm ** -1) | |
76 | Double_t fZ; ///< Z coordinate (cm) | |
77 | Double_t fBendingCoor; ///< bending coordinate (cm) | |
78 | Double_t fNonBendingCoor; ///< non bending coordinate (cm) | |
a9e2aefa | 79 | |
80 | void SetGeant3Parameters(Double_t *VGeant3, Double_t ForwardBackward); | |
81 | void GetFromGeant3Parameters(Double_t *VGeant3, Double_t Charge); | |
4d03a78e | 82 | |
f161a467 | 83 | void GetField(Double_t *Position, Double_t *Field) const; |
a9e2aefa | 84 | |
044d512b | 85 | ClassDef(AliMUONTrackParam, 1) // Track parameters in ALICE dimuon spectrometer |
a9e2aefa | 86 | }; |
87 | ||
88 | #endif |