#include "AliMUONDigit.h"
#include "AliMUONGeometryTransformer.h"
#include "AliMUONHit.h"
+#include "AliMUONConstants.h"
#include "AliMpArea.h"
#include "AliMpDEManager.h"
//______________________________________________________________________________
void
-AliMUONResponseV0::DisIntegrate(const AliMUONHit& hit, TList& digits)
+AliMUONResponseV0::DisIntegrate(const AliMUONHit& hit, TList& digits, Float_t timeDif)
{
/// Go from 1 hit to a list of digits.
/// The energy deposition of that hit is first converted into charge
// Get pulse height from energy loss.
Float_t qtot = IntPH(hit.Eloss());
+ // If from a pileup event we apply a reduction factor to the charge
+ if (timeDif!=0){
+ qtot = AliMUONConstants::ReducedQTot(qtot,timeDif);
+ }
+
// Get the charge correlation between cathodes.
Float_t currentCorrel = TMath::Exp(gRandom->Gaus(0.0,ChargeCorrel()/2.0));
kFALSE);
if ( pad.IsValid() )
{
- AliWarning(Form("Got an invalid iterator bug (area.Position() is within "
+ AliDebug(1, Form("Got an invalid iterator bug (area.Position() is within "
" DE but the iterator is void) for detElemId %d cath %d",
detElemId,cath));
}
else
{
- AliError(Form("Got an invalid iterator bug for detElemId %d cath %d."
+ AliDebug(1, Form("Got an invalid iterator bug for detElemId %d cath %d."
"Might be a bad hit ? area.Position()=(%e,%e) "
"Dimensions()=(%e,%e)",
detElemId,cath,area.GetPositionX(),area.GetPositionY(),