46 #include "G4HCofThisEvent.hh"
59 inline void *
operator new(size_t);
60 inline void operator delete(
void* anEvent);
122 { trajectoryContainer = value; }
124 { eventAborted =
true; }
127 randomNumberStatus =
new G4String(st);
128 validRandomNumberStatus =
true;
132 randomNumberStatusForProcessing =
new G4String(st);
133 validRandomNumberStatusForProcessing =
true;
136 { keepTheEvent = vl; }
145 "Number of grips becames negative. This cannot be correct."); }
156 if( thePrimaryVertex == 0 )
157 { thePrimaryVertex = aPrimaryVertex; }
159 { thePrimaryVertex->
SetNext( aPrimaryVertex ); }
160 numberOfPrimaryVertex++;
171 else if( i > 0 && i < numberOfPrimaryVertex )
174 for(
G4int j=0; j<i; j++ )
176 if( primaryVertex == 0 )
return 0;
177 primaryVertex = primaryVertex->
GetNext();
179 return primaryVertex;
203 if(!validRandomNumberStatus)
205 "G4Event::GetRandomNumberStatus",
"Event0701",
JustWarning,
206 "Random number status is not available for this event."); }
211 if(!validRandomNumberStatusForProcessing)
213 "G4Event::GetRandomNumberStatusForProcessing",
"Event0702",
215 "Random number status is not available for this event."); }
222 inline void* G4Event::operator
new(size_t)
228 inline void G4Event::operator
delete(
void* anEvent)
G4VUserEventInformation * GetUserInformation() const
const G4String & GetRandomNumberStatusForProcessing() const
G4bool validRandomNumberStatusForProcessing
G4int GetNumberOfPrimaryVertex() const
G4int GetNumberOfGrips() const
G4int operator==(const G4Event &right) const
void AddPrimaryVertex(G4PrimaryVertex *aPrimaryVertex)
void SetRandomNumberStatusForProcessing(G4String &st)
void SetHCofThisEvent(G4HCofThisEvent *value)
G4EVENT_DLL G4ThreadLocal G4Allocator< G4Event > * anEventAllocator
G4TrajectoryContainer * GetTrajectoryContainer() const
const G4String & GetRandomNumberStatus() const
G4String * randomNumberStatus
G4int numberOfPrimaryVertex
void SetUserInformation(G4VUserEventInformation *anInfo)
G4VUserEventInformation * userInfo
void KeepForPostProcessing() const
G4PrimaryVertex * thePrimaryVertex
void SetNext(G4PrimaryVertex *nv)
G4PrimaryVertex * GetPrimaryVertex(G4int i=0) const
G4String * randomNumberStatusForProcessing
G4PrimaryVertex * GetNext() const
void PostProcessingFinished() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
void SetRandomNumberStatus(G4String &st)
G4Event & operator=(const G4Event &)
void SetDCofThisEvent(G4DCofThisEvent *value)
G4bool validRandomNumberStatus
G4HCofThisEvent * GetHCofThisEvent() const
void SetTrajectoryContainer(G4TrajectoryContainer *value)
G4DCofThisEvent * GetDCofThisEvent() const
void KeepTheEvent(G4bool vl=true)
G4int operator!=(const G4Event &right) const
G4TrajectoryContainer * trajectoryContainer