49 :currentEvent(nullptr),trajectoryContainer(nullptr),
51 verboseLevel(0),tracking(
false),abortRequested(
false),
52 storetRandomNumberStatusToG4Event(
false)
57 "G4EventManager::G4EventManager() has already been made.");
106 "IllegalApplicationState -- Geometry is not closed : cannot process an event.");
113 std::ostringstream oss;
132 G4cout <<
"=====================================" <<
G4endl;
133 G4cout <<
" G4EventManager::ProcessOneEvent() " <<
G4endl;
134 G4cout <<
"=====================================" <<
G4endl;
140 #ifdef G4_STORE_TRAJECTORY
154 <<
" vertices passed from G4Event." <<
G4endl;
165 <<
"are passed from G4EventTransformer." <<
G4endl;
166 G4cout <<
"!!!!!!! Now start processing an event !!!!!!!" <<
G4endl;
179 <<
") is passed to G4TrackingManager." <<
G4endl;
193 <<
") is processed with stopping code " << istop <<
G4endl;
198 #ifdef G4_STORE_TRAJECTORY
201 if(previousTrajectory)
205 aTrajectory = previousTrajectory;
237 "Illegal trackstatus returned from G4TrackingManager. Continue with"\
244 for(
size_t i=0;i<secondaries->size();i++)
245 {
delete (*secondaries)[i]; }
246 secondaries->clear();
256 G4cout <<
"NULL returned from G4StackManager." <<
G4endl;
257 G4cout <<
"Terminate current event processing." <<
G4endl;
280 if( trackVector->size() == 0 )
return;
281 for(
auto newTrack : *trackVector )
287 if(newTrack->GetDynamicParticle()->GetPrimaryParticle())
294 newTrack->SetOriginTouchableHandle(newTrack->GetTouchableHandle());
299 G4cout <<
"A new track " << newTrack
300 <<
" (trackID " << newTrack->GetTrackID()
301 <<
", parentID " << newTrack->GetParentID()
302 <<
") is passed to G4StackManager." <<
G4endl;
306 trackVector->clear();
343 if (!randStat) randStat =
new G4String;
353 std::ostringstream oss;
370 "G4VUserEventInformation cannot be set because of ansense of G4Event.");