G4Pevent Class Reference

#include <G4Pevent.hh>


Public Member Functions

 G4Pevent (G4MCTEvent *mctevt, G4Event *g4evt)
 ~G4Pevent ()
int GetEventID ()
G4EventGetEvent ()
G4MCTEventGetMCTEvent ()
int GetGenEventID () const
void SetGenEventID (int id)


Detailed Description

Definition at line 50 of file G4Pevent.hh.


Constructor & Destructor Documentation

G4Pevent::G4Pevent ( G4MCTEvent mctevt,
G4Event g4evt 
)

Definition at line 33 of file G4Pevent.cc.

References G4Event::GetEventID(), and G4MCTEvent::GetEventNumber().

00034  : genEventID(-1), f_mctevt(mctevt), f_g4evt(g4evt)
00035 {
00036   m_id = g4evt->GetEventID();
00037   if (mctevt) genEventID= mctevt->GetEventNumber();
00038 }

G4Pevent::~G4Pevent (  ) 

Definition at line 40 of file G4Pevent.cc.

00041 {
00042   delete f_g4evt;
00043 }


Member Function Documentation

G4Event* G4Pevent::GetEvent (  )  [inline]

Definition at line 63 of file G4Pevent.hh.

00063 { return f_g4evt; };

int G4Pevent::GetEventID (  )  [inline]

Definition at line 60 of file G4Pevent.hh.

00060 { return m_id; };

int G4Pevent::GetGenEventID (  )  const [inline]

Definition at line 69 of file G4Pevent.hh.

00069 { return genEventID; };

G4MCTEvent* G4Pevent::GetMCTEvent (  )  [inline]

Definition at line 66 of file G4Pevent.hh.

00066 { return f_mctevt; };

void G4Pevent::SetGenEventID ( int  id  )  [inline]

Definition at line 72 of file G4Pevent.hh.

00072 { genEventID=id; };


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