3 #include <Geant4/G4TrackStatus.hh>
14 if (trackstatus.empty())
16 std::cout <<
"filling trackstatus map" << std::endl;
17 trackstatus[fAlive] =
"fAlive";
18 trackstatus[fStopButAlive] =
"fStopButAlive";
19 trackstatus[fStopAndKill] =
"fStopAndKill";
20 trackstatus[fKillTrackAndSecondaries] =
"fKillTrackAndSecondaries";
21 trackstatus[fSuspend] =
"fSuspend";
22 trackstatus[fPostponeToNextEvent] =
"fPostponeToNextEvent";
24 if (trackstatus.find(istatus) == trackstatus.end())
26 std::cout <<
"could not find status " << istatus <<
" in trackstatus map" << std::endl;
29 return trackstatus[istatus];