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

Accumulates total energy deposited in shape2 across the run. More...

#include <RunAction.hh>

Inheritance diagram for RunAction:

Public Member Functions

 RunAction ()
 
 ~RunAction () override=default
 
void BeginOfRunAction (const G4Run *run) override
 
void EndOfRunAction (const G4Run *run) override
 
void AddEdep (G4double edep)
 Add edep to the accumulated energy deposit.
 

Detailed Description

Accumulates total energy deposited in shape2 across the run.

At the end of the run, prints the total and per-event energy deposit in shape2.

Definition at line 43 of file RunAction.hh.

Constructor & Destructor Documentation

◆ RunAction()

RunAction::RunAction ( )

Definition at line 40 of file RunAction.cc.

◆ ~RunAction()

RunAction::~RunAction ( )
overridedefault

Member Function Documentation

◆ AddEdep()

void RunAction::AddEdep ( G4double  edep)

Add edep to the accumulated energy deposit.

Definition at line 72 of file RunAction.cc.

Referenced by EventAction::EndOfEventAction().

◆ BeginOfRunAction()

void RunAction::BeginOfRunAction ( const G4Run *  run)
override

Definition at line 46 of file RunAction.cc.

◆ EndOfRunAction()

void RunAction::EndOfRunAction ( const G4Run *  run)
override

Definition at line 50 of file RunAction.cc.


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