Geant4 11.1.1
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 ()
 
G4int GetEventID ()
 
G4EventGetEvent ()
 
G4MCTEventGetMCTEvent ()
 
G4int GetGenEventID () const
 
void SetGenEventID (G4int id)
 

Detailed Description

Definition at line 50 of file G4Pevent.hh.

Constructor & Destructor Documentation

◆ G4Pevent()

G4Pevent::G4Pevent ( G4MCTEvent mctevt,
G4Event g4evt 
)

Definition at line 34 of file G4Pevent.cc.

35 : f_mctevt(mctevt)
36 , f_g4evt(g4evt)
37{
38 m_id = g4evt->GetEventID();
39 if(mctevt != nullptr)
40 genEventID = mctevt->GetEventNumber();
41}
G4int GetEventID() const
Definition: G4Event.hh:118
G4int GetEventNumber() const
Definition: G4MCTEvent.hh:117

◆ ~G4Pevent()

G4Pevent::~G4Pevent ( )

Definition at line 44 of file G4Pevent.cc.

45{
46 delete f_g4evt;
47}

Member Function Documentation

◆ GetEvent()

G4Event * G4Pevent::GetEvent ( )
inline

Definition at line 63 of file G4Pevent.hh.

63{ return f_g4evt; }

◆ GetEventID()

G4int G4Pevent::GetEventID ( )
inline

Definition at line 60 of file G4Pevent.hh.

60{ return m_id; }

◆ GetGenEventID()

G4int 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 ( G4int  id)
inline

Definition at line 72 of file G4Pevent.hh.

72{ genEventID = id; }

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