putting sampling fraction inside the hit making and updating digitization parameters
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALv1.cxx
index d0fd8e2c4f9e4f961c34acc20528ca7db867ffa8..5a9f82b699d1a1fbf21aa2d316e5c92e96fddaec 100644 (file)
@@ -149,6 +149,9 @@ void AliEMCALv1::StepManager(void){
     
     if( (depositedEnergy = gMC->Edep()) > 0.){// Track is inside a scintillator and deposits some energy
      
+      // use sampling fraction to get original energy --HG
+      depositedEnergy = depositedEnergy * geom->GetSampling();
+
       gMC->TrackPosition(pos);
       xyzte[0] = pos[0];
       xyzte[1] = pos[1];