]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
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 1cef2f4a5e4f1c4b55ac19d34a8e69a00dc0605f..7830a8c66c14d2fc3a6063ce5eea9904fa93ec0f 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