ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
B1RunAction Class Reference

#include <geant4/tree/geant4-10.6-release/examples/basic/B1/include/B1RunAction.hh>

+ Inheritance diagram for B1RunAction:
+ Collaboration diagram for B1RunAction:

Public Member Functions

 B1RunAction ()
 
virtual ~B1RunAction ()
 
virtual void BeginOfRunAction (const G4Run *)
 
virtual void EndOfRunAction (const G4Run *)
 
void AddEdep (G4double edep)
 
 B1RunAction ()
 
virtual ~B1RunAction ()
 
virtual G4RunGenerateRun ()
 
virtual void BeginOfRunAction (const G4Run *)
 
virtual void EndOfRunAction (const G4Run *)
 
- Public Member Functions inherited from G4UserRunAction
 G4UserRunAction ()
 
virtual ~G4UserRunAction ()
 
virtual void SetMaster (G4bool val=true)
 
G4bool IsMaster () const
 

Private Attributes

G4Accumulable< G4doublefEdep
 
G4Accumulable< G4doublefEdep2
 

Additional Inherited Members

- Protected Attributes inherited from G4UserRunAction
G4bool isMaster
 

Detailed Description

Run action class

In EndOfRunAction(), it calculates the dose in the selected volume from the energy deposit accumulated via stepping and event actions. The computed dose is then printed on the screen.

Definition at line 45 of file B1RunAction.hh.

View newest version in sPHENIX GitHub at line 45 of file B1RunAction.hh

Constructor & Destructor Documentation

B1RunAction::B1RunAction ( )

Definition at line 45 of file B1RunAction.cc.

View newest version in sPHENIX GitHub at line 45 of file B1RunAction.cc

References fEdep, fEdep2, gray, G4AccumulableManager::Instance(), microgray, milligray, and G4AccumulableManager::RegisterAccumulable().

+ Here is the call graph for this function:

B1RunAction::~B1RunAction ( )
virtual

Definition at line 70 of file B1RunAction.cc.

View newest version in sPHENIX GitHub at line 70 of file B1RunAction.cc

B1RunAction::B1RunAction ( )
virtual B1RunAction::~B1RunAction ( )
virtual

Member Function Documentation

void B1RunAction::AddEdep ( G4double  edep)

Definition at line 155 of file B1RunAction.cc.

View newest version in sPHENIX GitHub at line 155 of file B1RunAction.cc

References edep, fEdep, and fEdep2.

Referenced by B1EventAction::EndOfEventAction().

+ Here is the caller graph for this function:

virtual void B1RunAction::BeginOfRunAction ( const G4Run )
virtual

Reimplemented from G4UserRunAction.

void B1RunAction::BeginOfRunAction ( const G4Run )
virtual

Reimplemented from G4UserRunAction.

Definition at line 75 of file B1RunAction.cc.

View newest version in sPHENIX GitHub at line 75 of file B1RunAction.cc

References G4RunManager::GetRunManager(), G4AccumulableManager::Instance(), G4AccumulableManager::Reset(), and G4RunManager::SetRandomNumberStore().

+ Here is the call graph for this function:

virtual void B1RunAction::EndOfRunAction ( const G4Run )
virtual

Reimplemented from G4UserRunAction.

G4Run * B1RunAction::GenerateRun ( void  )
virtual

Reimplemented from G4UserRunAction.

Definition at line 66 of file B1RunAction.cc.

View newest version in sPHENIX GitHub at line 66 of file B1RunAction.cc

Member Data Documentation

G4Accumulable<G4double> B1RunAction::fEdep
private

Definition at line 58 of file B1RunAction.hh.

View newest version in sPHENIX GitHub at line 58 of file B1RunAction.hh

Referenced by AddEdep(), B1RunAction(), and EndOfRunAction().

G4Accumulable<G4double> B1RunAction::fEdep2
private

Definition at line 59 of file B1RunAction.hh.

View newest version in sPHENIX GitHub at line 59 of file B1RunAction.hh

Referenced by AddEdep(), B1RunAction(), and EndOfRunAction().


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