]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONTrackParam.h
Extracting the BLOCK DATA in a separate file. Changes to make it working on macosx
[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>
de2cd600 18#include "AliMUONHitForRec.h"
a9e2aefa 19
211c52eb 20class AliESDMuonTrack;
21
30178c30 22class AliMUONTrackParam : public TObject
23{
a9e2aefa 24 public:
30178c30 25 AliMUONTrackParam(); // Constructor
de2cd600 26 virtual ~AliMUONTrackParam(); // Destructor
61adb9bd 27
de2cd600 28 AliMUONTrackParam(const AliMUONTrackParam& theMUONTrackParam);
29 AliMUONTrackParam& operator=(const AliMUONTrackParam& theMUONTrackParam);
211c52eb 30
31 void GetParamFrom(const AliESDMuonTrack& esdMuonTrack);
32 void SetParamFor(AliESDMuonTrack& esdMuonTrack);
33
a9e2aefa 34 // Get and Set methods for data
2457f726 35 /// return inverse bending momentum (GeV/c ** -1) times the charge (assumed forward motion)
3831f268 36 Double_t GetInverseBendingMomentum(void) const {return fInverseBendingMomentum;}
2457f726 37 /// set inverse bending momentum (GeV/c ** -1) times the charge (assumed forward motion)
6464217e 38 void SetInverseBendingMomentum(Double_t InverseBendingMomentum) {fInverseBendingMomentum = InverseBendingMomentum;}
2457f726 39 /// return bending slope (cm ** -1)
3831f268 40 Double_t GetBendingSlope(void) const {return fBendingSlope;}
2457f726 41 /// set bending slope (cm ** -1)
6464217e 42 void SetBendingSlope(Double_t BendingSlope) {fBendingSlope = BendingSlope;}
2457f726 43 /// return non bending slope (cm ** -1)
3831f268 44 Double_t GetNonBendingSlope(void) const {return fNonBendingSlope;}
2457f726 45 /// set non bending slope (cm ** -1)
6464217e 46 void SetNonBendingSlope(Double_t NonBendingSlope) {fNonBendingSlope = NonBendingSlope;}
2457f726 47 /// return Z coordinate (cm)
3831f268 48 Double_t GetZ(void) const {return fZ;}
2457f726 49 /// set Z coordinate (cm)
6464217e 50 void SetZ(Double_t Z) {fZ = Z;}
2457f726 51 /// return bending coordinate (cm)
3831f268 52 Double_t GetBendingCoor(void) const {return fBendingCoor;}
2457f726 53 /// set bending coordinate (cm)
6464217e 54 void SetBendingCoor(Double_t BendingCoor) {fBendingCoor = BendingCoor;}
2457f726 55 /// return non bending coordinate (cm)
3831f268 56 Double_t GetNonBendingCoor(void) const {return fNonBendingCoor;}
2457f726 57 /// set non bending coordinate (cm)
6464217e 58 void SetNonBendingCoor(Double_t NonBendingCoor) {fNonBendingCoor = NonBendingCoor;}
de2cd600 59 void SetTrackParam(AliMUONTrackParam& TrackParam);
60 AliMUONHitForRec* GetHitForRecPtr(void) const;
2457f726 61 /// set pointeur to associated HitForRec if any
de2cd600 62 void SetHitForRecPtr(AliMUONHitForRec* HitForRec) {fHitForRecPtr = HitForRec;}
63
6464217e 64 Double_t Px() const; // return px
65 Double_t Py() const; // return py
66 Double_t Pz() const; // return pz
67 Double_t P() const; // return total momentum
a9e2aefa 68
2457f726 69 /// necessary for sorting TClonesArray of TrackHit's
70 Bool_t IsSortable () const {return kTRUE;}
71 /// "Compare" function for sorting
72 Int_t Compare(const TObject* TrackParam) const;
de2cd600 73
1a38e749 74 virtual void Print(Option_t* opt="") const;
75
1a38e749 76
a9e2aefa 77 private:
829425a5 78 Double_t fInverseBendingMomentum; ///< Inverse bending momentum (GeV/c ** -1) times the charge (assumed forward motion)
79 Double_t fBendingSlope; ///< Bending slope (cm ** -1)
80 Double_t fNonBendingSlope; ///< Non bending slope (cm ** -1)
81 Double_t fZ; ///< Z coordinate (cm)
82 Double_t fBendingCoor; ///< bending coordinate (cm)
83 Double_t fNonBendingCoor; ///< non bending coordinate (cm)
a9e2aefa 84
de2cd600 85 AliMUONHitForRec *fHitForRecPtr; //!< Pointer to associated HitForRec if any
86
87 ClassDef(AliMUONTrackParam, 2) // Track parameters in ALICE dimuon spectrometer
37827b29 88};
a9e2aefa 89
90#endif