![]() |
Hammer
1.0.0
Helicity Amplitude Module for Matrix Element Reweighting
|
Main class. More...
#include <DictionaryManager.hh>
Inheritance diagram for Hammer::DictionaryManager:
Collaboration diagram for Hammer::DictionaryManager:Public Member Functions | |
| DictionaryManager () | |
| DictionaryManager (const DictionaryManager &other)=delete | |
| DictionaryManager & | operator= (const DictionaryManager &other)=delete |
| DictionaryManager (DictionaryManager &&other)=delete | |
| DictionaryManager & | operator= (DictionaryManager &&other)=delete |
| virtual | ~DictionaryManager () noexcept |
| void | init () |
| virtual const ProvidersRepo & | providers () const |
| virtual const ExternalData & | externalData () const |
| virtual ExternalData & | externalData () |
| virtual const ProcRates & | rates () const |
| virtual ProcRates & | rates () |
| virtual const ProcessDefinitions & | processDefs () const |
| virtual ProcessDefinitions & | processDefs () |
| virtual const PurePhaseSpaceDefs & | purePSDefs () const |
| virtual PurePhaseSpaceDefs & | purePSDefs () |
| virtual const SchemeDefinitions & | schemeDefs () const |
| virtual SchemeDefinitions & | schemeDefs () |
| virtual void | setSettingsHandler (SettingsHandler &sh) |
| set link to settings repository handler. More... | |
| void | write (flatbuffers::FlatBufferBuilder *msgwriter) const |
| bool | read (const Serial::FBHeader *msgreader, bool merge) |
| void | readDecays (const std::string &fileName) |
| read Hammer settings from a file More... | |
| void | parseDecays (const std::string &yamlData) |
| read Hammer settings from a string More... | |
| void | saveDecays (const std::string &fileName) |
| write current Hammer settings to a file More... | |
Public Member Functions inherited from Hammer::SettingsConsumer | |
| void | setSettingsHandler (const SettingsConsumer &other) |
| SettingsHandler * | getSettingsHandler () const |
| provide the pointer to the repository handler More... | |
| WTerm | setWeightTerm (WTerm group) |
| virtual void | addRefs () const |
| SettingsConsumer () | |
| base constructor More... | |
| SettingsConsumer (const SettingsConsumer &)=default | |
| default copy constructor More... | |
| SettingsConsumer & | operator= (const SettingsConsumer &)=default |
| virtual | ~SettingsConsumer () |
| virtual destructor More... | |
Private Member Functions | |
| void | processDecays (const YAML::Node &input) |
| virtual void | defineSettings () |
| purely virtual function for a class to define new settings More... | |
| Log & | getLog () const |
Private Attributes | |
| std::unique_ptr < SchemeDefinitions > | _schemeDefs |
| std::unique_ptr< ProvidersRepo > | _providers |
| std::unique_ptr< ExternalData > | _external |
| std::unique_ptr< ProcRates > | _rates |
| std::unique_ptr < PurePhaseSpaceDefs > | _purePSDefs |
| std::unique_ptr < ProcessDefinitions > | _procDefs |
Additional Inherited Members | |
Protected Member Functions inherited from Hammer::SettingsConsumer | |
| 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 inherited from Hammer::SettingsConsumer | |
| 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 |
| Hammer::DictionaryManager::DictionaryManager | ( | ) |
Definition at line 43 of file DictionaryManager.cc.
|
delete |
|
delete |
|
virtualnoexcept |
Definition at line 65 of file DictionaryManager.cc.
|
privatevirtual |
purely virtual function for a class to define new settings
Implements Hammer::SettingsConsumer.
Definition at line 113 of file DictionaryManager.cc.
|
virtual |
Definition at line 72 of file DictionaryManager.cc.
|
virtual |
Definition at line 76 of file DictionaryManager.cc.
|
private |
Definition at line 130 of file DictionaryManager.cc.
| void Hammer::DictionaryManager::init | ( | ) |
Definition at line 116 of file DictionaryManager.cc.
|
delete |
|
delete |
| void Hammer::DictionaryManager::parseDecays | ( | const std::string & | yamlData | ) |
read Hammer settings from a string
| [in] | yamlData | the decay options |
Definition at line 167 of file DictionaryManager.cc.
|
private |
| [in] | input |
Definition at line 177 of file DictionaryManager.cc.
|
virtual |
Definition at line 88 of file DictionaryManager.cc.
|
virtual |
Definition at line 92 of file DictionaryManager.cc.
|
virtual |
Definition at line 68 of file DictionaryManager.cc.
|
virtual |
Definition at line 100 of file DictionaryManager.cc.
|
virtual |
Definition at line 96 of file DictionaryManager.cc.
|
virtual |
Definition at line 80 of file DictionaryManager.cc.
|
virtual |
Definition at line 84 of file DictionaryManager.cc.
| bool Hammer::DictionaryManager::read | ( | const Serial::FBHeader * | msgreader, |
| bool | merge | ||
| ) |
Definition at line 155 of file DictionaryManager.cc.
| void Hammer::DictionaryManager::readDecays | ( | const std::string & | fileName | ) |
read Hammer settings from a file
| [in] | fileName | the file name |
Definition at line 172 of file DictionaryManager.cc.
| void Hammer::DictionaryManager::saveDecays | ( | const std::string & | fileName | ) |
write current Hammer settings to a file
| [in] | fileName | the file name |
Definition at line 205 of file DictionaryManager.cc.
|
virtual |
Definition at line 108 of file DictionaryManager.cc.
|
virtual |
Definition at line 104 of file DictionaryManager.cc.
|
virtual |
set link to settings repository handler.
| [in] | sh | the settings handler |
Reimplemented from Hammer::SettingsConsumer.
Definition at line 52 of file DictionaryManager.cc.
| void Hammer::DictionaryManager::write | ( | flatbuffers::FlatBufferBuilder * | msgwriter | ) | const |
Definition at line 134 of file DictionaryManager.cc.
|
private |
Definition at line 113 of file DictionaryManager.hh.
|
private |
Definition at line 116 of file DictionaryManager.hh.
|
private |
Definition at line 112 of file DictionaryManager.hh.
|
private |
Definition at line 115 of file DictionaryManager.hh.
|
private |
Definition at line 114 of file DictionaryManager.hh.
|
private |
Definition at line 111 of file DictionaryManager.hh.