Created attachment 250 [details] macro for Hadr00 Dear Hisaya, In CMS production in some conditions 80% of jobs are lost due to "time going back" exception. Exception happens when sigma- is selected as a decay on fly but PostStep the energy is zero. Simple method to reproduce the problem in $G4INSTALL/examples/extended/hadronic/Hadr00 Hadr00 pb.mac QGSP_FTFP_BERT_EMV >& pb1.out pb.mac and pb1.out are attached. Cheers, Vladimir
Created attachment 251 [details] output
Dear Vladimir, The problem comes not from the status change by AlongDoIt. G4Decay has DecayIt methods for both PostStep and AtRest DoIts. The difference of behaviours between two DoIts is treatment of secondary global time. If the primary track state is changed to 'StopButAlive' by AlongDoIt or other preceding PostStepDoIt, G4Decay misunderstands that the current DoIt is in AtRest and the global time of secondary tracks is set to incorrect values as CMS reported. I've added checking track status at the beginning of PostStepDoIt in 'decay-V10-00-00' tag. If the track is set to 'StopButAlive', G4Decay do 'Nothing' and the track will decay at the next step. I've confirmed that the G4Exception disappear. Cheers, Hisaya