10 #include "G4RunManagerKernel.hh"
11 #include "G4EventManager.hh"
14 #include "CLHEP/Units/PhysicalConstants.h"
16 #include "GaudiKernel/Bootstrap.h"
17 #include "GaudiKernel/ISvcLocator.h"
18 #include "GaudiKernel/IMessageSvc.h"
32 int PDGcode = aStep->GetTrack()->GetDefinition()->GetPDGEncoding();
35 if (
MC::isMonopole(PDGcode) || ((
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");