]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FASTSIM/AliFastMuonTrackingRes.h
Coverity fix
[u/mrichter/AliRoot.git] / FASTSIM / AliFastMuonTrackingRes.h
index be190c499dfabed90eefeec331cbd072f395ed7c..02d0641f2ca9de2b45e6fd6f6ac1b633918db1a6 100644 (file)
@@ -1,22 +1,40 @@
-#ifndef ALIFASTMUONTRACKINGRES
-#define ALIFASTMUONTRACKINGRES
+#ifndef ALIFASTMUONTRACKINGRES_H
+#define ALIFASTMUONTRACKINGRES_H
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
 /* $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(){;}
+    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);
+    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