50 :currentEvent(nullptr),trajectoryContainer(nullptr),
52 verboseLevel(0),tracking(false),abortRequested(false),
53 storetRandomNumberStatusToG4Event(false)
58 "G4EventManager::G4EventManager() has already been made.");
107 "IllegalApplicationState -- Geometry is not closed : cannot process an event.");
114 std::ostringstream oss;
133 G4cout <<
"=====================================" <<
G4endl;
134 G4cout <<
" G4EventManager::ProcessOneEvent() " <<
G4endl;
135 G4cout <<
"=====================================" <<
G4endl;
141 #ifdef G4_STORE_TRAJECTORY
155 <<
" vertices passed from G4Event." <<
G4endl;
166 <<
"are passed from G4EventTransformer." <<
G4endl;
167 G4cout <<
"!!!!!!! Now start processing an event !!!!!!!" <<
G4endl;
180 <<
") is passed to G4TrackingManager." <<
G4endl;
194 <<
") is processed with stopping code " << istop <<
G4endl;
199 #ifdef G4_STORE_TRAJECTORY
202 if(previousTrajectory)
206 aTrajectory = previousTrajectory;
238 "Illegal trackstatus returned from G4TrackingManager. Continue with"\
245 for(
size_t i=0;i<secondaries->size();i++)
246 {
delete (*secondaries)[i]; }
247 secondaries->clear();
257 G4cout <<
"NULL returned from G4StackManager." <<
G4endl;
258 G4cout <<
"Terminate current event processing." <<
G4endl;
281 if( trackVector->size() == 0 )
return;
282 for(
auto newTrack : *trackVector )
288 if(newTrack->GetDynamicParticle()->GetPrimaryParticle())
295 newTrack->SetOriginTouchableHandle(newTrack->GetTouchableHandle());
300 G4cout <<
"A new track " << newTrack
301 <<
" (trackID " << newTrack->GetTrackID()
302 <<
", parentID " << newTrack->GetParentID()
303 <<
") is passed to G4StackManager." <<
G4endl;
307 trackVector->clear();
344 if (!randStat) randStat =
new G4String;
354 std::ostringstream oss;
371 "G4VUserEventInformation cannot be set because of ansense of G4Event.");
void SetUserAction(G4UserTrackingAction *apAction)
G4TrajectoryContainer * trajectoryContainer
void SetHCofThisEvent(G4HCofThisEvent *value)
G4bool SetNewState(G4ApplicationState requestedState)
static std::ostream & saveFullState(std::ostream &os)
G4Track * PopNextTrack(G4VTrajectory **newTrajectory)
void SetUserInformation(G4VUserEventInformation *anInfo)
G4PrimaryTransformer * transformer
void SetUserStackingAction(G4UserStackingAction *value)
void StackTracks(G4TrackVector *trackVector, G4bool IDhasAlreadySet=false)
G4UserSteppingAction * userSteppingAction
void ProcessOneEvent(G4Event *anEvent)
G4Navigator * GetNavigatorForTracking() const
G4StateManager * stateManager
G4HCofThisEvent * PrepareNewEvent()
G4String randomNumberStatusToG4Event
G4int storetRandomNumberStatusToG4Event
void SetTrajectoryContainer(G4TrajectoryContainer *value)
void SetUserAction(G4UserEventAction *userAction)
void SetTrackID(G4int id)
G4HCofThisEvent * GetHCofThisEvent() const
G4TrackVector * GimmeSecondaries() const
virtual void BeginOfEventAction(const G4Event *anEvent)
G4UserEventAction * userEventAction
void SetRandomNumberStatus(G4String &st)
virtual void SetEventManager(G4EventManager *value)
G4EvManMessenger * theMessenger
static G4SDManager * GetSDMpointerIfExist()
G4VUserEventInformation * GetUserInformation()
G4TrackingManager * trackManager
static G4EventManager * GetEventManager()
void KeepTheCurrentEvent()
G4UserStackingAction * userStackingAction
void TerminateCurrentEvent(G4HCofThisEvent *HCE)
G4int GetNTotalTrack() const
void SetUserInformation(G4VUserEventInformation *anInfo)
static G4TransportationManager * GetTransportationManager()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4int PushOneTrack(G4Track *newTrack, G4VTrajectory *newTrajectory=0)
G4ApplicationState GetCurrentState() const
void SetRandomNumberStatusForProcessing(G4String &st)
G4StackManager * trackContainer
virtual void MergeTrajectory(G4VTrajectory *secondTrajectory)=0
std::vector< G4Track * > G4TrackVector
G4int GetNumberOfPrimaryVertex() const
void KeepTheEvent(G4bool vl=true)
G4bool insert(G4VTrajectory *p)
static G4ThreadLocal G4EventManager * fpEventManager
G4GLOB_DLL std::ostream G4cout
virtual G4VPhysicalVolume * LocateGlobalPointAndSetup(const G4ThreeVector &point, const G4ThreeVector *direction=0, const G4bool pRelativeSearch=true, const G4bool ignoreDirection=true)
void DoProcessing(G4Event *anEvent)
G4VTrajectory * GimmeTrajectory() const
G4TrackStatus GetTrackStatus() const
G4VUserEventInformation * GetUserInformation() const
G4UserTrackingAction * userTrackingAction
void ProcessOneTrack(G4Track *apValueG4Track)
virtual void EndOfEventAction(const G4Event *anEvent)
static G4StateManager * GetStateManager()
G4int GetParentID() const