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