]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONTrackParam.h
Updating MUON code with the new class AliMUONTrackExtrap (Philippe Pillot)
[u/mrichter/AliRoot.git] / MUON / AliMUONTrackParam.h
index ba61923058aa61785d0298728a354bcf1af4672a..fb712003c7274a271caef53ecfd053849478db8e 100644 (file)
@@ -4,63 +4,87 @@
  * See cxx source for full Copyright notice                               */
 
 /*$Id$*/
+// Revision of includes 07/05/2004
 
-///////////////////////////////////////////////////
-// Track parameters in ALICE dimuon spectrometer
-///////////////////////////////////////////////////
+/// \ingroup rec
+/// \class AliMUONTrackParam
+/// \brief Track parameters in ALICE dimuon spectrometer
+///
+////////////////////////////////////////////////////
+/// Track parameters in ALICE dimuon spectrometer
+////////////////////////////////////////////////////
 
 #include <TObject.h>
+#include "AliMUONHitForRec.h"
 
-class AliMUONTrackParam : public TObject {
+class AliESDMuonTrack;
+
+class AliMUONTrackParam : public TObject 
+{
  public:
-  AliMUONTrackParam(){
-    fInverseBendingMomentum = 0;
-    fBendingSlope = 0;
-    fNonBendingSlope = 0;
-    fZ = 0;
-    fBendingCoor = 0;
-    fNonBendingCoor = 0;
-    // Constructor
-  } // Constructor
-  virtual ~AliMUONTrackParam(){} // Destructor
+  AliMUONTrackParam(); // Constructor
+  virtual ~AliMUONTrackParam(); // Destructor
   
-  AliMUONTrackParam(const AliMUONTrackParam& );// copy constructor (should be added per default !)
-  AliMUONTrackParam& operator=(const  AliMUONTrackParam& );// (should be added per default !)
+  AliMUONTrackParam(const AliMUONTrackParam& theMUONTrackParam);
+  AliMUONTrackParam& operator=(const  AliMUONTrackParam& theMUONTrackParam);
+
+  void GetParamFrom(const AliESDMuonTrack& esdMuonTrack);
+  void SetParamFor(AliESDMuonTrack& esdMuonTrack);
+
   // Get and Set methods for data
+       /// return inverse bending momentum (GeV/c ** -1) times the charge (assumed forward motion)
   Double_t GetInverseBendingMomentum(void) const {return fInverseBendingMomentum;}
-  void SetInverseBendingMomentum(Double_t InverseBendingMomentum) {fInverseBendingMomentum = InverseBendingMomentum;}
+       /// set inverse bending momentum (GeV/c ** -1) times the charge (assumed forward motion)
+  void     SetInverseBendingMomentum(Double_t InverseBendingMomentum) {fInverseBendingMomentum = InverseBendingMomentum;}
+       /// return bending slope (cm ** -1)
   Double_t GetBendingSlope(void) const {return fBendingSlope;}
-  void SetBendingSlope(Double_t BendingSlope) {fBendingSlope = BendingSlope;}
+       /// set bending slope (cm ** -1)
+  void     SetBendingSlope(Double_t BendingSlope) {fBendingSlope = BendingSlope;}
+       /// return non bending slope (cm ** -1)
   Double_t GetNonBendingSlope(void) const {return fNonBendingSlope;}
-  void SetNonBendingSlope(Double_t NonBendingSlope) {fNonBendingSlope = NonBendingSlope;}
+       /// set non bending slope (cm ** -1)
+  void     SetNonBendingSlope(Double_t NonBendingSlope) {fNonBendingSlope = NonBendingSlope;}
+       /// return Z coordinate (cm)
   Double_t GetZ(void) const {return fZ;}
-  void SetZ(Double_t Z) {fZ = Z;}
+       /// set Z coordinate (cm)
+  void     SetZ(Double_t Z) {fZ = Z;}
+       /// return bending coordinate (cm)
   Double_t GetBendingCoor(void) const {return fBendingCoor;}
-  void SetBendingCoor(Double_t BendingCoor) {fBendingCoor = BendingCoor;}
+       /// set bending coordinate (cm)
+  void     SetBendingCoor(Double_t BendingCoor) {fBendingCoor = BendingCoor;}
+       /// return non bending coordinate (cm)
   Double_t GetNonBendingCoor(void) const {return fNonBendingCoor;}
-  void SetNonBendingCoor(Double_t NonBendingCoor) {fNonBendingCoor = NonBendingCoor;}
+       /// set non bending coordinate (cm)
+  void     SetNonBendingCoor(Double_t NonBendingCoor) {fNonBendingCoor = NonBendingCoor;}
+  void              SetTrackParam(AliMUONTrackParam& TrackParam);
+  AliMUONHitForRec* GetHitForRecPtr(void) const;
+       /// set pointeur to associated HitForRec if any
+  void              SetHitForRecPtr(AliMUONHitForRec* HitForRec) {fHitForRecPtr = HitForRec;}
+  
+  Double_t Px() const;  // return px
+  Double_t Py() const;  // return py
+  Double_t Pz() const;  // return pz
+  Double_t P()  const;  // return total momentum
 
-  void ExtrapToZ(Double_t Z);
-  void ExtrapToStation(Int_t Station, AliMUONTrackParam *TrackParam);
-  void ExtrapToVertex();  // extrapolation to vertex through the absorber
-  void BransonCorrection(); // makes Branson correction
-  // returns total momentum after energy loss correction in the absorber
-  Double_t TotalMomentumEnergyLoss(Double_t thetaLimit, Double_t pTotal, Double_t theta);
-  void FieldCorrection(Double_t Z); // makes simple magnetic field correction through the absorber 
+       /// necessary for sorting TClonesArray of TrackHit's
+  Bool_t IsSortable () const {return kTRUE;}
+       /// "Compare" function for sorting
+  Int_t Compare(const TObject* TrackParam) const;
 
- protected:
- private:
-  Double_t fInverseBendingMomentum; // Inverse bending momentum (GeV/c ** -1) times the charge (assumed forward motion)
-  Double_t fBendingSlope; // Bending slope (cm ** -1)
-  Double_t fNonBendingSlope; // Non bending slope (cm ** -1)
-  Double_t fZ; // Z coordinate (cm)
-  Double_t fBendingCoor; // bending coordinate (cm)
-  Double_t fNonBendingCoor; // non bending coordinate (cm)
+  virtual void Print(Option_t* opt="") const;
 
-  void SetGeant3Parameters(Double_t *VGeant3, Double_t ForwardBackward);
-  void GetFromGeant3Parameters(Double_t *VGeant3, Double_t Charge);
+ private:
+  Double_t fInverseBendingMomentum; ///< Inverse bending momentum (GeV/c ** -1) times the charge (assumed forward motion)
+  Double_t fBendingSlope; ///< Bending slope (cm ** -1)
+  Double_t fNonBendingSlope; ///< Non bending slope (cm ** -1)
+  Double_t fZ; ///< Z coordinate (cm)
+  Double_t fBendingCoor; ///< bending coordinate (cm)
+  Double_t fNonBendingCoor; ///< non bending coordinate (cm)
 
-  ClassDef(AliMUONTrackParam, 1) // Track parameters in ALICE dimuon spectrometer
-    };
+  AliMUONHitForRec *fHitForRecPtr; //!< Pointer to associated HitForRec if any
+  
+  ClassDef(AliMUONTrackParam, 2) // Track parameters in ALICE dimuon spectrometer
+};
        
 #endif