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

#include <F03RunAction.hh>

Inheritance diagram for F03RunAction:
Collaboration diagram for F03RunAction:

Public Member Functions

 F03RunAction ()
 
virtual ~F03RunAction ()
 
virtual void BeginOfRunAction (const G4Run *)
 
virtual void EndOfRunAction (const G4Run *)
 
void SetRndmFreq (G4int val)
 
G4int GetRndmFreq () const
 
- Public Member Functions inherited from G4UserRunAction
 G4UserRunAction ()
 
virtual ~G4UserRunAction ()
 
virtual G4RunGenerateRun ()
 
virtual void SetMaster (G4bool val=true)
 
G4bool IsMaster () const
 

Additional Inherited Members

- Protected Attributes inherited from G4UserRunAction
G4bool isMaster
 

Detailed Description

Definition at line 46 of file F03RunAction.hh.

Constructor & Destructor Documentation

F03RunAction::F03RunAction ( )

Definition at line 47 of file F03RunAction.cc.

48  : G4UserRunAction(),
49  fMessenger(0),
50  fSaveRndm(0)
51 {
52  fMessenger = new F03RunMessenger(this);
53 }
F03RunAction::~F03RunAction ( )
virtual

Definition at line 57 of file F03RunAction.cc.

58 {
59  delete fMessenger;
60 }

Member Function Documentation

void F03RunAction::BeginOfRunAction ( const G4Run )
virtual

Reimplemented from G4UserRunAction.

Definition at line 64 of file F03RunAction.cc.

65 {
66  // save Rndm status
67  if (fSaveRndm > 0)
68  {
69  G4Random::showEngineStatus();
70  G4Random::saveEngineStatus("beginOfRun.rndm");
71  }
73 
75 
76  if (visManager) ui->ApplyCommand("/vis/scene/notifyHandlers");
77 }
static G4VVisManager * GetConcreteInstance()
static G4UImanager * GetUIpointer()
Definition: G4UImanager.cc:59
G4int ApplyCommand(const char *aCommand)
Definition: G4UImanager.cc:447

Here is the call graph for this function:

void F03RunAction::EndOfRunAction ( const G4Run )
virtual

Reimplemented from G4UserRunAction.

Definition at line 81 of file F03RunAction.cc.

82 {
84  {
85  G4UImanager::GetUIpointer()->ApplyCommand("/vis/viewer/update");
86  }
87 
88  // save Rndm status
89 
90  if (fSaveRndm == 1)
91  {
92  G4Random::showEngineStatus();
93  G4Random::saveEngineStatus("endOfRun.rndm");
94  }
95 }
static G4VVisManager * GetConcreteInstance()
static G4UImanager * GetUIpointer()
Definition: G4UImanager.cc:59
G4int ApplyCommand(const char *aCommand)
Definition: G4UImanager.cc:447

Here is the call graph for this function:

G4int F03RunAction::GetRndmFreq ( ) const
inline

Definition at line 57 of file F03RunAction.hh.

57 {return fSaveRndm;}

Here is the caller graph for this function:

void F03RunAction::SetRndmFreq ( G4int  val)
inline

Definition at line 56 of file F03RunAction.hh.

56 {fSaveRndm = val;}

Here is the caller graph for this function:


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