X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=FASTSIM%2FAliFastMuonTrackingRes.h;h=02d0641f2ca9de2b45e6fd6f6ac1b633918db1a6;hb=48f8adf3d97f67b488b48bbcb9e8884db9bd2e45;hp=1ab02df375fb85112b221d1031c1d1e2d922a4c1;hpb=15a060e49a4a2303292f2a574245b4a8ecbb9e5f;p=u%2Fmrichter%2FAliRoot.git diff --git a/FASTSIM/AliFastMuonTrackingRes.h b/FASTSIM/AliFastMuonTrackingRes.h index 1ab02df375f..02d0641f2ca 100644 --- a/FASTSIM/AliFastMuonTrackingRes.h +++ b/FASTSIM/AliFastMuonTrackingRes.h @@ -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