9 #include "G4RunManagerKernel.hh"
10 #include "G4EventManager.hh"
27 int PDGcode=aStep->GetTrack()->GetDefinition()->GetPDGEncoding();
30 if(abs(PDGcode)>4000000 && abs(PDGcode)<90000000)
33 if(!
m_HIPacc && aStep->GetTrack()->GetVolume()->GetName()==
"Total LAR Volume")
36 ATH_MSG_INFO(
"HIPLArVolumeAccept: a particle with PDG code "
38 <<
" entered the volume "
39 <<aStep->GetTrack()->GetVolume()->GetName());
42 if(!
m_HIPacc && aStep->GetTrack()->GetVolume()->GetName()==
"LArEndcapPos")
45 ATH_MSG_INFO(
"HIPLArVolumeAccept: a particle with PDG code "
47 <<
" entered the volume "
48 <<aStep->GetTrack()->GetVolume()->GetName());
66 G4RunManagerKernel *rmk = G4RunManagerKernel::GetRunManagerKernel();
67 rmk->GetEventManager()->AbortCurrentEvent();
68 rmk->GetEventManager()->GetNonconstCurrentEvent()->SetEventAborted();
70 ATH_MSG_INFO(
"HIPLArVolumeAccept: no HIP reach the LAr detector volumes. Event aborted.");