46 #include "G4HCofThisEvent.hh"
59 inline void *
operator new(size_t);
60 inline void operator delete(
void* anEvent);
121 { trajectoryContainer = value; }
123 { eventAborted =
true; }
126 randomNumberStatus =
new G4String(st);
127 validRandomNumberStatus =
true;
131 randomNumberStatusForProcessing =
new G4String(st);
132 validRandomNumberStatusForProcessing =
true;
135 { keepTheEvent = vl; }
145 if( thePrimaryVertex == 0 )
146 { thePrimaryVertex = aPrimaryVertex; }
148 { thePrimaryVertex->
SetNext( aPrimaryVertex ); }
149 numberOfPrimaryVertex++;
160 else if( i > 0 && i < numberOfPrimaryVertex )
163 for(
G4int j=0; j<i; j++ )
165 if( primaryVertex == 0 )
return 0;
166 primaryVertex = primaryVertex->
GetNext();
168 return primaryVertex;
192 if(!validRandomNumberStatus)
194 "G4Event::GetRandomNumberStatus",
"Event0701",
JustWarning,
195 "Random number status is not available for this event."); }
200 if(!validRandomNumberStatusForProcessing)
202 "G4Event::GetRandomNumberStatusForProcessing",
"Event0702",
204 "Random number status is not available for this event."); }
211 inline void* G4Event::operator
new(size_t)
217 inline void G4Event::operator
delete(
void* anEvent)
G4VUserEventInformation * GetUserInformation() const
const G4String & GetRandomNumberStatusForProcessing() const
G4bool validRandomNumberStatusForProcessing
G4int GetNumberOfPrimaryVertex() 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
G4PrimaryVertex * thePrimaryVertex
void SetNext(G4PrimaryVertex *nv)
G4PrimaryVertex * GetPrimaryVertex(G4int i=0) const
G4String * randomNumberStatusForProcessing
G4PrimaryVertex * GetNext() 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