BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Attributes
Config Class Reference

Configuration and configuration parser class. More...

#include <Config.hh>

Collaboration diagram for Config:
Collaboration graph

Public Member Functions

void ParseInputFile ()
 
const std::vector< HistogramDef * > & HistogramDefinitions (const std::string &treeName) const
 Access all histogram definitions.
 
const std::vector< HistogramDef * > & HistogramDefinitionsSimple (const std::string &treeName) const
 Access all simple histogram definitions - throws exception if out of range.
 
const std::vector< HistogramDef * > & HistogramDefinitionsPerEntry (const std::string &treeName) const
 Access all per entry histogram definitions - throws exception if out of range.
 
const std::vector< HistogramDefSet * > & EventHistogramSetDefinitionsSimple () const
 
const std::vector< HistogramDefSet * > & EventHistogramSetDefinitionsPerEntry () const
 
const std::vector< std::string > & EventParticleSetNamesSimple () const
 
const std::vector< std::string > & EventParticleSetNamesPerEntry () const
 
const RBDS::VectorString & BranchesToBeActivated (const std::string &treeName) const
 
const RBDS::BranchMap & BranchesToBeActivated () const
 Access the map of all branches to be activated per tree.
 
bool AllBranchesToBeActivated () const
 
void SetBranchToBeActivated (const std::string &treeName, const std::string &branchName)
 Set a branch to be activated if not already.
 
void PrintHistogramSetDefinitions () const
 
std::string GetOptionString (const std::string &key) const
 General accessor for option.
 
bool GetOptionBool (const std::string &key) const
 General accessor for option.
 
double GetOptionNumber (const std::string &key) const
 General accessor for option.
 
std::string InputFilePath () const
 Accessor.
 
std::string OutputFileName () const
 Accessor.
 
std::string CalculateOpticalFunctionsFileName () const
 Accessor.
 
bool Debug () const
 Accessor.
 
bool CalculateOpticalFunctions () const
 Accessor.
 
bool EmittanceOnTheFly () const
 Accessor.
 
bool ProcessSamplers () const
 Accessor.
 
bool PrintOut () const
 Accessor.
 
double PrintModuloFraction () const
 Accessor.
 
bool PerEntryBeam () const
 
bool PerEntryEvent () const
 
bool PerEntryRun () const
 
bool PerEntryOption () const
 
bool PerEntryModel () const
 

Static Public Member Functions

static ConfigInstance (const std::string &fileName="", const std::string &inputFilePath="", const std::string &outputFileName="", const std::string &defaultOutputFileSuffix="_ana")
 Singleton accessor.
 

Protected Member Functions

 Config ()=delete
 Private constructor for singleton pattern.
 
 Config (const std::string &inputFilePathIn, const std::string &outputFileNameIn, const std::string &defaultOutputFileSuffix="_ana")
 Constructor used when merging only.
 
 Config (const std::string &fileNameIn, const std::string &inputFilePathIn, const std::string &outputFileNameIn, const std::string &defaultOutputFileSuffix)
 Desired constructor, also private for singleton pattern.
 
void InitialiseOptions (const std::string &analysisFile)
 
void ParseHistogramLine (const std::string &line)
 Parse a line beginning with histogram. Uses other functions if appropriately defined.
 
void ParseSpectraLine (const std::string &line)
 Parse a spectra definition line.
 
void ParseParticleSetLine (const std::string &line)
 Parse a particle set line.
 
void ParseHistogram (const std::string &line, const int nDim)
 Parse everything after the histogram declaration and check all parameters.
 
void ParsePerEntry (const std::string &name, bool &perEntry) const
 
bool ContainsWordCI (const std::string &input, const std::string &word) const
 Return true if 'input' contains 'word' - CI = case insensitive.
 
void ParseLog (const std::string &definition, bool &xLog, bool &yLog, bool &zLog) const
 Parse whether each dimension is log or linear.
 
void UpdateRequiredBranches (const HistogramDef *def)
 
void UpdateRequiredBranches (const std::string &treeName, const std::string &var)
 
bool InvalidTreeName (const std::string &treeName) const
 
void CheckValidTreeName (std::string &treeName) const
 
void ParseBins (const std::string &bins, int nDim, BinSpecification &xBinning, BinSpecification &yBinning, BinSpecification &zBinning) const
 
