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

#include <DMXRunAction.hh>

Inheritance diagram for DMXRunAction:
Collaboration diagram for DMXRunAction:

Public Member Functions

 DMXRunAction ()
 
 ~DMXRunAction ()
 
void BeginOfRunAction (const G4Run *)
 
void EndOfRunAction (const G4Run *)
 
void SetsavehitsFile (G4String val)
 
void SetsavepmtFile (G4String val)
 
void SetsavehistFile (G4String val)
 
G4String GetsavehitsFile () const
 
G4String GetsavepmtFile () 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 54 of file DMXRunAction.hh.

Constructor & Destructor Documentation

DMXRunAction::DMXRunAction ( )

Definition at line 58 of file DMXRunAction.cc.

59 {
60  runMessenger = new DMXRunActionMessenger(this);
61  savehitsFile = "hits.out";
62  savepmtFile = "pmt.out";
63  savehistFile = "dmx";
64 }
DMXRunAction::~DMXRunAction ( )

Definition at line 68 of file DMXRunAction.cc.

69 {
70  delete runMessenger;
71  runMessenger = 0;
72 
73 }

Member Function Documentation

void DMXRunAction::BeginOfRunAction ( const G4Run aRun)
virtual

Reimplemented from G4UserRunAction.

Definition at line 77 of file DMXRunAction.cc.

78 {
79  //Master mode or sequential
80  if (IsMaster())
81  G4cout << "### Run " << aRun->GetRunID() << " starts (master)." << G4endl;
82  else
83  G4cout << "### Run " << aRun->GetRunID() << " starts (worker)." << G4endl;
84 
85  // Book histograms and ntuples
86  Book();
87 
88 }
G4GLOB_DLL std::ostream G4cout
G4bool IsMaster() const
G4int GetRunID() const
Definition: G4Run.hh:76
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

void DMXRunAction::EndOfRunAction ( const G4Run )
virtual

Reimplemented from G4UserRunAction.

Definition at line 92 of file DMXRunAction.cc.

93 {;}
G4String DMXRunAction::GetsavehitsFile ( ) const
inline

Definition at line 69 of file DMXRunAction.hh.

69 {return savehitsFile;};
G4String DMXRunAction::GetsavepmtFile ( ) const
inline

Definition at line 70 of file DMXRunAction.hh.

70 {return savepmtFile;};
void DMXRunAction::SetsavehistFile ( G4String  val)
inline

Definition at line 67 of file DMXRunAction.hh.

67 { savehistFile = val;};

Here is the caller graph for this function:

void DMXRunAction::SetsavehitsFile ( G4String  val)
inline

Definition at line 65 of file DMXRunAction.hh.

65 { savehitsFile = val;};

Here is the caller graph for this function:

void DMXRunAction::SetsavepmtFile ( G4String  val)
inline

Definition at line 66 of file DMXRunAction.hh.

66 { savepmtFile = val;};

Here is the caller graph for this function:


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