#include <G4MCTGenEvent.hh>
Public Member Functions | |
G4MCTGenEvent () | |
virtual | ~G4MCTGenEvent () |
G4MCTGenEvent (const G4MCTGenEvent &right) | |
const G4MCTGenEvent & | operator= (const G4MCTGenEvent &right) |
int | AddGenEvent (const void *genevent) |
int | GetNofEvents () const |
const void * | GetGenEvent (int i) |
void | ClearEvent () |
Protected Attributes | |
std::vector< void * > | eventList |
Definition at line 42 of file G4MCTGenEvent.hh.
G4MCTGenEvent::G4MCTGenEvent | ( | ) |
G4MCTGenEvent::~G4MCTGenEvent | ( | ) | [virtual] |
Definition at line 45 of file G4MCTGenEvent.cc.
References eventList.
00047 { 00048 eventList.clear(); 00049 }
G4MCTGenEvent::G4MCTGenEvent | ( | const G4MCTGenEvent & | right | ) | [inline] |
int G4MCTGenEvent::AddGenEvent | ( | const void * | genevent | ) |
Definition at line 52 of file G4MCTGenEvent.cc.
References eventList.
00054 { 00055 eventList.push_back(const_cast<void*>(genevent)); 00056 return eventList.size(); 00057 }
void G4MCTGenEvent::ClearEvent | ( | ) |
Definition at line 77 of file G4MCTGenEvent.cc.
References eventList.
00079 { 00080 eventList.clear(); 00081 }
const void * G4MCTGenEvent::GetGenEvent | ( | int | i | ) |
Definition at line 67 of file G4MCTGenEvent.cc.
References eventList.
00069 { 00070 int size= eventList.size(); 00071 if(i>=0 && i<size) return eventList[i]; 00072 else return 0; 00073 }
int G4MCTGenEvent::GetNofEvents | ( | ) | const |
Definition at line 60 of file G4MCTGenEvent.cc.
References eventList.
00062 { 00063 return eventList.size(); 00064 }
const G4MCTGenEvent & G4MCTGenEvent::operator= | ( | const G4MCTGenEvent & | right | ) | [inline] |
std::vector<void*> G4MCTGenEvent::eventList [protected] |
Definition at line 44 of file G4MCTGenEvent.hh.
Referenced by AddGenEvent(), ClearEvent(), GetGenEvent(), GetNofEvents(), operator=(), and ~G4MCTGenEvent().