Hammer
1.0.0
Helicity Amplitude Module for Matrix Element Reweighting
|
Base class to access the settings repository. More...
#include <SettingsConsumer.hh>
Public Member Functions | |
virtual void | setSettingsHandler (SettingsHandler &sh) |
set link to settings repository handler. More... | |
void | setSettingsHandler (const SettingsConsumer &other) |
SettingsHandler * | getSettingsHandler () const |
provide the pointer to the repository handler More... | |
WTerm | setWeightTerm (WTerm group) |
virtual void | addRefs () const |
Constructors | |
SettingsConsumer () | |
base constructor More... | |
SettingsConsumer (const SettingsConsumer &)=default | |
default copy constructor More... | |
SettingsConsumer & | operator= (const SettingsConsumer &)=default |
virtual | ~SettingsConsumer () |
virtual destructor More... | |
Protected Member Functions | |
virtual void | defineSettings ()=0 |
purely virtual function for a class to define new settings More... | |
Log & | getLog () const |
logging facility More... | |
void | initSettings () |
void | setPath (const std::string &path) |
provide the basic path for the settings defined by this class, as in "<path>:<setting>" More... | |
template<typename T > | |
void | addSetting (const std::string &name, const T &defaultValue) |
template method to add a new setting More... | |
void | removeSetting (const std::string &name) |
template<typename T > | |
T * | getSetting (const std::string &name) const |
template method to return a setting defined by this class More... | |
template<typename T > | |
T * | getSetting (const std::string &otherPath, const std::string &name) const |
template method to return a setting defined by this class More... | |
bool | isOn (const std::string &name) const |
method to check a boolean setting defined by this class More... | |
bool | isOn (const std::string &otherPath, const std::string &name) const |
method to check a boolean setting by its name and path More... | |
template<typename T > | |
void | updateVectorOfSettings (const std::vector< T > &values, const std::vector< std::string > &names, const std::string &path="", WTerm group=WTerm::COMMON) |
template<typename T > | |
void | updateVectorOfSettings (const std::map< std::string, T > &values, const std::string &path="", WTerm group=WTerm::COMMON) |
Protected Attributes | |
SettingsHandler * | _settingHandler |
pointer to the settings repository handler. More... | |
std::string | _settingPath |
path of the settings defined by this class More... | |
WTerm | _group |
std::set< std::string > | _ownedSettings |
Private Member Functions | |
void | checkAndCleanSettings () |
Base class to access the settings repository.
Implements the basic interface for querying and defining settings
Definition at line 28 of file SettingsConsumer.hh.
Hammer::SettingsConsumer::SettingsConsumer | ( | ) |
base constructor
Definition at line 18 of file SettingsConsumer.cc.
|
default |
default copy constructor
|
inlinevirtual |
virtual destructor
Definition at line 43 of file SettingsConsumer.hh.
|
virtual |
Reimplemented in Hammer::FFBLPRBase, Hammer::FFISGW2Base, Hammer::FFBGLBase, Hammer::FFCLNBase, Hammer::FFPCRBase, Hammer::FFRCTBase, Hammer::FFBLRBase, Hammer::FFBLRSBase, Hammer::FFLLSWBase, Hammer::AmplBD0starLepNu, Hammer::AmplBD1LepNu, Hammer::AmplBD1starLepNu, Hammer::AmplBD2starLepNu, Hammer::AmplBDLepNu, Hammer::AmplBDstarDGamLepNu, Hammer::AmplBDstarDPiLepNu, Hammer::AmplBDstarLepNu, and Hammer::AmplLbLcLepNu.
Definition at line 45 of file SettingsConsumer.cc.
|
protected |
template method to add a new setting
[in] | name | the name of the setting |
[in] | defaultValue | default value of the setting |
Definition at line 19 of file SettingsConsumerDefs.hh.
|
private |
Definition at line 95 of file SettingsConsumer.cc.
|
protectedpure virtual |
purely virtual function for a class to define new settings
Implemented in Hammer::Hammer, Hammer::Histos, Hammer::ExternalData, Hammer::Event, Hammer::Process, Hammer::ProvidersRepo, Hammer::FFBLPRBase, Hammer::ProcResults, Hammer::DictionaryManager, Hammer::ProcManager, Hammer::FormFactorBase, Hammer::AmplitudeBase, Hammer::RateBase, Hammer::ProcRates, Hammer::FFISGW2Base, Hammer::FFBGLBase, Hammer::FFCLNBase, Hammer::FFPCRBase, Hammer::FFRCTBase, Hammer::FFBLRBase, Hammer::FFBLRSBase, Hammer::FFLLSWBase, Hammer::FFTauto3PiRCT, Hammer::FFLbtoLcBLRS, Hammer::FFLbtoLcBLRSVar, Hammer::FFLbtoLcPCR, Hammer::FFBtoD0starISGW2, Hammer::FFBtoD1ISGW2, Hammer::FFBtoD1starISGW2, Hammer::FFBtoD2starISGW2, Hammer::FFBtoDCLN, Hammer::FFBtoDISGW2, Hammer::FFBtoDstarBGL, Hammer::FFBtoDstarBGLVar, Hammer::FFBtoDstarCLN, Hammer::FFBtoDstarISGW2, Hammer::FFBtoD0starBLR, Hammer::FFBtoD0starBLRVar, Hammer::FFBtoD0starLLSW, Hammer::FFBtoD1BLR, Hammer::FFBtoD1BLRVar, Hammer::FFBtoD1LLSW, Hammer::FFBtoD1starBLR, Hammer::FFBtoD1starBLRVar, Hammer::FFBtoD1starLLSW, Hammer::FFBtoD2starBLR, Hammer::FFBtoD2starBLRVar, Hammer::FFBtoD2starLLSW, Hammer::FFBtoDBGL, Hammer::FFBtoDBGLVar, Hammer::FFBtoDBLPR, Hammer::FFBtoDBLPRVar, Hammer::FFBtoDstarBLPR, Hammer::FFBtoDstarBLPRVar, Hammer::FFBtoDstarCLNVar, Hammer::AmplBToQLepNuBase, Hammer::AmplTau3PiNu, Hammer::AmplTauEllNuNu, and Hammer::AmplTauPiNu.
|
protected |
logging facility
Definition at line 110 of file SettingsConsumer.cc.
|
protected |
template method to return a setting defined by this class
[in] | name | the name of the setting |
Definition at line 29 of file SettingsConsumerDefs.hh.
|
protected |
template method to return a setting defined by this class
[in] | otherPath | the name of the setting |
[in] | name | the name of the setting |
Definition at line 38 of file SettingsConsumerDefs.hh.
SettingsHandler * Hammer::SettingsConsumer::getSettingsHandler | ( | ) | const |
provide the pointer to the repository handler
Definition at line 61 of file SettingsConsumer.cc.
|
protected |
Definition at line 38 of file SettingsConsumer.cc.
|
protected |
method to check a boolean setting defined by this class
[in] | name | the name of the setting |
Definition at line 25 of file SettingsConsumer.cc.
|
protected |
method to check a boolean setting by its name and path
[in] | otherPath | the path of the setting |
[in] | name | the name of the setting |
Definition at line 48 of file SettingsConsumer.cc.
|
default |
|
protected |
[in] | name |
Definition at line 87 of file SettingsConsumer.cc.
|
protected |
provide the basic path for the settings defined by this class, as in "<path>:<setting>"
[in] | path | the class name/path |
Definition at line 21 of file SettingsConsumer.cc.
|
virtual |
set link to settings repository handler.
[in] | sh | the settings handler |
Reimplemented in Hammer::DictionaryManager, Hammer::ProcManager, and Hammer::ProvidersRepo.
Definition at line 65 of file SettingsConsumer.cc.
void Hammer::SettingsConsumer::setSettingsHandler | ( | const SettingsConsumer & | other | ) |
Definition at line 73 of file SettingsConsumer.cc.
Definition at line 81 of file SettingsConsumer.cc.
|
protected |
Definition at line 47 of file SettingsConsumerDefs.hh.
|
protected |
Definition at line 62 of file SettingsConsumerDefs.hh.
|
protected |
Definition at line 135 of file SettingsConsumer.hh.
|
protected |
Definition at line 137 of file SettingsConsumer.hh.
|
protected |
pointer to the settings repository handler.
Static allows to be initialized once (usually in Run
class) and shared among all other SettingsConsumer
derived classes
Definition at line 130 of file SettingsConsumer.hh.
|
protected |
path of the settings defined by this class
Definition at line 133 of file SettingsConsumer.hh.