]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONTrackParam.h
Optional geometry without CPV
[u/mrichter/AliRoot.git] / MUON / AliMUONTrackParam.h
CommitLineData
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>
208f139e 18#include <TMatrixDfwd.h>
de2cd600 19#include "AliMUONHitForRec.h"
a9e2aefa 20
211c52eb 21class AliESDMuonTrack;
22
30178c30 23class 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
a9e2aefa 35 // Get and Set methods for data
2457f726 36 /// return inverse bending momentum (GeV/c ** -1) times the charge (assumed forward motion)
3831f268 37 Double_t GetInverseBendingMomentum(void) const {return fInverseBendingMomentum;}
2457f726 38 /// set inverse bending momentum (GeV/c ** -1) times the charge (assumed forward motion)
208f139e 39 void SetInverseBendingMomentum(Double_t inverseBendingMomentum) {fInverseBendingMomentum = inverseBendingMomentum;}
2457f726 40 /// return bending slope (cm ** -1)
3831f268 41 Double_t GetBendingSlope(void) const {return fBendingSlope;}
2457f726 42 /// set bending slope (cm ** -1)
208f139e 43 void SetBendingSlope(Double_t bendingSlope) {fBendingSlope = bendingSlope;}
2457f726 44 /// return non bending slope (cm ** -1)
3831f268 45 Double_t GetNonBendingSlope(void) const {return fNonBendingSlope;}
2457f726 46 /// set non bending slope (cm ** -1)
208f139e 47 void SetNonBendingSlope(Double_t nonBendingSlope) {fNonBendingSlope = nonBendingSlope;}
2457f726 48 /// return Z coordinate (cm)
3831f268 49 Double_t GetZ(void) const {return fZ;}
2457f726 50 /// set Z coordinate (cm)
208f139e 51 void SetZ(Double_t z) {fZ = z;}
2457f726 52 /// return bending coordinate (cm)
3831f268 53 Double_t GetBendingCoor(void) const {return fBendingCoor;}
2457f726 54 /// set bending coordinate (cm)
208f139e 55 void SetBendingCoor(Double_t bendingCoor) {fBendingCoor = bendingCoor;}
2457f726 56 /// return non bending coordinate (cm)
3831f268 57 Double_t GetNonBendingCoor(void) const {return fNonBendingCoor;}
2457f726 58 /// set non bending coordinate (cm)
208f139e 59 void SetNonBendingCoor(Double_t nonBendingCoor) {fNonBendingCoor = nonBendingCoor;}
60
61 void SetTrackParam(AliMUONTrackParam& theMUONTrackParam);
62
de2cd600 63 AliMUONHitForRec* GetHitForRecPtr(void) const;
208f139e 64 void SetHitForRecPtr(AliMUONHitForRec* hitForRec);
de2cd600 65
6464217e 66 Double_t Px() const; // return px
67 Double_t Py() const; // return py
68 Double_t Pz() const; // return pz
69 Double_t P() const; // return total momentum
a9e2aefa 70
208f139e 71 /// return kTRUE if the covariance matrix exist, kFALSE if not
72 Bool_t CovariancesExist(void) {return (fCovariances) ? kTRUE : kFALSE;}
73 TMatrixD* GetCovariances(void);
74 void SetCovariances(TMatrixD* covariances);
75 void SetCovariances(Double_t matrix[5][5]);
76 void SetVariances(Double_t matrix[5][5]);
77 void DeleteCovariances(void);
78
79 void EvalCovariances(AliMUONHitForRec* hit2);
80
2457f726 81 /// necessary for sorting TClonesArray of TrackHit's
82 Bool_t IsSortable () const {return kTRUE;}
208f139e 83 Int_t Compare(const TObject* trackParam) const;
de2cd600 84
1a38e749 85 virtual void Print(Option_t* opt="") const;
86
1a38e749 87
a9e2aefa 88 private:
208f139e 89 // Parameters
90 Double_t fNonBendingCoor; ///< Non bending coordinate (cm)
829425a5 91 Double_t fNonBendingSlope; ///< Non bending slope (cm ** -1)
208f139e 92 Double_t fBendingCoor; ///< Bending coordinate (cm)
93 Double_t fBendingSlope; ///< Bending slope (cm ** -1)
94 Double_t fInverseBendingMomentum; ///< Inverse bending momentum (GeV/c ** -1) times the charge (assumed forward motion)
829425a5 95 Double_t fZ; ///< Z coordinate (cm)
208f139e 96
97 /// Covariance matrix of track parameters, ordered as follow:
98 /// <X,X> <X,SlopeX> <X,Y> <X,SlopeY> <X,InvP_yz>
99 /// <X,SlopeX> <SlopeX,SlopeX> <Y,SlopeX> <SlopeX,SlopeY> <SlopeX,InvP_yz>
100 /// <X,Y> <Y,SlopeX> <Y,Y> <Y,SlopeY> <Y,InvP_yz>
101 /// <X,SlopeY> <SlopeX,SlopeY> <Y,SlopeY> <SlopeY,SlopeY> <SlopeY,InvP_yz>
102 /// <X,InvP_yz> <SlopeX,InvP_yz> <Y,InvP_yz> <SlopeY,InvP_yz> <InvP_yz,InvP_yz>
103 TMatrixD *fCovariances; //!
104
de2cd600 105 AliMUONHitForRec *fHitForRecPtr; //!< Pointer to associated HitForRec if any
106
107 ClassDef(AliMUONTrackParam, 2) // Track parameters in ALICE dimuon spectrometer
37827b29 108};
a9e2aefa 109
110#endif