void ParseBinning (const std::string &binning, int nDim, BinSpecification &xBinning, BinSpecification &yBinning, BinSpecification &zBinning, bool xLog, bool yLog, bool zLog) const
 
std::vector< std::string > SplitOnWhiteSpace (const std::string &line) const
 Return a vector of strings by splitting on whitespace.
 
std::set< ParticleSpec > ParseParticles (const std::string &word) const
 Parser a list of particle PDG IDs into a set.
 
void ParseSetting (const std::string &line)
 Parse a settings line in input file and appropriate update member map.
 
std::string LowerCase (const std::string &st) const
 Return a lower case copy of a string.
 
bool RegisterHistogramName (const std::string &newHistName)
 
 ClassDef (Config, 1)
 

Protected Attributes

int lineCounter = 0
 Index of which line in the file we're on while parsing - for feedback.
 
RBDS::BranchMap branches
 Cache of which branches need to be activated for this analysis.
 
bool allBranchesActivated
 Whether all branches will be activated - ie for optics.
 
std::map< std::string, int > spectraNames
 
std::set< std::string > histogramNames
 

Static Protected Attributes

static Configinstance
 
static std::vector< std::string > treeNames
 Vector of permitted tree names.
 

Private Attributes

std::map< std::string, std::string > alternateKeys
 Private members first as required in accessors.
 
std::map< std::string, std::vector< HistogramDef * > > histoDefs
 
std::map< std::string, std::vector< HistogramDef * > > histoDefsSimple
 Copy of definition used to identify only 'simple' histogram definitions. Doesn't own.
 
std::map< std::string, std::vector< HistogramDef * > > histoDefsPerEntry
 Copy of definition used to identify only 'per entry' histogram definitions. Doesn't own.
 
std::vector< HistogramDefSet * > eventHistoDefSetsSimple
 Sets of histogram definitions per particle. Only for event branch.
 
std::vector< HistogramDefSet * > eventHistoDefSetsPerEntry
 
std::vector< std::string > eventParticleSetBranches
 List of branches in event tree to produce ParticleSet objects on. (per event and simple).
 
std::vector< std::string > eventParticleSetSimpleBranches
 
std::map< std::string, bool > optionsBool
 Storage of options.
 
std::map< std::string, std::string > optionsString
 Storage of options.
 
std::map< std::string, double > optionsNumber
 Storage of options.
 

Detailed Description

Configuration and configuration parser class.

Author
Stewart Boogert

Definition at line 42 of file Config.hh.

Constructor & Destructor Documentation

◆ ~Config()

Config::~Config ( )
virtual

Definition at line 99 of file Config.cc.

◆ Config() [1/2]

Config::Config ( const std::string &  inputFilePathIn,
const std::string &  outputFileNameIn,
const std::string &  defaultOutputFileSuffix = "_ana" 
)
protected

Constructor used when merging only.

Definition at line 50 of file Config.cc.

References branches, RBDS::DefaultOutputName(), InitialiseOptions(), optionsBool, and optionsString.

Here is the call graph for this function:

◆ Config() [2/2]

Config::Config ( const std::string &  fileNameIn,
const std::string &  inputFilePathIn,
const std::string &  outputFileNameIn,
const std::string &  defaultOutputFileSuffix 
)
protected

Desired constructor, also private for singleton pattern.

Definition at line 75 of file Config.cc.

References RBDS::DefaultOutputName(), InitialiseOptions(), and optionsString.

Here is the call graph for this function:

Member Function Documentation

◆ AllBranchesToBeActivated()

bool Config::AllBranchesToBeActivated ( ) const
inline

Boolean whether all branches should be turned on irrespective of map of individual branches to turn on.

Definition at line 122 of file Config.hh.

References allBranchesActivated.

◆ BranchesToBeActivated() [1/2]

const RBDS::BranchMap & Config::BranchesToBeActivated ( ) const
inline

Access the map of all branches to be activated per tree.

Definition at line 118 of file Config.hh.

References branches.

◆ BranchesToBeActivated() [2/2]

const RBDS::VectorString & Config::BranchesToBeActivated ( const std::string &  treeName) const
inline

Access all branches that are required for activation. This does not specialise on the leaf inside the branch and if one variable is required, the whole branch will be activated as there isn't much difference. This can of course be revised in future.

Definition at line 114 of file Config.hh.

References branches.

◆ CalculateOpticalFunctions()

bool Config::CalculateOpticalFunctions ( ) const
inline

Accessor.

Definition at line 132 of file Config.hh.

References optionsBool.

◆ CalculateOpticalFunctionsFileName()

std::string Config::CalculateOpticalFunctionsFileName ( ) const
inline

Accessor.

Definition at line 130 of file Config.hh.

References optionsString.

◆ CheckValidTreeName()

void Config::CheckValidTreeName ( std::string &  treeName) const
protected

Check whether the tree name ends in a '.' or not and fix it (simple mistake. Then apply InvalidTreeName and throw std::string error if it's a problem.

Definition at line 563 of file Config.cc.

References InvalidTreeName(), and treeNames.

Referenced by ParseHistogram().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ContainsWordCI()

bool Config::ContainsWordCI ( const std::string &  input,
const std::string &  word 
) const
protected

Return true if 'input' contains 'word' - CI = case insensitive.

Definition at line 494 of file Config.cc.

References LowerCase().

Referenced by ParseSpectraLine().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Debug()

bool Config::Debug ( ) const
inline

Accessor.

Definition at line 131 of file Config.hh.

References optionsBool.

◆ EmittanceOnTheFly()

bool Config::EmittanceOnTheFly ( ) const
inline

Accessor.

Definition at line 133 of file Config.hh.

References optionsBool.

◆ EventHistogramSetDefinitionsPerEntry()

const std::vector< HistogramDefSet * > & Config::EventHistogramSetDefinitionsPerEntry ( ) const
inline

Definition at line 105 of file Config.hh.

◆ EventHistogramSetDefinitionsSimple()

const std::vector< HistogramDefSet * > & Config::EventHistogramSetDefinitionsSimple ( ) const
inline

Definition at line 102 of file Config.hh.

◆ EventParticleSetNamesPerEntry()

const std::vector< std::string > & Config::EventParticleSetNamesPerEntry ( ) const
inline

Definition at line 109 of file Config.hh.

◆ EventParticleSetNamesSimple()

const std::vector< std::string > & Config::EventParticleSetNamesSimple ( ) const
inline

Definition at line 108 of file Config.hh.

◆ GetOptionBool()

bool Config::GetOptionBool ( const std::string &  key) const
inline

General accessor for option.

Definition at line 86 of file Config.hh.

References optionsBool.

◆ GetOptionNumber()

double Config::GetOptionNumber ( const std::string &  key) const
inline

General accessor for option.

Definition at line 87 of file Config.hh.

References optionsNumber.

◆ GetOptionString()

std::string Config::GetOptionString ( const std::string &  key) const
inline

General accessor for option.

Definition at line 85 of file Config.hh.

References optionsString.

◆ HistogramDefinitions()

const std::vector< HistogramDef * > & Config::HistogramDefinitions ( const std::string &  treeName) const
inline

Access all histogram definitions.

Definition at line 91 of file Config.hh.

References histoDefs.

◆ HistogramDefinitionsPerEntry()

const std::vector< HistogramDef * > & Config::HistogramDefinitionsPerEntry ( const std::string &  treeName) const
inline

Access all per entry histogram definitions - throws exception if out of range.

Definition at line 99 of file Config.hh.

References histoDefsPerEntry.

◆ HistogramDefinitionsSimple()

const std::vector< HistogramDef * > & Config::HistogramDefinitionsSimple ( const std::string &  treeName) const
inline

Access all simple histogram definitions - throws exception if out of range.

Definition at line 95 of file Config.hh.

References histoDefsSimple.

Referenced by Analysis::SimpleHistograms().

Here is the caller graph for this function:

◆ InitialiseOptions()

void Config::InitialiseOptions ( const std::string &  analysisFile)
protected

Set defaults in member maps for all options so that the keys can always be accessed.

Definition at line 114 of file Config.cc.

References alternateKeys, branches, histoDefs, histoDefsPerEntry, histoDefsSimple, optionsBool, optionsNumber, optionsString, and treeNames.

Referenced by Config().

Here is the caller graph for this function:

◆ InputFilePath()

std::string Config::InputFilePath ( ) const
inline

Accessor.

Definition at line 128 of file Config.hh.

References optionsString.

◆ Instance()

Config * Config::Instance ( const std::string &  fileName = "",
const std::string &  inputFilePath = "",
const std::string &  outputFileName = "",
const std::string &  defaultOutputFileSuffix = "_ana" 
)
static

Singleton accessor.

Definition at line 155 of file Config.cc.

References Config().

Referenced by Analysis::PreparePerEntryHistograms(), Analysis::SimpleHistograms(), and EventAnalysis::SimpleHistograms().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ InvalidTreeName()

bool Config::InvalidTreeName ( const std::string &  treeName) const
protected

Check if the supplied tree name is one of the static member vector of allowed tree names.

Definition at line 579 of file Config.cc.

References treeNames.

Referenced by CheckValidTreeName().

Here is the caller graph for this function:

◆ LowerCase()

std::string Config::LowerCase ( const std::string &  st) const
protected

Return a lower case copy of a string.

Definition at line 762 of file Config.cc.

Referenced by ContainsWordCI(), ParseHistogram(), ParseHistogramLine(), ParseLog(), ParseParticles(), ParsePerEntry(), and ParseSetting().

Here is the caller graph for this function:

◆ OutputFileName()

std::string Config::OutputFileName ( ) const
inline

Accessor.

Definition at line 129 of file Config.hh.

References optionsString.

◆ ParseBinning()

void Config::ParseBinning ( const std::string &  binning,
int  nDim,
BinSpecification xBinning,
BinSpecification yBinning,
BinSpecification zBinning,
bool  xLog,
bool  yLog,
bool  zLog 
) const
protected

Parse binning substring and check it has the right number of dimensions. Writes out via reference to pre-existing variables.

Definition at line 602 of file Config.cc.

References lineCounter, and RBDS::LoadBins().

Referenced by ParseHistogram(), and ParseSpectraLine().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseBins()

void Config::ParseBins ( const std::string &  bins,
int  nDim,
BinSpecification xBinning,
BinSpecification yBinning,
BinSpecification zBinning 
) const
protected

Parse the bin substring and check it has the right number of dimensions. Writes out via reference to pre-existing variables.

Definition at line 584 of file Config.cc.

Referenced by ParseHistogram(), and ParseSpectraLine().

Here is the caller graph for this function:

◆ ParseHistogram()

void Config::ParseHistogram ( const std::string &  line,
const int  nDim 
)
protected

Parse everything after the histogram declaration and check all parameters.

Definition at line 278 of file Config.cc.

References CheckValidTreeName(), histoDefs, histoDefsPerEntry, histoDefsSimple, LowerCase(), optionsBool, ParseBinning(), ParseBins(), ParseLog(), ParsePerEntry(), RegisterHistogramName(), and UpdateRequiredBranches().

Referenced by ParseHistogramLine().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseHistogramLine()

void Config::ParseHistogramLine ( const std::string &  line)
protected

Parse a line beginning with histogram. Uses other functions if appropriately defined.

Definition at line 252 of file Config.cc.

References LowerCase(), ParseHistogram(), and ParseSetting().

Here is the call graph for this function:

◆ ParseInputFile()

void Config::ParseInputFile ( )

Definition at line 174 of file Config.cc.

◆ ParseLog()

void Config::ParseLog ( const std::string &  definition,
bool &  xLog,
bool &  yLog,
bool &  zLog 
) const
protected

Parse whether each dimension is log or linear.

Definition at line 502 of file Config.cc.

References LowerCase().

Referenced by ParseHistogram(), and ParseSpectraLine().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseParticles()

std::set< ParticleSpec > Config::ParseParticles ( const std::string &  word) const
protected

Parser a list of particle PDG IDs into a set.

Definition at line 697 of file Config.cc.

References LowerCase().

Referenced by ParseSpectraLine().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseParticleSetLine()

void Config::ParseParticleSetLine ( const std::string &  line)
protected

Parse a particle set line.

Definition at line 469 of file Config.cc.

References eventParticleSetBranches, ParsePerEntry(), SetBranchToBeActivated(), and SplitOnWhiteSpace().

Here is the call graph for this function:

◆ ParsePerEntry()

void Config::ParsePerEntry ( const std::string &  name,
bool &  perEntry 
) const
protected

Check whether a histogram definition word contains the world 'simple' and if so, it's not a per-entry histogram.

Definition at line 488 of file Config.cc.

References LowerCase().

Referenced by ParseHistogram(), ParseParticleSetLine(), and ParseSpectraLine().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseSetting()

void Config::ParseSetting ( const std::string &  line)
protected

Parse a settings line in input file and appropriate update member map.

Definition at line 769 of file Config.cc.

References alternateKeys, LowerCase(), optionsBool, optionsNumber, and optionsString.

Referenced by ParseHistogramLine().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseSpectraLine()

void Config::ParseSpectraLine ( const std::string &  line)
protected

Parse a spectra definition line.

Definition at line 391 of file Config.cc.

References ContainsWordCI(), eventHistoDefSetsSimple, ParseBinning(), ParseBins(), ParseLog(), ParseParticles(), ParsePerEntry(), SetBranchToBeActivated(), spectraNames, and SplitOnWhiteSpace().

Here is the call graph for this function:

◆ PerEntryBeam()

bool Config::PerEntryBeam ( ) const
inline

Whether per entry loading is needed. Alternative is only TTree->Draw().

Definition at line 139 of file Config.hh.

References optionsBool.

◆ PerEntryEvent()

bool Config::PerEntryEvent ( ) const
inline

Whether per entry loading is needed. Alternative is only TTree->Draw().

Definition at line 140 of file Config.hh.

References optionsBool.

◆ PerEntryModel()

bool Config::PerEntryModel ( ) const
inline

Whether per entry loading is needed. Alternative is only TTree->Draw().

Definition at line 143 of file Config.hh.

References optionsBool.

◆ PerEntryOption()

bool Config::PerEntryOption ( ) const
inline

Whether per entry loading is needed. Alternative is only TTree->Draw().

Definition at line 142 of file Config.hh.

References optionsBool.

◆ PerEntryRun()

bool Config::PerEntryRun ( ) const
inline

Whether per entry loading is needed. Alternative is only TTree->Draw().

Definition at line 141 of file Config.hh.

References optionsBool.

◆ PrintHistogramSetDefinitions()

void Config::PrintHistogramSetDefinitions ( ) const

Print out the per event and simple histogram set definitions as these are (assumed to be) spectra definitions that people might want to see expanded.

Definition at line 553 of file Config.cc.

References eventHistoDefSetsSimple.

◆ PrintModuloFraction()

double Config::PrintModuloFraction ( ) const
inline

Accessor.

Definition at line 136 of file Config.hh.

References optionsNumber.

◆ PrintOut()

bool Config::PrintOut ( ) const
inline

Accessor.

Definition at line 135 of file Config.hh.

References optionsBool.

◆ ProcessSamplers()

bool Config::ProcessSamplers ( ) const
inline

Accessor.

Definition at line 134 of file Config.hh.

References optionsBool.

◆ RegisterHistogramName()

bool Config::RegisterHistogramName ( const std::string &  newHistName)
protected

Register a histogram name for future checking against. If it already exists, the function returns true, else false for successful registration.

Definition at line 809 of file Config.cc.

Referenced by ParseHistogram().

Here is the caller graph for this function:

◆ SetBranchToBeActivated()

void Config::SetBranchToBeActivated ( const std::string &  treeName,
const std::string &  branchName 
)

Set a branch to be activated if not already.

Definition at line 545 of file Config.cc.

References branches.

Referenced by ParseParticleSetLine(), ParseSpectraLine(), and UpdateRequiredBranches().

Here is the caller graph for this function:

◆ SplitOnWhiteSpace()

std::vector< std::string > Config::SplitOnWhiteSpace ( const std::string &  line) const
protected

Return a vector of strings by splitting on whitespace.

Definition at line 682 of file Config.cc.

Referenced by ParseParticleSetLine(), and ParseSpectraLine().

Here is the caller graph for this function:

◆ UpdateRequiredBranches() [1/2]

void Config::UpdateRequiredBranches ( const HistogramDef def)
protected

Update the vector of required branches for a particular tree to be activated for analysis. Note this is not required for simple histograms that will be used with TTree->Draw(). Only per-entry histograms require loading the data.

Definition at line 520 of file Config.cc.

References UpdateRequiredBranches().

Referenced by ParseHistogram(), and UpdateRequiredBranches().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdateRequiredBranches() [2/2]

void Config::UpdateRequiredBranches ( const std::string &  treeName,
const std::string &  var 
)
protected

Update the vector of required branches for a particular tree to be activated for analysis based on a single string definition such as Primary.x.

Definition at line 526 of file Config.cc.

References SetBranchToBeActivated().

Here is the call graph for this function:

Field Documentation

◆ allBranchesActivated

bool Config::allBranchesActivated
protected

Whether all branches will be activated - ie for optics.

Definition at line 258 of file Config.hh.

Referenced by AllBranchesToBeActivated().

◆ alternateKeys

std::map<std::string, std::string> Config::alternateKeys
private

Private members first as required in accessors.

Optional version of option keys in file.

Definition at line 47 of file Config.hh.

Referenced by InitialiseOptions(), and ParseSetting().

◆ branches

RBDS::BranchMap Config::branches
protected

Cache of which branches need to be activated for this analysis.

Definition at line 255 of file Config.hh.

Referenced by BranchesToBeActivated(), Config(), InitialiseOptions(), and SetBranchToBeActivated().

◆ eventHistoDefSetsPerEntry

std::vector<HistogramDefSet*> Config::eventHistoDefSetsPerEntry
private

Definition at line 67 of file Config.hh.

◆ eventHistoDefSetsSimple

std::vector<HistogramDefSet*> Config::eventHistoDefSetsSimple
private

Sets of histogram definitions per particle. Only for event branch.

Definition at line 66 of file Config.hh.

Referenced by ParseSpectraLine(), and PrintHistogramSetDefinitions().

◆ eventParticleSetBranches

std::vector<std::string> Config::eventParticleSetBranches
private

List of branches in event tree to produce ParticleSet objects on. (per event and simple).

Definition at line 70 of file Config.hh.

Referenced by ParseParticleSetLine().

◆ eventParticleSetSimpleBranches

std::vector<std::string> Config::eventParticleSetSimpleBranches
private

Definition at line 71 of file Config.hh.

◆ histoDefs

std::map<std::string, std::vector<HistogramDef*> > Config::histoDefs
private

Storage of histogram options. This owns the HistogramDef objects. Key is tree name, value is vector of all histogram definitions for that tree.

Definition at line 57 of file Config.hh.

Referenced by HistogramDefinitions(), InitialiseOptions(), and ParseHistogram().

◆ histoDefsPerEntry

std::map<std::string, std::vector<HistogramDef*> > Config::histoDefsPerEntry
private

Copy of definition used to identify only 'per entry' histogram definitions. Doesn't own.

Definition at line 63 of file Config.hh.

Referenced by HistogramDefinitionsPerEntry(), InitialiseOptions(), and ParseHistogram().

◆ histoDefsSimple

std::map<std::string, std::vector<HistogramDef*> > Config::histoDefsSimple
private

Copy of definition used to identify only 'simple' histogram definitions. Doesn't own.

Definition at line 60 of file Config.hh.

Referenced by HistogramDefinitionsSimple(), InitialiseOptions(), and ParseHistogram().

◆ histogramNames

std::set<std::string> Config::histogramNames
protected

Definition at line 264 of file Config.hh.

◆ instance

Config* Config::instance
staticprotected

Definition at line 246 of file Config.hh.

◆ lineCounter

int Config::lineCounter = 0
protected

Index of which line in the file we're on while parsing - for feedback.

Definition at line 252 of file Config.hh.

Referenced by ParseBinning().

◆ optionsBool

std::map<std::string, bool> Config::optionsBool
private

◆ optionsNumber

std::map<std::string, double> Config::optionsNumber
private

Storage of options.

Definition at line 52 of file Config.hh.

Referenced by GetOptionNumber(), InitialiseOptions(), ParseSetting(), and PrintModuloFraction().

◆ optionsString

std::map<std::string, std::string> Config::optionsString
private

◆ spectraNames

std::map<std::string, int> Config::spectraNames
protected

Cache of all spectra names declared to permit unique naming of histograms when there's more than one spectra per branch used.

Definition at line 262 of file Config.hh.

Referenced by ParseSpectraLine().

◆ treeNames

std::vector<std::string> Config::treeNames
staticprotected

Vector of permitted tree names.

Definition at line 249 of file Config.hh.

Referenced by CheckValidTreeName(), InitialiseOptions(), and InvalidTreeName().


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