]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONTrackParam.h
Convert fortran functions into C (Christian)
[u/mrichter/AliRoot.git] / MUON / AliMUONTrackParam.h
index 5ba7d9a40fd9b1436ef15cce9d68a256066bbd41..a20daeacad5d4f3f40252fad2fa6bcfe8b350680 100644 (file)
@@ -4,6 +4,7 @@
  * See cxx source for full Copyright notice                               */
 
 /*$Id$*/
+// Revision of includes 07/05/2004
 
 ///////////////////////////////////////////////////
 // Track parameters in ALICE dimuon spectrometer
 
 #include <TObject.h>
 
-class AliMUONTrackParam : public TObject {
+class AliMUONTrackParam : public TObject 
+{
  public:
-  AliMUONTrackParam(){
-    // Constructor
-    ;} // Constructor
-  virtual ~AliMUONTrackParam(){
-    // Destructor
-    ;} // Destructor
-
+  AliMUONTrackParam(); // Constructor
+  virtual ~AliMUONTrackParam(){} // Destructor
+  
+  AliMUONTrackParam(const AliMUONTrackParam& rhs);// copy constructor (should be added per default !)
+  AliMUONTrackParam& operator=(const  AliMUONTrackParam& rhs);// (should be added per default !)
   // Get and Set methods for data
   Double_t GetInverseBendingMomentum(void) const {return fInverseBendingMomentum;}
   void SetInverseBendingMomentum(Double_t InverseBendingMomentum) {fInverseBendingMomentum = InverseBendingMomentum;}
@@ -33,12 +33,17 @@ class AliMUONTrackParam : public TObject {
   void SetBendingCoor(Double_t BendingCoor) {fBendingCoor = BendingCoor;}
   Double_t GetNonBendingCoor(void) const {return fNonBendingCoor;}
   void SetNonBendingCoor(Double_t NonBendingCoor) {fNonBendingCoor = NonBendingCoor;}
+  Double_t Px();  // return px
+  Double_t Py();  // return py
+  Double_t Pz();  // return pz
+  Double_t P();   // 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
-  Double_t TotalMomentumEnergyLoss(Double_t thetaLimit, Double_t pTotal, Double_t theta); // returns total momentum after energy loss correction in the absorber
+  void ExtrapToVertex(Double_t xVtx, Double_t yVtx, Double_t zVtx);  // extrapolation to vertex through the absorber (with true vertex) 
+   void BransonCorrection(Double_t xVtx, Double_t yVtx, Double_t zVtx); // makes Branson correction with true vertex  
+   // 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 
 
  protected:
@@ -52,6 +57,15 @@ class AliMUONTrackParam : public TObject {
 
   void SetGeant3Parameters(Double_t *VGeant3, Double_t ForwardBackward);
   void GetFromGeant3Parameters(Double_t *VGeant3, Double_t Charge);
+  void ExtrapOneStepHelix(Double_t charge, Double_t step, 
+                         Double_t *vect, Double_t *vout);
+  void ExtrapOneStepHelix3(Double_t field, Double_t step, 
+                          Double_t *vect, Double_t *vout);
+
+  void ExtrapOneStepRungekutta(Double_t charge, Double_t step, 
+                              Double_t* vect, Double_t* vout);
+
+  void GetField(Double_t *Position, Double_t *Field);
 
   ClassDef(AliMUONTrackParam, 1) // Track parameters in ALICE dimuon spectrometer
     };