Change needed for G4
authorgvolpe <giacomo.volpe@cern.ch>
Tue, 17 Feb 2015 11:53:08 +0000 (12:53 +0100)
committergvolpe <giacomo.volpe@cern.ch>
Tue, 17 Feb 2015 11:53:08 +0000 (12:53 +0100)
HMPID/HMPIDsim/AliHMPIDv3.cxx

index 1cef2f4..7830a8c 100644 (file)
@@ -929,6 +929,7 @@ void AliHMPIDv3::StepManager()
       if(eloss>0) {
         new((*fHits)[fNhits++])AliHMPIDHit(idch,eloss,pid,tid,xl,yl,hitTime,out);                           //HIT for MIP, position near anod plane, eloss will be set to Q 
         if(fDoFeed) GenFee(eloss);                                                                  //generate feedback photons 
+        eloss=0;
       }
     }else                                                                                         //just going inside
       eloss          += TVirtualMC::GetMC()->Edep();                                                              //collect this step eloss