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

#include <CCalRunAction.hh>

Inheritance diagram for CCalRunAction:
Collaboration diagram for CCalRunAction:

Public Member Functions

 CCalRunAction ()
 
virtual ~CCalRunAction ()
 
virtual void BeginOfRunAction (const G4Run *aRun)
 
virtual void EndOfRunAction (const G4Run *aRun)
 
- 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 36 of file CCalRunAction.hh.

Constructor & Destructor Documentation

CCalRunAction::CCalRunAction ( )
inline

Definition at line 39 of file CCalRunAction.hh.

39 {};
virtual CCalRunAction::~CCalRunAction ( )
inlinevirtual

Definition at line 40 of file CCalRunAction.hh.

40 {};

Member Function Documentation

void CCalRunAction::BeginOfRunAction ( const G4Run aRun)
virtual

Reimplemented from G4UserRunAction.

Definition at line 42 of file CCalRunAction.cc.

42  {
43 
44  G4cout << "### Run " << aRun->GetRunID() << " start." << G4endl;
45 
46  // A.R. Added for visualization of events.
49  UI->ApplyCommand("/vis/scene/notifyHandlers");
50  }
51 
53  analysis->BeginOfRun(aRun->GetRunID());
54 
55 
56 }
static G4VVisManager * GetConcreteInstance()
static G4UImanager * GetUIpointer()
Definition: G4UImanager.cc:59
G4GLOB_DLL std::ostream G4cout
G4int GetRunID() const
Definition: G4Run.hh:76
Alternative here is a XML file.
Definition: CCalAnalysis.hh:44
void BeginOfRun(G4int n)
static CCalAnalysis * getInstance()
#define G4endl
Definition: G4ios.hh:61
G4int ApplyCommand(const char *aCommand)
Definition: G4UImanager.cc:447

Here is the call graph for this function:

void CCalRunAction::EndOfRunAction ( const G4Run aRun)
virtual

Reimplemented from G4UserRunAction.

Definition at line 59 of file CCalRunAction.cc.

59  {
60 
61  G4cout << "### Run " << aRun->GetRunID() << " end." << G4endl;
62 
63  // A.R. Added for visualization of events.
65  G4UImanager::GetUIpointer()->ApplyCommand("/vis/viewer/update");
66  }
67 
69  analysis->EndOfRun(aRun->GetRunID());
70 
71 }
static G4VVisManager * GetConcreteInstance()
static G4UImanager * GetUIpointer()
Definition: G4UImanager.cc:59
G4GLOB_DLL std::ostream G4cout
G4int GetRunID() const
Definition: G4Run.hh:76
Alternative here is a XML file.
Definition: CCalAnalysis.hh:44
static CCalAnalysis * getInstance()
void EndOfRun(G4int n)
#define G4endl
Definition: G4ios.hh:61
G4int ApplyCommand(const char *aCommand)
Definition: G4UImanager.cc:447

Here is the call graph for this function:


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