68 inline void *
operator new(std::size_t);
69 inline void operator delete(
void* anEvent);
88 { trajectoryContainer = value; }
90 { eventAborted =
true; }
93 randomNumberStatus =
new G4String(st);
94 validRandomNumberStatus =
true;
98 randomNumberStatusForProcessing =
new G4String(st);
99 validRandomNumberStatusForProcessing =
true;
102 { keepTheEvent = vl; }
104 {
return keepTheEvent; }
120 "Number of grips is negative. This cannot be correct.");
134 if( thePrimaryVertex ==
nullptr )
135 { thePrimaryVertex = aPrimaryVertex; }
137 { thePrimaryVertex->SetNext( aPrimaryVertex ); }
138 ++numberOfPrimaryVertex;
142 {
return numberOfPrimaryVertex; }
148 {
return thePrimaryVertex; }
149 if( i > 0 && i < numberOfPrimaryVertex )
152 for(
G4int j=0; j<i; ++j )
154 if( primaryVertex ==
nullptr )
return nullptr;
155 primaryVertex = primaryVertex->
GetNext();
157 return primaryVertex;
169 {
return trajectoryContainer; }
180 { userInfo = anInfo; }
187 if(!validRandomNumberStatus)
189 "G4Event::GetRandomNumberStatus",
"Event0701",
JustWarning,
190 "Random number status is not available for this event."); }
191 return *randomNumberStatus;
195 if(!validRandomNumberStatusForProcessing)
197 "G4Event::GetRandomNumberStatusForProcessing",
"Event0702",
199 "Random number status is not available for this event."); }
200 return *randomNumberStatusForProcessing;
210 G4int numberOfPrimaryVertex = 0;
223 G4bool eventAborted =
false;
229 G4String* randomNumberStatus =
nullptr;
230 G4bool validRandomNumberStatus =
false;
233 G4String* randomNumberStatusForProcessing =
nullptr;
234 G4bool validRandomNumberStatusForProcessing =
false;
237 mutable G4bool keepTheEvent =
false;
238 mutable G4int grips = 0;
261 {
return (
G4int)fSubEventGarbageBin.size(); }
274 std::map<G4int,std::set<G4SubEvent*>*> fSubEvtStackMap;
275 std::set<G4SubEvent*> fSubEvtVector;
276 std::set<G4SubEvent*> fSubEventGarbageBin;
283 G4Event* motherEvent =
nullptr;
284 G4int subEventType = -1;
293 {
return motherEvent; }
295 {
return subEventType; }
298 mutable G4bool scoresRecorded =
false;
299 mutable G4bool eventCompleted =
false;
309inline void* G4Event::operator
new(std::size_t)
318inline void G4Event::operator
delete(
void* anEvent)
G4EVENT_DLL G4Allocator< G4Event > *& anEventAllocator()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4int StoreSubEvent(G4int, G4SubEvent *)
void KeepTheEvent(G4bool vl=true) const
G4int GetSubEventType() const
G4int GetNumberOfPrimaryVertex() const
const G4String & GetRandomNumberStatus() const
G4int GetNumberOfGrips() const
void PostProcessingFinished() const
G4TrajectoryContainer * GetTrajectoryContainer() const
void SetRandomNumberStatus(G4String &st)
G4HCofThisEvent * GetHCofThisEvent() const
void MergeSubEventResults(const G4Event *se)
void SetRandomNumberStatusForProcessing(G4String &st)
G4int GetNumberOfCompletedSubEvent() const
void SetDCofThisEvent(G4DCofThisEvent *value)
G4PrimaryVertex * GetPrimaryVertex(G4int i=0) const
void FlagAsSubEvent(G4Event *me, G4int ty)
G4Event(const G4Event &)=delete
const G4String & GetRandomNumberStatusForProcessing() const
G4bool operator!=(const G4Event &right) const
G4DCofThisEvent * GetDCofThisEvent() const
void SetHCofThisEvent(G4HCofThisEvent *value)
void SetUserInformation(G4VUserEventInformation *anInfo)
G4SubEvent * PopSubEvent(G4int)
void AddPrimaryVertex(G4PrimaryVertex *aPrimaryVertex)
G4bool IsEventCompleted() const
G4Event * GetMotherEvent() const
G4bool KeepTheEventFlag() const
G4bool operator==(const G4Event &right) const
void KeepForPostProcessing() const
G4VUserEventInformation * GetUserInformation() const
G4bool ScoresAlreadyRecorded() const
G4Event & operator=(const G4Event &)=delete
G4int TerminateSubEvent(G4SubEvent *)
void ScoresRecorded() const
G4int SpawnSubEvent(G4SubEvent *)
void EventCompleted() const
void SetTrajectoryContainer(G4TrajectoryContainer *value)
G4int GetNumberOfRemainingSubEvents() const
G4PrimaryVertex * GetNext() const