]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FASTSIM/AliFastMuonTrackingRes.cxx
Update in cuts for Sigma* and update for lego_train macros (M.Vala)
[u/mrichter/AliRoot.git] / FASTSIM / AliFastMuonTrackingRes.cxx
index c86a4edfc5bb0ddf9b0583ee6c3a55451e130de5..c3bd5136423be03958b33745185cc812a48a2923 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*
-$Log$
-Revision 1.6  2003/11/13 14:21:57  morsch
-Coding Rule violation corrections.
-
-Revision 1.5  2003/08/13 17:37:29  hristov
-Bug fix (Alpha)
-
-Revision 1.4  2003/08/05 16:14:20  morsch
-Some problems with too big fluctuations corrected. (A. de Falco)
-
-Revision 1.1  2003/01/06 10:13:09  morsch
-First commit.
-
-*/
+/* $Id: */
 
 // Implementation of AliFastResponse for the Muon Spectrometer resolution.
 // The response depends on the charge of the muon and
@@ -45,10 +31,22 @@ ClassImp(AliFastMuonTrackingRes)
 
 
 AliFastMuonTrackingRes::AliFastMuonTrackingRes() :
-    AliFastResponse("Resolution", "Muon Tracking Resolution")
+    AliFastResponse("Resolution", "Muon Tracking Resolution"),
+    fBackground(0.),
+    fCharge(1.),
+    fFastTracking(0)
+{
+// Default constructor
+}
+
+AliFastMuonTrackingRes::AliFastMuonTrackingRes(const AliFastMuonTrackingRes & res)
+    :AliFastResponse(res),
+    fBackground(0.),
+    fCharge(1.),
+    fFastTracking(0)
 {
-// Deafault constructor
-    SetBackground();
+// Copy constructor
+    res.Copy(*this);
 }
 
 void AliFastMuonTrackingRes::Init()
@@ -131,7 +129,12 @@ void AliFastMuonTrackingRes::Evaluate(Float_t   p,  Float_t  theta , Float_t   p
     thetaS = theta + gRandom->Gaus(meantheta,sigmatheta);
 }
 
-
+AliFastMuonTrackingRes& AliFastMuonTrackingRes::operator=(const  AliFastMuonTrackingRes& rhs)
+{
+// Assignment operator
+    rhs.Copy(*this);
+    return *this;
+}