#include <G4Event.hh>
Definition at line 52 of file G4Event.hh.
Definition at line 42 of file G4Event.cc.
44 thePrimaryVertex(
nullptr),numberOfPrimaryVertex(0),
45 HC(
nullptr),DC(
nullptr),trajectoryContainer(
nullptr),
46 eventAborted(
false),userInfo(
nullptr),
47 randomNumberStatus(
nullptr),validRandomNumberStatus(
false),
48 randomNumberStatusForProcessing(
nullptr),validRandomNumberStatusForProcessing(
false),
49 keepTheEvent(
false),grips(0)
G4Event::G4Event |
( |
G4int |
evID | ) |
|
Definition at line 53 of file G4Event.cc.
55 thePrimaryVertex(
nullptr),numberOfPrimaryVertex(0),
56 HC(
nullptr),DC(
nullptr),trajectoryContainer(
nullptr),
57 eventAborted(
false),userInfo(
nullptr),
58 randomNumberStatus(
nullptr),validRandomNumberStatus(
false),
59 randomNumberStatusForProcessing(
nullptr),validRandomNumberStatusForProcessing(
false),
60 keepTheEvent(
false),grips(0)
Definition at line 64 of file G4Event.cc.
70 nextVertex = thisVertex->
GetNext();
74 thePrimaryVertex =
nullptr;
77 if(trajectoryContainer)
80 delete trajectoryContainer;
83 delete randomNumberStatus;
84 delete randomNumberStatusForProcessing;
G4PrimaryVertex * GetNext() const
Definition at line 154 of file G4Event.hh.
156 if( thePrimaryVertex ==
nullptr )
157 { thePrimaryVertex = aPrimaryVertex; }
159 { thePrimaryVertex->
SetNext( aPrimaryVertex ); }
160 numberOfPrimaryVertex++;
void SetNext(G4PrimaryVertex *nv)
void G4Event::Draw |
( |
| ) |
const |
Definition at line 102 of file G4Event.cc.
105 if(!pVVisManager)
return;
107 if(trajectoryContainer)
110 for(
G4int i=0;i<n_traj;i++)
111 { (*trajectoryContainer)[i]->DrawTrajectory(); }
117 for(
G4int j=0;j<n_HC;j++)
127 for(
G4int j=0;j<n_DC;j++)
G4VHitsCollection * GetHC(G4int i)
static G4VVisManager * GetConcreteInstance()
G4VDigiCollection * GetDC(G4int i) const
virtual void DrawAllHits()
G4int GetCapacity() const
virtual void DrawAllDigi()
G4int G4Event::GetEventID |
( |
| ) |
const |
|
inline |
G4int G4Event::GetNumberOfGrips |
( |
| ) |
const |
|
inline |
G4int G4Event::GetNumberOfPrimaryVertex |
( |
| ) |
const |
|
inline |
Definition at line 164 of file G4Event.hh.
165 {
return numberOfPrimaryVertex; }
Definition at line 167 of file G4Event.hh.
170 {
return thePrimaryVertex; }
171 else if( i > 0 && i < numberOfPrimaryVertex )
174 for(
G4int j=0; j<i; j++ )
176 if( !primaryVertex )
return nullptr;
177 primaryVertex = primaryVertex->
GetNext();
179 return primaryVertex;
G4PrimaryVertex * GetNext() const
const G4String& G4Event::GetRandomNumberStatus |
( |
| ) |
const |
|
inline |
Definition at line 201 of file G4Event.hh.
203 if(!validRandomNumberStatus)
205 "G4Event::GetRandomNumberStatus",
"Event0701",
JustWarning,
206 "Random number status is not available for this event."); }
207 return *randomNumberStatus;
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
const G4String& G4Event::GetRandomNumberStatusForProcessing |
( |
| ) |
const |
|
inline |
Definition at line 209 of file G4Event.hh.
211 if(!validRandomNumberStatusForProcessing)
213 "G4Event::GetRandomNumberStatusForProcessing",
"Event0702",
215 "Random number status is not available for this event."); }
216 return *randomNumberStatusForProcessing;
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition at line 189 of file G4Event.hh.
190 {
return trajectoryContainer; }
G4bool G4Event::IsAborted |
( |
| ) |
const |
|
inline |
Definition at line 195 of file G4Event.hh.
195 {
return eventAborted; }
void G4Event::KeepForPostProcessing |
( |
| ) |
const |
|
inline |
Definition at line 135 of file G4Event.hh.
136 { keepTheEvent = vl; }
void G4Event::operator delete |
( |
void * |
anEvent | ) |
|
|
inline |
Definition at line 228 of file G4Event.hh.
G4EVENT_DLL G4ThreadLocal G4Allocator< G4Event > * anEventAllocator
void * G4Event::operator new |
( |
size_t |
| ) |
|
|
inline |
Definition at line 222 of file G4Event.hh.
G4EVENT_DLL G4ThreadLocal G4Allocator< G4Event > * anEventAllocator
Definition at line 92 of file G4Event.cc.
94 return ( eventID != right.eventID );
Definition at line 87 of file G4Event.cc.
89 return ( eventID == right.eventID );
void G4Event::PostProcessingFinished |
( |
| ) |
const |
|
inline |
Definition at line 141 of file G4Event.hh.
145 "Number of grips becames negative. This cannot be correct."); }
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
void G4Event::Print |
( |
| ) |
const |
Definition at line 97 of file G4Event.cc.
G4GLOB_DLL std::ostream G4cout
Definition at line 119 of file G4Event.hh.
const XML_Char int const XML_Char * value
void G4Event::SetEventAborted |
( |
| ) |
|
|
inline |
Definition at line 123 of file G4Event.hh.
124 { eventAborted =
true; }
Definition at line 117 of file G4Event.hh.
const XML_Char int const XML_Char * value
Definition at line 125 of file G4Event.hh.
127 randomNumberStatus =
new G4String(st);
128 validRandomNumberStatus =
true;
void G4Event::SetRandomNumberStatusForProcessing |
( |
G4String & |
st | ) |
|
|
inline |
Definition at line 130 of file G4Event.hh.
132 randomNumberStatusForProcessing =
new G4String(st);
133 validRandomNumberStatusForProcessing =
true;
Definition at line 121 of file G4Event.hh.
122 { trajectoryContainer =
value; }
const XML_Char int const XML_Char * value
Definition at line 198 of file G4Event.hh.
198 { userInfo = anInfo; }
G4bool G4Event::ToBeKept |
( |
| ) |
const |
|
inline |
Definition at line 137 of file G4Event.hh.
138 {
return keepTheEvent; }
The documentation for this class was generated from the following files: