Belle II Software development
|
Base class for Material Scans. More...
#include <MaterialScan.h>
Public Member Functions | |
MaterialScanBase (TFile *rootFile, const std::string &name, const std::string &axisLabel) | |
This is indeed the constructor and it creates a TDirectory in the output root file and sets all variables. | |
std::string | getName () const |
Return the name of the scan. | |
virtual int | getNRays () const =0 |
Return the number of rays necessary to perform the scan. | |
virtual bool | createNext (G4ThreeVector &origin, G4ThreeVector &direction)=0 |
Belle2::MaterialScanBase::createNext() implemention Get the origin and direction for the next scan particle. | |
Protected Member Functions | |
bool | checkStep (const G4Step *step) |
check for stuck tracks by looking at the step length | |
Protected Attributes | |
TFile * | m_rootFile |
Pointer to the root file for the histograms. | |
std::string | m_name |
Name of the scan, will be prefixed to all histogram names. | |
std::string | m_axisLabel |
Labels for the coordinate axes. | |
Private Attributes | |
int | m_zeroSteps {0} |
Count the number of steps with (almost) zero length. | |
Static Private Attributes | |
static constexpr double | c_zeroTolerance = 1e-6 |
maximum Step length to be considered zero | |
static constexpr int | c_maxZeroStepsNudge = 10 |
maximum number of consecutive zero steps before nudging the track along | |
static constexpr int | c_maxZeroStepsKill = 20 |
maximum number of consecutive zero steps before killing the track | |
Base class for Material Scans.
Definition at line 33 of file MaterialScan.h.
|
inline |
This is indeed the constructor and it creates a TDirectory in the output root file and sets all variables.
Definition at line 37 of file MaterialScan.h.
|
protected |
check for stuck tracks by looking at the step length
Definition at line 44 of file MaterialScan.cc.
|
pure virtual |
Belle2::MaterialScanBase::createNext() implemention Get the origin and direction for the next scan particle.
origin | Origin of the next scan particle |
direction | Direction of the next scan particle |
Implemented in MaterialScan2D, and MaterialScanRay.
|
inline |
|
pure virtual |
Return the number of rays necessary to perform the scan.
Implemented in MaterialScan2D, and MaterialScanRay.
|
staticconstexprprivate |
maximum number of consecutive zero steps before killing the track
Definition at line 71 of file MaterialScan.h.
|
staticconstexprprivate |
maximum number of consecutive zero steps before nudging the track along
Definition at line 69 of file MaterialScan.h.
|
staticconstexprprivate |
maximum Step length to be considered zero
Definition at line 67 of file MaterialScan.h.
|
protected |
Labels for the coordinate axes.
Definition at line 64 of file MaterialScan.h.
|
protected |
Name of the scan, will be prefixed to all histogram names.
Definition at line 62 of file MaterialScan.h.
|
protected |
Pointer to the root file for the histograms.
Definition at line 60 of file MaterialScan.h.
|
private |
Count the number of steps with (almost) zero length.
Definition at line 73 of file MaterialScan.h.