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

#include <ElectronRunAction.hh>

Inheritance diagram for ElectronRunAction:
Collaboration diagram for ElectronRunAction:

Public Member Functions

 ElectronRunAction (const G4String &)
 
virtual ~ElectronRunAction ()
 
virtual G4RunGenerateRun ()
 
virtual void EndOfRunAction (const G4Run *)
 
- Public Member Functions inherited from G4UserRunAction
 G4UserRunAction ()
 
virtual ~G4UserRunAction ()
 
virtual void BeginOfRunAction (const G4Run *aRun)
 
virtual void SetMaster (G4bool val=true)
 
G4bool IsMaster () const
 

Additional Inherited Members

- Protected Attributes inherited from G4UserRunAction
G4bool isMaster
 

Detailed Description

Definition at line 41 of file ElectronRunAction.hh.

Constructor & Destructor Documentation

ElectronRunAction::ElectronRunAction ( const G4String outputFile)

Definition at line 39 of file ElectronRunAction.cc.

39  :
40 G4UserRunAction(), fOutputFileSpec(outputFile)
41 {
43 }
void SetPrintProgress(G4int i)
static G4RunManager * GetRunManager()
Definition: G4RunManager.cc:79

Here is the call graph for this function:

ElectronRunAction::~ElectronRunAction ( )
virtual

Definition at line 47 of file ElectronRunAction.cc.

48 {;}

Member Function Documentation

void ElectronRunAction::EndOfRunAction ( const G4Run aRun)
virtual

Reimplemented from G4UserRunAction.

Definition at line 59 of file ElectronRunAction.cc.

60 {
61 
62  G4cout <<"Number of Events Processed:" <<aRun->GetNumberOfEvent() <<G4endl;
63 
64  const ElectronRun* theRun = dynamic_cast<const ElectronRun*>(aRun);
65  assert (0 != theRun);
66 
67  theRun->DumpData(fOutputFileSpec);
68 }
G4GLOB_DLL std::ostream G4cout
G4int GetNumberOfEvent() const
Definition: G4Run.hh:79
#define G4endl
Definition: G4ios.hh:61
void DumpData(G4String &) const
Definition: ElectronRun.cc:95

Here is the call graph for this function:

G4Run * ElectronRunAction::GenerateRun ( void  )
virtual

Reimplemented from G4UserRunAction.

Definition at line 52 of file ElectronRunAction.cc.

53 {
54  return new ElectronRun();
55 }

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