Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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.

34  : genEventID(-1), f_mctevt(mctevt), f_g4evt(g4evt)
35 {
36  m_id = g4evt->GetEventID();
37  if (mctevt) genEventID= mctevt->GetEventNumber();
38 }
G4int GetEventID() const
Definition: G4Event.hh:151
int GetEventNumber() const
Definition: G4MCTEvent.hh:116

Here is the call graph for this function:

G4Pevent::~G4Pevent ( )

Definition at line 40 of file G4Pevent.cc.

41 {
42  delete f_g4evt;
43 }

Member Function Documentation

G4Event* G4Pevent::GetEvent ( )
inline

Definition at line 63 of file G4Pevent.hh.

63 { return f_g4evt; };
int G4Pevent::GetEventID ( )
inline

Definition at line 60 of file G4Pevent.hh.

60 { return m_id; };
int G4Pevent::GetGenEventID ( ) const
inline

Definition at line 69 of file G4Pevent.hh.

69 { return genEventID; };
G4MCTEvent* G4Pevent::GetMCTEvent ( )
inline

Definition at line 66 of file G4Pevent.hh.

66 { return f_mctevt; };
void G4Pevent::SetGenEventID ( int  id)
inline

Definition at line 72 of file G4Pevent.hh.

72 { genEventID=id; };

The documentation for this class was generated from the following files: