67 inline void *
operator new(std::size_t);
68 inline void operator delete(
void* anEvent);
87 { trajectoryContainer = value; }
89 { eventAborted =
true; }
92 randomNumberStatus =
new G4String(st);
93 validRandomNumberStatus =
true;
97 randomNumberStatusForProcessing =
new G4String(st);
98 validRandomNumberStatusForProcessing =
true;
101 { keepTheEvent = vl; }
103 {
return keepTheEvent; }
112 "Number of grips is negative. This cannot be correct.");
126 if( thePrimaryVertex ==
nullptr )
127 { thePrimaryVertex = aPrimaryVertex; }
129 { thePrimaryVertex->
SetNext( aPrimaryVertex ); }
130 ++numberOfPrimaryVertex;
134 {
return numberOfPrimaryVertex; }
140 {
return thePrimaryVertex; }
141 if( i > 0 && i < numberOfPrimaryVertex )
144 for(
G4int j=0; j<i; ++j )
146 if( primaryVertex ==
nullptr )
return nullptr;
147 primaryVertex = primaryVertex->
GetNext();
149 return primaryVertex;
161 {
return trajectoryContainer; }
172 { userInfo = anInfo; }
179 if(!validRandomNumberStatus)
181 "G4Event::GetRandomNumberStatus",
"Event0701",
JustWarning,
182 "Random number status is not available for this event."); }
183 return *randomNumberStatus;
187 if(!validRandomNumberStatusForProcessing)
189 "G4Event::GetRandomNumberStatusForProcessing",
"Event0702",
191 "Random number status is not available for this event."); }
192 return *randomNumberStatusForProcessing;
202 G4int numberOfPrimaryVertex = 0;
215 G4bool eventAborted =
false;
221 G4String* randomNumberStatus =
nullptr;
222 G4bool validRandomNumberStatus =
false;
225 G4String* randomNumberStatusForProcessing =
nullptr;
226 G4bool validRandomNumberStatusForProcessing =
false;
229 G4bool keepTheEvent =
false;
230 mutable G4int grips = 0;
235inline void* G4Event::operator
new(std::size_t)
244inline 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 GetNumberOfPrimaryVertex() const
const G4String & GetRandomNumberStatus() const
G4int GetNumberOfGrips() const
void PostProcessingFinished() const
G4TrajectoryContainer * GetTrajectoryContainer() const
void SetRandomNumberStatus(G4String &st)
void KeepTheEvent(G4bool vl=true)
G4HCofThisEvent * GetHCofThisEvent() const
void SetRandomNumberStatusForProcessing(G4String &st)
void SetDCofThisEvent(G4DCofThisEvent *value)
G4PrimaryVertex * GetPrimaryVertex(G4int i=0) const
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)
void AddPrimaryVertex(G4PrimaryVertex *aPrimaryVertex)
G4bool operator==(const G4Event &right) const
void KeepForPostProcessing() const
G4VUserEventInformation * GetUserInformation() const
G4Event & operator=(const G4Event &)=delete
void SetTrajectoryContainer(G4TrajectoryContainer *value)
void SetNext(G4PrimaryVertex *nv)
G4PrimaryVertex * GetNext() const