Geant4 VMC Version 6.6
Loading...
Searching...
No Matches
TG4RunAction Class Reference

Actions at the beginning and the end of run. More...

#include <TG4RunAction.h>

Inheritance diagram for TG4RunAction:

Public Member Functions

 TG4RunAction ()
 
virtual ~TG4RunAction ()
 
virtual void BeginOfRunAction (const G4Run *run)
 
virtual void EndOfRunAction (const G4Run *run)
 
void SetSaveRandomStatus (G4bool saveRandomStatus)
 
void SetReadRandomStatus (G4bool readRandomStatus)
 
void SetRandomStatusFile (G4String RandomStatusFile)
 
void SetThresholdWarningEnergy (G4double value)
 
void SetThresholdImportantEnergy (G4double value)
 
void SetNumberOfThresholdTrials (G4int value)
 
- Public Member Functions inherited from TG4Verbose
 TG4Verbose (const G4String &cmdName)
 
 TG4Verbose (const G4String &cmdName, G4int verboseLevel)
 
virtual ~TG4Verbose ()
 
virtual void VerboseLevel (G4int level)
 
virtual G4int VerboseLevel () const
 

Private Member Functions

 TG4RunAction (const TG4RunAction &right)
 Not implemented.
 
TG4RunActionoperator= (const TG4RunAction &right)
 Not implemented.
 
void ChangeLooperParameters (const G4ParticleDefinition *particleDefinition)
 
void PrintLooperParameters () const
 

Private Attributes

TG4RunActionMessenger fMessenger
 messenger
 
TG4CrossSectionManager fCrossSectionManager
 cross section manager
 
G4Timer * fTimer
 G4Timer.
 
G4int fRunID
 run ID
 
G4bool fSaveRandomStatus
 control for saving random engine status
 
G4bool fReadRandomStatus
 control for reading random engine status
 
G4String fRandomStatusFile
 random engine status file name
 
G4double fThresholdWarningEnergy
 Energy threshold for warnings about killing looping tracks.
 
G4double fThresholdImportantEnergy
 
G4int fNumberOfThresholdTrials
 Number of trials to propagate a looping track.
 

Static Private Attributes

static const G4String fgkDefaultRandomStatusFile = "currentRun.rndm"
 default name of the random engine status file to be read in
 

Detailed Description

Actions at the beginning and the end of run.

Author
I. Hrivnacova; IPN, Orsay

Definition at line 35 of file TG4RunAction.h.

Constructor & Destructor Documentation

◆ TG4RunAction() [1/2]

TG4RunAction::TG4RunAction ( )

Default constructor

Definition at line 60 of file TG4RunAction.cxx.

◆ ~TG4RunAction()

TG4RunAction::~TG4RunAction ( )
virtual

Destructor

Definition at line 83 of file TG4RunAction.cxx.

◆ TG4RunAction() [2/2]

TG4RunAction::TG4RunAction ( const TG4RunAction & right)
private

Not implemented.

Member Function Documentation

◆ BeginOfRunAction()

void TG4RunAction::BeginOfRunAction ( const G4Run * run)
virtual

Called by G4 kernel at the beginning of run.

Definition at line 160 of file TG4RunAction.cxx.

◆ EndOfRunAction()

void TG4RunAction::EndOfRunAction ( const G4Run * run)
virtual

Called by G4 kernel at the end of run.

Definition at line 219 of file TG4RunAction.cxx.

◆ SetSaveRandomStatus()

void TG4RunAction::SetSaveRandomStatus ( G4bool saveRandomStatus)
inline

Set option for saving random engine status

Definition at line 88 of file TG4RunAction.h.

Referenced by TG4RunActionMessenger::SetNewValue().

◆ SetReadRandomStatus()

void TG4RunAction::SetReadRandomStatus ( G4bool readRandomStatus)
inline

Set option for reading random engine status

Definition at line 94 of file TG4RunAction.h.

Referenced by TG4RunActionMessenger::SetNewValue().

◆ SetRandomStatusFile()

void TG4RunAction::SetRandomStatusFile ( G4String RandomStatusFile)
inline

Set random engine status file name

