Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
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::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:139
int GetEventNumber() const
Definition: G4MCTEvent.hh:116

◆ ~G4Pevent()

G4Pevent::~G4Pevent ( )

Definition at line 40 of file G4Pevent.cc.

41{
42 delete f_g4evt;
43}

Member Function Documentation

◆ GetEvent()

G4Event * G4Pevent::GetEvent ( )
inline

Definition at line 63 of file G4Pevent.hh.

63{ return f_g4evt; };

◆ GetEventID()

int G4Pevent::GetEventID ( )
inline

Definition at line 60 of file G4Pevent.hh.

60{ return m_id; };

◆ GetGenEventID()

int G4Pevent::GetGenEventID ( ) const
inline

Definition at line 69 of file G4Pevent.hh.

69{ return genEventID; };

◆ GetMCTEvent()

G4MCTEvent * G4Pevent::GetMCTEvent ( )
inline

Definition at line 66 of file G4Pevent.hh.

66{ return f_mctevt; };

◆ SetGenEventID()

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: