G4OCCT 0.1.0
Geant4 interface to Open CASCADE Technology (OCCT) geometry definitions
Loading...
Searching...
No Matches
B4::RunAction Class Reference

#include <RunAction.hh>

Inheritance diagram for B4::RunAction:

Public Member Functions

 RunAction ()
 
 ~RunAction () override=default
 
void BeginOfRunAction (const G4Run *) override
 
void EndOfRunAction (const G4Run *) override
 

Detailed Description

Run action class

It accumulates statistic and computes dispersion of the energy deposit and track lengths of charged particles with use of analysis tools: H1D histograms are created in BeginOfRunAction() for the following physics quantities:

  • Edep in absorber
  • Edep in gap
  • Track length in absorber
  • Track length in gap The same values are also saved in the ntuple. The histograms and ntuple are saved in the output file in a format according to a specified file extension.

In EndOfRunAction(), the accumulated statistic and computed dispersion is printed.

Definition at line 55 of file RunAction.hh.

Constructor & Destructor Documentation

◆ RunAction()

RunAction::RunAction ( )

Definition at line 58 of file RunAction.cc.

◆ ~RunAction()

B4::RunAction::~RunAction ( )
overridedefault

Member Function Documentation

◆ BeginOfRunAction()

void RunAction::BeginOfRunAction ( const G4Run *  )
override

Definition at line 95 of file RunAction.cc.

References CALLGRIND_START_INSTRUMENTATION, and CALLGRIND_TOGGLE_COLLECT.

◆ EndOfRunAction()

void RunAction::EndOfRunAction ( const G4Run *  )
override

Definition at line 117 of file RunAction.cc.

References CALLGRIND_STOP_INSTRUMENTATION, and CALLGRIND_TOGGLE_COLLECT.


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