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::ProcManager Class Reference

Decay process class. More...

#include <ProcManager.hh>

+ Inheritance diagram for Hammer::ProcManager:
+ Collaboration diagram for Hammer::ProcManager:

Public Member Functions

 ProcManager ()
 
 ProcManager (const Process &inputs)
 
 ProcManager (const Serial::FBProcess *msgreader)
 
 ProcManager (const ProcManager &other)=delete
 
ProcManageroperator= (const ProcManager &other)=delete
 
 ProcManager (ProcManager &&other)
 
ProcManageroperator= (ProcManager &&other)=delete
 
 ~ProcManager () noexcept=default
 
virtual void initialize (DictionaryManager *dictionaries)
 
virtual void setSettingsHandler (SettingsHandler &sh)
 set link to settings repository handler. More...
 
virtual void setSettingsHandler (const SettingsConsumer &sh)
 
void calc ()
 
const ProcResultsresults () const
 
const Processinputs () const
 
void write (flatbuffers::FlatBufferBuilder *msgwriter, flatbuffers::Offset< Serial::FBProcess > *msg) const
 
bool read (const Serial::FBProcess *msgreader, bool merge)
 
- 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...
 

Protected Member Functions

void calcRates (const ParticleIndex &parent) const
 
Tensor calcPSTensor (const ParticleIndex &parent) const
 
Tensor calcRateTensor (const ParticleIndex &parent, const ProcIdDict< FFIndex > &ffmaps, const std::string &schemeName) const
 
virtual void defineSettings ()
 purely virtual function for a class to define new settings More...
 
LoggetLog () const
 logging facility More...
 
void setDictionary (DictionaryManager *dict)
 
- 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)
 

Private Attributes

std::unique_ptr< Process_inputs
 
std::unique_ptr< ProcGraph_graph
 
std::unique_ptr< ProcRequirements_reqs
 
std::unique_ptr< ProcResults_results
 
SchemeDict< Tensor > * _processRates
 
DictionaryManager_dictionaries
 

Additional Inherited Members

- 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

Decay process class.

Contains the amplitudes, weights and info associated to a decay, ...

Definition at line 42 of file ProcManager.hh.

Constructor & Destructor Documentation

Hammer::ProcManager::ProcManager ( )

Definition at line 44 of file ProcManager.cc.

Hammer::ProcManager::ProcManager ( const Process inputs)

Definition at line 34 of file ProcManager.cc.

Hammer::ProcManager::ProcManager ( const Serial::FBProcess *  msgreader)

Definition at line 47 of file ProcManager.cc.

Hammer::ProcManager::ProcManager ( const ProcManager other)
delete
Hammer::ProcManager::ProcManager ( ProcManager &&  other)

Definition at line 51 of file ProcManager.cc.

Hammer::ProcManager::~ProcManager ( )
defaultnoexcept

Member Function Documentation

void Hammer::ProcManager::calc ( )

Definition at line 104 of file ProcManager.cc.

Tensor Hammer::ProcManager::calcPSTensor ( const ParticleIndex parent) const
protected
Parameters
[in]parent

Definition at line 289 of file ProcManager.cc.

void Hammer::ProcManager::calcRates ( const ParticleIndex parent) const
protected
Parameters
[in]parent

Definition at line 338 of file ProcManager.cc.

Tensor Hammer::ProcManager::calcRateTensor ( const ParticleIndex parent,
const ProcIdDict< FFIndex > &  ffmaps,
const std::string &  schemeName 
) const
protected
Parameters
[in]parent
[in]ffmaps
[in]schemeName

Definition at line 305 of file ProcManager.cc.

void Hammer::ProcManager::defineSettings ( )
protectedvirtual

purely virtual function for a class to define new settings

Implements Hammer::SettingsConsumer.

Definition at line 254 of file ProcManager.cc.

Log & Hammer::ProcManager::getLog ( ) const
protected

logging facility

Returns
stream to be used for logging

Definition at line 387 of file ProcManager.cc.

void Hammer::ProcManager::initialize ( DictionaryManager dictionaries)
virtual
Parameters
[in]dictionaries
Todo:
what else needs to be done here?

Definition at line 78 of file ProcManager.cc.

const Process & Hammer::ProcManager::inputs ( ) const

Definition at line 250 of file ProcManager.cc.

ProcManager& Hammer::ProcManager::operator= ( const ProcManager other)
delete
ProcManager& Hammer::ProcManager::operator= ( ProcManager &&  other)
delete
bool Hammer::ProcManager::read ( const Serial::FBProcess *  msgreader,
bool  merge 
)
Parameters
[in]msgreader
[in]merge

Definition at line 275 of file ProcManager.cc.

const ProcResults & Hammer::ProcManager::results ( ) const

Definition at line 246 of file ProcManager.cc.

void Hammer::ProcManager::setDictionary ( DictionaryManager dict)
protected

Definition at line 74 of file ProcManager.cc.

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

set link to settings repository handler.

Parameters
[in]shthe settings handler

Reimplemented from Hammer::SettingsConsumer.

Definition at line 64 of file ProcManager.cc.

void Hammer::ProcManager::setSettingsHandler ( const SettingsConsumer sh)
virtual

Definition at line 69 of file ProcManager.cc.

void Hammer::ProcManager::write ( flatbuffers::FlatBufferBuilder *  msgwriter,
flatbuffers::Offset< Serial::FBProcess > *  msg 
) const
Parameters
[in]msgwriter
[in]msg

Definition at line 263 of file ProcManager.cc.

Member Data Documentation

DictionaryManager* Hammer::ProcManager::_dictionaries
private

Definition at line 123 of file ProcManager.hh.

std::unique_ptr<ProcGraph> Hammer::ProcManager::_graph
private

Definition at line 117 of file ProcManager.hh.

std::unique_ptr<Process> Hammer::ProcManager::_inputs
private

Definition at line 116 of file ProcManager.hh.

SchemeDict<Tensor>* Hammer::ProcManager::_processRates
private

Definition at line 120 of file ProcManager.hh.

std::unique_ptr<ProcRequirements> Hammer::ProcManager::_reqs
private

Definition at line 118 of file ProcManager.hh.

std::unique_ptr<ProcResults> Hammer::ProcManager::_results
private

Definition at line 119 of file ProcManager.hh.


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