Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PurgMagEventAction Class Reference

#include <PurgMagEventAction.hh>

Inheritance diagram for PurgMagEventAction:
Collaboration diagram for PurgMagEventAction:

Public Member Functions

 PurgMagEventAction ()
 
 ~PurgMagEventAction ()
 
void BeginOfEventAction (const G4Event *)
 
void EndOfEventAction (const G4Event *)
 
void SetDrawFlag (G4String val)
 
void SetPrintModulo (G4int val)
 
- Public Member Functions inherited from G4UserEventAction
 G4UserEventAction ()
 
virtual ~G4UserEventAction ()
 
virtual void SetEventManager (G4EventManager *value)
 

Additional Inherited Members

- Protected Attributes inherited from G4UserEventAction
G4EventManagerfpEventManager
 

Detailed Description

Definition at line 48 of file PurgMagEventAction.hh.

Constructor & Destructor Documentation

PurgMagEventAction::PurgMagEventAction ( )

Definition at line 51 of file PurgMagEventAction.cc.

52  :drawFlag("all"),printModulo(10000)
53 {}
PurgMagEventAction::~PurgMagEventAction ( )

Definition at line 57 of file PurgMagEventAction.cc.

58 {}

Member Function Documentation

void PurgMagEventAction::BeginOfEventAction ( const G4Event evt)
virtual

Reimplemented from G4UserEventAction.

Definition at line 62 of file PurgMagEventAction.cc.

63 {
64  G4int evtNb = evt->GetEventID();
65  if (evtNb%printModulo == 0)
66  G4cout << "\n---> Begin Of Event: " << evtNb << G4endl;
67 }
int G4int
Definition: G4Types.hh:78
G4int GetEventID() const
Definition: G4Event.hh:151
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

void PurgMagEventAction::EndOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

Definition at line 71 of file PurgMagEventAction.cc.

72 {
73 }
void PurgMagEventAction::SetDrawFlag ( G4String  val)
inline

Definition at line 58 of file PurgMagEventAction.hh.

58 {drawFlag = val;};
void PurgMagEventAction::SetPrintModulo ( G4int  val)
inline

Definition at line 59 of file PurgMagEventAction.hh.

59 {printModulo = val;};

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