Hammer  1.0.0
Helicity Amplitude Module for Matrix Element Reweighting
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Hammer::DictionaryManager Class Reference

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
 
DictionaryManageroperator= (const DictionaryManager &other)=delete
 
 DictionaryManager (DictionaryManager &&other)=delete
 
DictionaryManageroperator= (DictionaryManager &&other)=delete
 
virtual ~DictionaryManager () noexcept
 
void init ()
 
virtual const ProvidersRepoproviders () const
 
virtual const ExternalDataexternalData () const
 
virtual ExternalDataexternalData ()
 
virtual const ProcRatesrates () const
 
virtual ProcRatesrates ()
 
virtual const ProcessDefinitionsprocessDefs () const
 
virtual ProcessDefinitionsprocessDefs ()
 
virtual const PurePhaseSpaceDefspurePSDefs () const
 
virtual PurePhaseSpaceDefspurePSDefs ()
 
virtual const SchemeDefinitionsschemeDefs () const
 
virtual SchemeDefinitionsschemeDefs ()
 
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)
 
SettingsHandlergetSettingsHandler () 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...
 
SettingsConsumeroperator= (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...
 
LoggetLog () 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
LoggetLog () 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
 

Detailed Description

Main class.

Contains ...

Definition at line 45 of file DictionaryManager.hh.

Constructor & Destructor Documentation

Hammer::DictionaryManager::DictionaryManager ( )

Definition at line 43 of file DictionaryManager.cc.

Hammer::DictionaryManager::DictionaryManager ( const DictionaryManager other)
delete
Hammer::DictionaryManager::DictionaryManager ( DictionaryManager &&  other)
delete
Hammer::DictionaryManager::~DictionaryManager ( )
virtualnoexcept

Definition at line 65 of file DictionaryManager.cc.

Member Function Documentation

void Hammer::DictionaryManager::defineSettings ( )
privatevirtual

purely virtual function for a class to define new settings

Implements Hammer::SettingsConsumer.

Definition at line 113 of file DictionaryManager.cc.

const ExternalData & Hammer::DictionaryManager::externalData ( ) const
virtual

Definition at line 72 of file DictionaryManager.cc.

ExternalData & Hammer::DictionaryManager::externalData ( )
virtual

Definition at line 76 of file DictionaryManager.cc.

Log & Hammer::DictionaryManager::getLog ( ) const
private

Definition at line 130 of file DictionaryManager.cc.

void Hammer::DictionaryManager::init ( )

Definition at line 116 of file DictionaryManager.cc.

DictionaryManager& Hammer::DictionaryManager::operator= ( const DictionaryManager other)
delete
DictionaryManager& Hammer::DictionaryManager::operator= ( DictionaryManager &&  other)
delete
void Hammer::DictionaryManager::parseDecays ( const std::string &  yamlData)

read Hammer settings from a string

Parameters
[in]yamlDatathe decay options

Definition at line 167 of file DictionaryManager.cc.

void Hammer::DictionaryManager::processDecays ( const YAML::Node &  input)
private
Parameters
[in]input

Definition at line 177 of file DictionaryManager.cc.

const ProcessDefinitions & Hammer::DictionaryManager::processDefs ( ) const
virtual

Definition at line 88 of file DictionaryManager.cc.

ProcessDefinitions & Hammer::DictionaryManager::processDefs ( )
virtual

Definition at line 92 of file DictionaryManager.cc.

const ProvidersRepo & Hammer::DictionaryManager::providers ( ) const
virtual

Definition at line 68 of file DictionaryManager.cc.

const PurePhaseSpaceDefs & Hammer::DictionaryManager::purePSDefs ( ) const
virtual

Definition at line 100 of file DictionaryManager.cc.

PurePhaseSpaceDefs & Hammer::DictionaryManager::purePSDefs ( )
virtual

Definition at line 96 of file DictionaryManager.cc.

const ProcRates & Hammer::DictionaryManager::rates ( ) const
virtual

Definition at line 80 of file DictionaryManager.cc.

ProcRates & Hammer::DictionaryManager::rates ( )
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

Parameters
[in]fileNamethe 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

Parameters
[in]fileNamethe file name

Definition at line 205 of file DictionaryManager.cc.

const SchemeDefinitions & Hammer::DictionaryManager::schemeDefs ( ) const
virtual

Definition at line 108 of file DictionaryManager.cc.

SchemeDefinitions & Hammer::DictionaryManager::schemeDefs ( )
virtual

Definition at line 104 of file DictionaryManager.cc.

void Hammer::DictionaryManager::setSettingsHandler ( SettingsHandler sh)
virtual

set link to settings repository handler.

Parameters
[in]shthe 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.

Member Data Documentation

std::unique_ptr<ExternalData> Hammer::DictionaryManager::_external
private

Definition at line 113 of file DictionaryManager.hh.

std::unique_ptr<ProcessDefinitions> Hammer::DictionaryManager::_procDefs
private

Definition at line 116 of file DictionaryManager.hh.

std::unique_ptr<ProvidersRepo> Hammer::DictionaryManager::_providers
private

Definition at line 112 of file DictionaryManager.hh.

std::unique_ptr<PurePhaseSpaceDefs> Hammer::DictionaryManager::_purePSDefs
private

Definition at line 115 of file DictionaryManager.hh.

std::unique_ptr<ProcRates> Hammer::DictionaryManager::_rates
private

Definition at line 114 of file DictionaryManager.hh.

std::unique_ptr<SchemeDefinitions> Hammer::DictionaryManager::_schemeDefs
private

Definition at line 111 of file DictionaryManager.hh.


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