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

#include <XrayFluoRunAction.hh>

Inheritance diagram for XrayFluoRunAction:
Collaboration diagram for XrayFluoRunAction:

Public Member Functions

 XrayFluoRunAction ()
 
 ~XrayFluoRunAction ()
 
const XrayFluoDataSetGetSet () const
 
const XrayFluoDataSetGetGammaSet () const
 
const XrayFluoDataSetGetAlphaSet () const
 
G4DataVectorGetEnergies () const
 
G4DataVectorGetData () const
 
void BeginOfRunAction (const G4Run *)
 
void EndOfRunAction (const G4Run *)
 
G4double GetDataSum () 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 52 of file XrayFluoRunAction.hh.

Constructor & Destructor Documentation

XrayFluoRunAction::XrayFluoRunAction ( )

Definition at line 54 of file XrayFluoRunAction.cc.

55  : isInitialized(false), dataSet(0), dataGammaSet(0),
56  dataAlphaSet(0)
57 {;}
XrayFluoRunAction::~XrayFluoRunAction ( )

Definition at line 61 of file XrayFluoRunAction.cc.

62 {;}

Member Function Documentation

void XrayFluoRunAction::BeginOfRunAction ( const G4Run aRun)
virtual

Reimplemented from G4UserRunAction.

Definition at line 95 of file XrayFluoRunAction.cc.

96 {
97 
98  //Master mode or sequential
99  if (IsMaster())
100  {
101  G4cout << "### Run " << aRun->GetRunID() << " starts (master)." << G4endl;
102  if (!isInitialized)
103  Initialise();
104  }
105  else
106  G4cout << "### Run " << aRun->GetRunID() << " starts (worker)." << G4endl;
107 
109  {
111  UI->ApplyCommand("/vis/scene/notifyHandlers");
112  }
113 
114  // Book histograms and ntuples
116  analysis->book();
117 }
static G4VVisManager * GetConcreteInstance()
static G4UImanager * GetUIpointer()
Definition: G4UImanager.cc:59
G4GLOB_DLL std::ostream G4cout
static XrayFluoAnalysisManager * getInstance()
G4bool IsMaster() const
G4int GetRunID() const
Definition: G4Run.hh:76
#define G4endl
Definition: G4ios.hh:61
G4int ApplyCommand(const char *aCommand)
Definition: G4UImanager.cc:447

Here is the call graph for this function:

void XrayFluoRunAction::EndOfRunAction ( const G4Run )
virtual

Reimplemented from G4UserRunAction.

Definition at line 121 of file XrayFluoRunAction.cc.

122 {
124  analysis->finish();
125  // Run ended, update the visualization
127  G4UImanager::GetUIpointer()->ApplyCommand("/vis/viewer/update");
128  }
129 }
static G4VVisManager * GetConcreteInstance()
static G4UImanager * GetUIpointer()
Definition: G4UImanager.cc:59
static XrayFluoAnalysisManager * getInstance()
G4int ApplyCommand(const char *aCommand)
Definition: G4UImanager.cc:447

Here is the call graph for this function:

const XrayFluoDataSet * XrayFluoRunAction::GetAlphaSet ( ) const

Definition at line 148 of file XrayFluoRunAction.cc.

149 {
150  return dataAlphaSet;
151 }
G4DataVector * XrayFluoRunAction::GetData ( ) const

Definition at line 162 of file XrayFluoRunAction.cc.

163 {
164  return data;
165 }
const XML_Char const XML_Char * data
Definition: expat.h:268

Here is the caller graph for this function:

G4double XrayFluoRunAction::GetDataSum ( ) const

Definition at line 169 of file XrayFluoRunAction.cc.

170 {
171 
172  G4double sum = 0;
173  for (size_t i = 0; i < data->size(); i++)
174  {
175  sum+=(*data)[i];
176  }
177  return sum;
178 }
const XML_Char const XML_Char * data
Definition: expat.h:268
double G4double
Definition: G4Types.hh:76

Here is the caller graph for this function:

G4DataVector * XrayFluoRunAction::GetEnergies ( ) const

Definition at line 155 of file XrayFluoRunAction.cc.

156 {
157  return energies;
158 }

Here is the caller graph for this function:

const XrayFluoDataSet * XrayFluoRunAction::GetGammaSet ( ) const

Definition at line 141 of file XrayFluoRunAction.cc.

142 {
143  return dataGammaSet;
144 }

Here is the caller graph for this function:

const XrayFluoDataSet * XrayFluoRunAction::GetSet ( ) const

Definition at line 134 of file XrayFluoRunAction.cc.

135 {
136  return dataSet;
137 }

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