Run data class. More...
#include <Doxymodules_basic.h>
Public Member Functions | |
RunData ()=default | |
~RunData () override=default | |
void | Add (G4int id, G4double de, G4double dl) |
void | FillPerEvent () |
void | Reset () |
G4String | GetVolumeName (G4int id) const |
G4double | GetEdep (G4int id) const |
G4double | GetTrackLength (G4int id) const |
Private Attributes | |
std::array< G4String, kDim > | fVolumeNames = { "Absorber", "Gap" } |
std::array< G4double, kDim > | fEdep = { 0., 0. } |
std::array< G4double, kDim > | fTrackLength = { 0., 0. } |
Run data class.
It defines data members to hold the energy deposit and track lengths of charged particles in Absober and Gap layers.
In order to reduce the number of data members a 2-dimensions array is introduced for each quantity:
The data are collected step by step in SteppingAction, and the accumulated values are filled in histograms and a Ntuple event by event in EventAction.
Definition at line 143 of file Doxymodules_basic.h.
|
default |
|
overridedefault |
|
inline |
Definition at line 84 of file RunData.hh.
void B4b::RunData::FillPerEvent | ( | ) |
Definition at line 41 of file RunData.cc.
void B4b::RunData::Reset | ( | ) |
Definition at line 63 of file RunData.cc.
|
inline |
Definition at line 89 of file RunData.hh.
|
inline |
Definition at line 93 of file RunData.hh.
|
inline |
Definition at line 97 of file RunData.hh.
Definition at line 77 of file RunData.hh.
|
private |
Definition at line 78 of file RunData.hh.
|
private |
Definition at line 79 of file RunData.hh.