Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
ElectronRunAction Class Reference

#include <ElectronRunAction.hh>

Inheritance diagram for ElectronRunAction:
G4UserRunAction

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)
 
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 38 of file ElectronRunAction.cc.

38  :
39 G4UserRunAction(), fOutputFileSpec(outputFile)
40 {;}
ElectronRunAction::~ElectronRunAction ( )
virtual

Definition at line 44 of file ElectronRunAction.cc.

45 {;}

Member Function Documentation

void ElectronRunAction::EndOfRunAction ( const G4Run aRun)
virtual

Reimplemented from G4UserRunAction.

Definition at line 56 of file ElectronRunAction.cc.

References assert, ElectronRun::DumpData(), G4cout, G4endl, and G4Run::GetNumberOfEvent().

57 {
58 
59  G4cout <<"Number of Events Processed:" <<aRun->GetNumberOfEvent() <<G4endl;
60 
61  const ElectronRun* theRun = dynamic_cast<const ElectronRun*>(aRun);
62  assert (0 != theRun);
63 
64  theRun->DumpData(fOutputFileSpec);
65 }
#define assert(x)
Definition: mymalloc.cc:1309
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
G4Run * ElectronRunAction::GenerateRun ( void  )
virtual

Reimplemented from G4UserRunAction.

Definition at line 49 of file ElectronRunAction.cc.

50 {
51  return new ElectronRun();
52 }

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