Geant4  10.02
GammaRayTelRunAction Class Reference

#include <GammaRayTelRunAction.hh>

+ Inheritance diagram for GammaRayTelRunAction:
+ Collaboration diagram for GammaRayTelRunAction:

Public Member Functions

 GammaRayTelRunAction ()
 
 ~GammaRayTelRunAction ()
 
void BeginOfRunAction (const G4Run *)
 
void EndOfRunAction (const G4Run *)
 
std::ofstream * GetOutputFile ()
 
- Public Member Functions inherited from G4UserRunAction
 G4UserRunAction ()
 
virtual ~G4UserRunAction ()
 
virtual G4RunGenerateRun ()
 
void SetMaster (G4bool val=true)
 
G4bool IsMaster () const
 

Private Member Functions

void OpenFile ()
 

Private Attributes

std::ofstream * outFile
 
G4String fileName
 
G4int fRunID
 

Additional Inherited Members

- Protected Attributes inherited from G4UserRunAction
G4bool isMaster
 

Detailed Description

Definition at line 51 of file GammaRayTelRunAction.hh.

Constructor & Destructor Documentation

GammaRayTelRunAction::GammaRayTelRunAction ( )

Definition at line 55 of file GammaRayTelRunAction.cc.

GammaRayTelRunAction::~GammaRayTelRunAction ( )

Definition at line 62 of file GammaRayTelRunAction.cc.

Member Function Documentation

void GammaRayTelRunAction::BeginOfRunAction ( const G4Run aRun)
virtual

Reimplemented from G4UserRunAction.

Definition at line 67 of file GammaRayTelRunAction.cc.

References G4UImanager::ApplyCommand(), GammaRayTelAnalysis::BeginOfRun(), fRunID, G4cout, G4endl, G4VVisManager::GetConcreteInstance(), GammaRayTelAnalysis::getInstance(), G4Run::GetRunID(), G4UImanager::GetUIpointer(), and G4UserRunAction::IsMaster().

+ Here is the call graph for this function:

void GammaRayTelRunAction::EndOfRunAction ( const G4Run aRun)
virtual

Reimplemented from G4UserRunAction.

Definition at line 92 of file GammaRayTelRunAction.cc.

References GammaRayTelAnalysis::EndOfRun(), fileName, G4cout, G4endl, GammaRayTelAnalysis::getInstance(), G4Run::GetRunID(), and outFile.

+ Here is the call graph for this function:

std::ofstream * GammaRayTelRunAction::GetOutputFile ( )

Definition at line 115 of file GammaRayTelRunAction.cc.

References OpenFile(), and outFile.

Referenced by GammaRayTelEventAction::EndOfEventAction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void GammaRayTelRunAction::OpenFile ( )
private

Definition at line 123 of file GammaRayTelRunAction.cc.

References fileName, fRunID, G4cout, G4endl, G4Threading::G4GetThreadId(), name, and outFile.

Referenced by GetOutputFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

G4String GammaRayTelRunAction::fileName
private

Definition at line 65 of file GammaRayTelRunAction.hh.

Referenced by EndOfRunAction(), and OpenFile().

G4int GammaRayTelRunAction::fRunID
private

Definition at line 68 of file GammaRayTelRunAction.hh.

Referenced by BeginOfRunAction(), and OpenFile().

std::ofstream* GammaRayTelRunAction::outFile
private

Definition at line 64 of file GammaRayTelRunAction.hh.

Referenced by EndOfRunAction(), GetOutputFile(), and OpenFile().


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