]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONResponseV0.cxx
Compliance to AliSimulation framework
[u/mrichter/AliRoot.git] / MUON / AliMUONResponseV0.cxx
index 7fe479cc2cea6245b6c53eb08c2ceed9a0a9c2b6..089d2e5d752fce7cf2c4a527ca5abc3f6d348c09 100644 (file)
 
 /* $Id$ */
 
-#include "AliMUONResponseV0.h"
-#include "AliSegmentation.h"
 #include <TMath.h>
 #include <TRandom.h>
 
+#include "AliMUONResponseV0.h"
+#include "AliSegmentation.h"
 
 ClassImp(AliMUONResponseV0)
        
+//__________________________________________________________________________
+AliMUONResponseV0::AliMUONResponseV0()
+  : AliMUONResponse() 
+{
+// Default constructor
+
+  fChargeCorrel = 0;
+}
+
   //__________________________________________________________________________
 void AliMUONResponseV0::SetSqrtKx3AndDeriveKx2Kx4(Float_t SqrtKx3)
 {
@@ -101,7 +110,7 @@ Int_t  AliMUONResponseV0::DigitResponse(Int_t digit, AliMUONTransientDigit* /*wh
     Float_t meanNoise = gRandom->Gaus(1., 0.2);
     Float_t noise     = gRandom->Gaus(0., meanNoise);
     digit+=(Int_t)noise; 
-    if ( digit <= ZeroSuppression()) digit = 0.;
+    if ( digit <= ZeroSuppression()) digit = 0;
     // if ( digit >  MaxAdc())          digit=MaxAdc();
     if ( digit >  Saturation())          digit=Saturation();