G4MCTGenEvent Class Reference

#include <G4MCTGenEvent.hh>


Public Member Functions

 G4MCTGenEvent ()
virtual ~G4MCTGenEvent ()
 G4MCTGenEvent (const G4MCTGenEvent &right)
const G4MCTGenEventoperator= (const G4MCTGenEvent &right)
int AddGenEvent (const void *genevent)
int GetNofEvents () const
const void * GetGenEvent (int i)
void ClearEvent ()

Protected Attributes

std::vector< void * > eventList


Detailed Description

Definition at line 42 of file G4MCTGenEvent.hh.


Constructor & Destructor Documentation

G4MCTGenEvent::G4MCTGenEvent (  ) 

Definition at line 39 of file G4MCTGenEvent.cc.

00041 {
00042 }

G4MCTGenEvent::~G4MCTGenEvent (  )  [virtual]

Definition at line 45 of file G4MCTGenEvent.cc.

References eventList.

00047 {
00048   eventList.clear();
00049 }

G4MCTGenEvent::G4MCTGenEvent ( const G4MCTGenEvent right  )  [inline]

Definition at line 66 of file G4MCTGenEvent.hh.

00067 {
00068   *this= right;
00069 }


Member Function Documentation

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]

Definition at line 71 of file G4MCTGenEvent.hh.

References eventList.

00072 {
00073   eventList= right.eventList;  // shallow copy
00074 
00075   return *this;
00076 }


Field Documentation

std::vector<void*> G4MCTGenEvent::eventList [protected]

Definition at line 44 of file G4MCTGenEvent.hh.

Referenced by AddGenEvent(), ClearEvent(), GetGenEvent(), GetNofEvents(), operator=(), and ~G4MCTGenEvent().


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:52:28 2013 for Geant4 by  doxygen 1.4.7