]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FASTSIM/AliFastMuonTrackingRes.h
Flushing the buffer for debug purposes (R. Preghenella)
[u/mrichter/AliRoot.git] / FASTSIM / AliFastMuonTrackingRes.h
index 1ab02df375fb85112b221d1031c1d1e2d922a4c1..02d0641f2ca9de2b45e6fd6f6ac1b633918db1a6 100644 (file)
@@ -6,23 +6,35 @@
 /* $Id$ */
 
 // Implementation of AliFastResponse for the Muon Spectrometer resolution.
+// The response depends on the charge of the muon and
+// the background level.
+// The class uses the instance of an object of type AliMUONFastTracking to 
+// obtain the smearing parameters.
 // Author: andreas.morsch@cern.ch
-//
+
 #include "AliFastResponse.h"
 class AliMUONFastTracking;
 
 class AliFastMuonTrackingRes :  public AliFastResponse {
  public:
     AliFastMuonTrackingRes();
+    AliFastMuonTrackingRes(const AliFastMuonTrackingRes& glauber);
     virtual ~AliFastMuonTrackingRes(){;}
     void SetBackground(Float_t bg = 1.) {fBackground = bg;}
     void SetCharge(Float_t charge = 1.) {fCharge     = charge;}
     virtual void Init();
-    virtual void Evaluate(Float_t   p,  Float_t  theta , Float_t   phi,
-                         Float_t& pS,  Float_t& thetaS, Float_t&  phiS);
-    virtual Float_t Evaluate(AliFastParticle* part) {
-      return AliFastResponse::Evaluate(part);
-    }
+    void Evaluate(Float_t   p,  Float_t  theta , Float_t   phi,
+                 Float_t& pS,  Float_t& thetaS, Float_t&  phiS);
+
+    void Evaluate(Float_t /*charge*/, Float_t   p,  Float_t  theta , Float_t   phi,
+                 Float_t& pS,  Float_t& thetaS, Float_t&  phiS)
+       {Evaluate(p, theta, phi, pS, thetaS, phiS);}
+    virtual Float_t Evaluate(Float_t charge, Float_t pt, Float_t theta, Float_t phi)
+       {return AliFastResponse::Evaluate(charge, pt, theta, phi);}
+    
+    // Copy
+    AliFastMuonTrackingRes& operator=(const AliFastMuonTrackingRes & rhs);
+
  protected:
     Float_t              fBackground;   // Background level
     Float_t              fCharge;       // Current charge