]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FASTSIM/AliFastMuonTrackingAcc.cxx
Fix Coverity 24835
[u/mrichter/AliRoot.git] / FASTSIM / AliFastMuonTrackingAcc.cxx
index 5452347fc28a254b294a4327a73dd71031977785..dd5462ede07e2858d51ef76ddc8e7e3ca796fa56 100644 (file)
@@ -22,6 +22,8 @@
 // Author: Andreas Morsch
 // andreas.morsch@cern.ch 
 
+#include <TMath.h>
+
 #include "AliFastMuonTrackingAcc.h"
 #include "AliMUONFastTracking.h"
 
@@ -29,13 +31,19 @@ ClassImp(AliFastMuonTrackingAcc)
 
 
 AliFastMuonTrackingAcc::AliFastMuonTrackingAcc() :
-    AliFastResponse("Acceptance", "Muon Tracking Acceptance")
+    AliFastResponse("Acceptance", "Muon Tracking Acceptance"),
+    fBackground(1.),
+    fCharge(1.),
+    fFastTracking(0)
 {
-    SetBackground();
+    // Default Constructor
 }
 
 AliFastMuonTrackingAcc::AliFastMuonTrackingAcc(const AliFastMuonTrackingAcc & acc)
-    :AliFastResponse(acc)
+    :AliFastResponse(acc),
+     fBackground(1.),
+     fCharge(1.),
+     fFastTracking(0)
 {
 // Copy constructor
     acc.Copy(*this);
@@ -49,7 +57,7 @@ void AliFastMuonTrackingAcc::Init()
 
 
 
-Float_t AliFastMuonTrackingAcc::Evaluate(Float_t pt, Float_t theta, Float_t phi)
+Float_t AliFastMuonTrackingAcc::Evaluate(Float_t /*charge*/, Float_t pt, Float_t theta, Float_t phi)
 {
 // Evaluate the tracking acceptance for 3-vector pt, theta, phi
     Float_t p = pt / TMath::Sin(theta*TMath::Pi()/180.);