10 #include "G4RunManagerKernel.hh"
11 #include "G4EventManager.hh"
13 #include "CLHEP/Units/PhysicalConstants.h"
15 #include "GaudiKernel/Bootstrap.h"
16 #include "GaudiKernel/ISvcLocator.h"
17 #include "GaudiKernel/IMessageSvc.h"
31 int PDGcode = aStep->GetTrack()->GetDefinition()->GetPDGEncoding();
34 if ( ((abs(PDGcode)/100000==41) && (PDGcode/10000000==0)) ||
35 ((
int)(abs(PDGcode)/10000000) == 1) )
41 if (aStep->GetTrack()->GetKineticEnergy() < 1.0) {
42 aStep->GetTrack()->SetTrackStatus( fStopAndKill );
43 ATH_MSG_WARNING(
"HIP " << PDGcode <<
" is being killed: kinetic energy=" <<
44 aStep->GetTrack()->GetKineticEnergy()/
CLHEP::MeV <<
"MeV");