Adding missing include
[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);
22ccc301 34 void GetParamFromUncorrected(const AliESDMuonTrack& esdMuonTrack);
35 void SetParamForUncorrected(AliESDMuonTrack& esdMuonTrack);
211c52eb 36
a9e2aefa 37 // Get and Set methods for data
2457f726 38 /// return inverse bending momentum (GeV/c ** -1) times the charge (assumed forward motion)
3831f268 39 Double_t GetInverseBendingMomentum(void) const {return fInverseBendingMomentum;}
2457f726 40 /// set inverse bending momentum (GeV/c ** -1) times the charge (assumed forward motion)
208f139e 41 void SetInverseBendingMomentum(Double_t inverseBendingMomentum) {fInverseBendingMomentum = inverseBendingMomentum;}
2457f726 42 /// return bending slope (cm ** -1)
3831f268 43 Double_t GetBendingSlope(void) const {return fBendingSlope;}
2457f726 44 /// set bending slope (cm ** -1)
208f139e 45 void SetBendingSlope(Double_t bendingSlope) {fBendingSlope = bendingSlope;}
2457f726 46 /// return non bending slope (cm ** -1)
3831f268 47 Double_t GetNonBendingSlope(void) const {return fNonBendingSlope;}
2457f726 48 /// set non bending slope (cm ** -1)
208f139e 49 void SetNonBendingSlope(Double_t nonBendingSlope) {fNonBendingSlope = nonBendingSlope;}
2457f726 50 /// return Z coordinate (cm)
3831f268 51 Double_t GetZ(void) const {return fZ;}
2457f726 52 /// set Z coordinate (cm)
208f139e 53 void SetZ(Double_t z) {fZ = z;}
2457f726 54 /// return bending coordinate (cm)
3831f268 55 Double_t GetBendingCoor(void) const {return fBendingCoor;}
2457f726 56 /// set bending coordinate (cm)
208f139e 57 void SetBendingCoor(Double_t bendingCoor) {fBendingCoor = bendingCoor;}
2457f726 58 /// return non bending coordinate (cm)
3831f268 59 Double_t GetNonBendingCoor(void) const {return fNonBendingCoor;}
2457f726 60 /// set non bending coordinate (cm)
208f139e 61 void SetNonBendingCoor(Double_t nonBendingCoor) {fNonBendingCoor = nonBendingCoor;}
62
63 void SetTrackParam(AliMUONTrackParam& theMUONTrackParam);
64
de2cd600 65 AliMUONHitForRec* GetHitForRecPtr(void) const;
847cbaef 66 /// set pointeur to associated HitForRec
67 void SetHitForRecPtr(AliMUONHitForRec* hitForRec) {fHitForRecPtr = hitForRec;}
de2cd600 68
6464217e 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
a9e2aefa 73
208f139e 74 /// return kTRUE if the covariance matrix exist, kFALSE if not
75 Bool_t CovariancesExist(void) {return (fCovariances) ? kTRUE : kFALSE;}
686772dc 76 TMatrixD* GetCovariances(void) const;
208f139e 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
2457f726 84 /// necessary for sorting TClonesArray of TrackHit's
85 Bool_t IsSortable () const {return kTRUE;}
208f139e 86 Int_t Compare(const TObject* trackParam) const;
de2cd600 87
1a38e749 88 virtual void Print(Option_t* opt="") const;
89
686772dc 90 virtual void Clear(Option_t* opt="");
1a38e749 91
a9e2aefa 92 private:
208f139e 93 // Parameters
94 Double_t fNonBendingCoor; ///< Non bending coordinate (cm)
829425a5 95 Double_t fNonBendingSlope; ///< Non bending slope (cm ** -1)
208f139e 96 Double_t fBendingCoor; ///< Bending coordinate (cm)
97 Double_t fBendingSlope; ///< Bending slope (cm ** -1)
98 Double_t fInverseBendingMomentum; ///< Inverse bending momentum (GeV/c ** -1) times the charge (assumed forward motion)
829425a5 99 Double_t fZ; ///< Z coordinate (cm)
208f139e 100
b58638a9 101 /// Covariance matrix of track parameters, ordered as follow: <pre>
208f139e 102 /// <X,X> <X,SlopeX> <X,Y> <X,SlopeY> <X,InvP_yz>
103 /// <X,SlopeX> <SlopeX,SlopeX> <Y,SlopeX> <SlopeX,SlopeY> <SlopeX,InvP_yz>
104 /// <X,Y> <Y,SlopeX> <Y,Y> <Y,SlopeY> <Y,InvP_yz>
105 /// <X,SlopeY> <SlopeX,SlopeY> <Y,SlopeY> <SlopeY,SlopeY> <SlopeY,InvP_yz>
b58638a9 106 /// <X,InvP_yz> <SlopeX,InvP_yz> <Y,InvP_yz> <SlopeY,InvP_yz> <InvP_yz,InvP_yz> </pre>
686772dc 107 mutable TMatrixD *fCovariances; ///< \brief Covariance matrix of track parameters
208f139e 108
de2cd600 109 AliMUONHitForRec *fHitForRecPtr; //!< Pointer to associated HitForRec if any
110
b58638a9 111 ClassDef(AliMUONTrackParam, 3) // Track parameters in ALICE dimuon spectrometer
37827b29 112};
a9e2aefa 113
114#endif