Definition at line 100 of file TG4RunAction.h.

Referenced by TG4RunActionMessenger::SetNewValue().

◆ SetThresholdWarningEnergy()

void TG4RunAction::SetThresholdWarningEnergy ( G4double value)
inline

Definition at line 106 of file TG4RunAction.h.

Referenced by TG4RunActionMessenger::SetNewValue().

◆ SetThresholdImportantEnergy()

void TG4RunAction::SetThresholdImportantEnergy ( G4double value)
inline

Definition at line 111 of file TG4RunAction.h.

Referenced by TG4RunActionMessenger::SetNewValue().

◆ SetNumberOfThresholdTrials()

void TG4RunAction::SetNumberOfThresholdTrials ( G4int value)
inline

Definition at line 116 of file TG4RunAction.h.

Referenced by TG4RunActionMessenger::SetNewValue().

◆ operator=()

TG4RunAction & TG4RunAction::operator= ( const TG4RunAction & right)
private

Not implemented.

◆ ChangeLooperParameters()

void TG4RunAction::ChangeLooperParameters ( const G4ParticleDefinition * particleDefinition)
private

Definition at line 98 of file TG4RunAction.cxx.

Referenced by BeginOfRunAction().

◆ PrintLooperParameters()

void TG4RunAction::PrintLooperParameters ( ) const
private

Print looping thresholds parameters

Definition at line 140 of file TG4RunAction.cxx.

Referenced by BeginOfRunAction().

Member Data Documentation

◆ fgkDefaultRandomStatusFile

const G4String TG4RunAction::fgkDefaultRandomStatusFile = "currentRun.rndm"
staticprivate

default name of the random engine status file to be read in

Definition at line 65 of file TG4RunAction.h.

◆ fMessenger

TG4RunActionMessenger TG4RunAction::fMessenger
private

messenger

Definition at line 68 of file TG4RunAction.h.

◆ fCrossSectionManager

TG4CrossSectionManager TG4RunAction::fCrossSectionManager
private

cross section manager

Definition at line 69 of file TG4RunAction.h.

Referenced by EndOfRunAction().

◆ fTimer

G4Timer* TG4RunAction::fTimer
private

G4Timer.

Definition at line 70 of file TG4RunAction.h.

Referenced by BeginOfRunAction(), EndOfRunAction(), TG4RunAction(), and ~TG4RunAction().

◆ fRunID

G4int TG4RunAction::fRunID
private

run ID

Definition at line 71 of file TG4RunAction.h.

Referenced by BeginOfRunAction().

◆ fSaveRandomStatus

G4bool TG4RunAction::fSaveRandomStatus
private

control for saving random engine status

Definition at line 72 of file TG4RunAction.h.

Referenced by BeginOfRunAction(), and SetSaveRandomStatus().

◆ fReadRandomStatus

G4bool TG4RunAction::fReadRandomStatus
private

control for reading random engine status

Definition at line 73 of file TG4RunAction.h.

Referenced by BeginOfRunAction(), and SetReadRandomStatus().

◆ fRandomStatusFile

G4String TG4RunAction::fRandomStatusFile
private

random engine status file name

Definition at line 74 of file TG4RunAction.h.

Referenced by BeginOfRunAction(), and SetRandomStatusFile().

◆ fThresholdWarningEnergy

G4double TG4RunAction::fThresholdWarningEnergy
private

Energy threshold for warnings about killing looping tracks.

Definition at line 77 of file TG4RunAction.h.

Referenced by ChangeLooperParameters(), and SetThresholdWarningEnergy().

◆ fThresholdImportantEnergy

G4double TG4RunAction::fThresholdImportantEnergy
private

Important energy threshold: it enables tracks above its value to survive a chosen number of ‘tracking’ steps

Definition at line 82 of file TG4RunAction.h.

Referenced by ChangeLooperParameters(), and SetThresholdImportantEnergy().

◆ fNumberOfThresholdTrials

G4int TG4RunAction::fNumberOfThresholdTrials
private

Number of trials to propagate a looping track.

Definition at line 85 of file TG4RunAction.h.

Referenced by ChangeLooperParameters(), and SetNumberOfThresholdTrials().


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