Geant4  10.00.p02
ExG4RunAction01 Class Reference

Run action class. More...

#include <ExG4RunAction01.hh>

+ Inheritance diagram for ExG4RunAction01:
+ Collaboration diagram for ExG4RunAction01:

Public Member Functions

 ExG4RunAction01 ()
 
 ~ExG4RunAction01 ()
 
virtual void BeginOfRunAction (const G4Run *run)
 
virtual void EndOfRunAction (const G4Run *run)
 
void SetRndmFileName (const G4String &fileName)
 
void SetVerboseLevel (G4int level)
 
void SetSaveRndm (G4bool value)
 
void SetReadRndm (G4bool value)
 
void SetAutoSeed (G4bool value)
 
- Public Member Functions inherited from G4UserRunAction
 G4UserRunAction ()
 
virtual ~G4UserRunAction ()
 
virtual G4RunGenerateRun ()
 
void SetMaster (G4bool val=true)
 
G4bool IsMaster () const
 

Private Attributes

ExG4RunAction01Messenger fMessenger
 
G4String fRndmFileName
 
G4int fVerboseLevel
 
G4bool fSaveRndm
 
G4bool fReadRndm
 
G4bool fAutoSeed
 

Static Private Attributes

static const G4String fgkDefaultRndmFileName = "run0.rndm"
 

Additional Inherited Members

- Protected Attributes inherited from G4UserRunAction
G4bool isMaster
 

Detailed Description

Run action class.

It provides:

  • setting verbose level
  • option to save random number status at begin and end of run
  • option to read random number from a file at begin of run
  • option for automatic (time-based) random seeds for each run

Definition at line 49 of file ExG4RunAction01.hh.

Constructor & Destructor Documentation

ExG4RunAction01::ExG4RunAction01 ( )

Standard constructor

Definition at line 45 of file ExG4RunAction01.cc.

ExG4RunAction01::~ExG4RunAction01 ( )

Destructor

Definition at line 58 of file ExG4RunAction01.cc.

Member Function Documentation

void ExG4RunAction01::BeginOfRunAction ( const G4Run run)
virtual

Reimplemented from G4UserRunAction.

Definition at line 64 of file ExG4RunAction01.cc.

References G4UImanager::ApplyCommand(), fAutoSeed, fReadRndm, fRndmFileName, fSaveRndm, fVerboseLevel, G4cout, G4endl, G4UniformRand, G4VVisManager::GetConcreteInstance(), G4Run::GetRunID(), G4RunManager::GetRunManager(), G4UImanager::GetUIpointer(), G4RunManager::SetRandomNumberStore(), and G4RunManager::SetRandomNumberStoreDir().

+ Here is the call graph for this function:

void ExG4RunAction01::EndOfRunAction ( const G4Run run)
virtual

Reimplemented from G4UserRunAction.

Definition at line 109 of file ExG4RunAction01.cc.

References G4UImanager::ApplyCommand(), fSaveRndm, G4VVisManager::GetConcreteInstance(), G4Run::GetRunID(), and G4UImanager::GetUIpointer().

+ Here is the call graph for this function:

void ExG4RunAction01::SetAutoSeed ( G4bool  value)
inline

Definition at line 97 of file ExG4RunAction01.hh.

References fAutoSeed.

Referenced by ExG4RunAction01Messenger::SetNewValue().

+ Here is the caller graph for this function:

void ExG4RunAction01::SetReadRndm ( G4bool  value)
inline

Definition at line 93 of file ExG4RunAction01.hh.

References fReadRndm.

Referenced by ExG4RunAction01Messenger::SetNewValue().

+ Here is the caller graph for this function:

void ExG4RunAction01::SetRndmFileName ( const G4String fileName)
inline

Definition at line 85 of file ExG4RunAction01.hh.

References fRndmFileName.

Referenced by ExG4RunAction01Messenger::SetNewValue().

+ Here is the caller graph for this function:

void ExG4RunAction01::SetSaveRndm ( G4bool  value)
inline

Definition at line 89 of file ExG4RunAction01.hh.

References fSaveRndm.

Referenced by ExG4RunAction01Messenger::SetNewValue().

+ Here is the caller graph for this function:

void ExG4RunAction01::SetVerboseLevel ( G4int  level)
inline

Definition at line 81 of file ExG4RunAction01.hh.

References fVerboseLevel.

Referenced by ExG4RunAction01Messenger::SetNewValue().

+ Here is the caller graph for this function:

Member Data Documentation

G4bool ExG4RunAction01::fAutoSeed
private

Definition at line 77 of file ExG4RunAction01.hh.

Referenced by BeginOfRunAction(), and SetAutoSeed().

const G4String ExG4RunAction01::fgkDefaultRndmFileName = "run0.rndm"
staticprivate

Definition at line 69 of file ExG4RunAction01.hh.

ExG4RunAction01Messenger ExG4RunAction01::fMessenger
private

Definition at line 72 of file ExG4RunAction01.hh.

G4bool ExG4RunAction01::fReadRndm
private

Definition at line 76 of file ExG4RunAction01.hh.

Referenced by BeginOfRunAction(), and SetReadRndm().

G4String ExG4RunAction01::fRndmFileName
private

Definition at line 73 of file ExG4RunAction01.hh.

Referenced by BeginOfRunAction(), and SetRndmFileName().

G4bool ExG4RunAction01::fSaveRndm
private

Definition at line 75 of file ExG4RunAction01.hh.

Referenced by BeginOfRunAction(), EndOfRunAction(), and SetSaveRndm().

G4int ExG4RunAction01::fVerboseLevel
private

Definition at line 74 of file ExG4RunAction01.hh.

Referenced by BeginOfRunAction(), and SetVerboseLevel().


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