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

Decay process class. More...

#include <ProcRates.hh>

+ Inheritance diagram for Hammer::ProcRates:
+ Collaboration diagram for Hammer::ProcRates:

Public Member Functions

 ProcRates (const ExternalData *ext)
 
 ProcRates (const Serial::FBProcData *msgreader)
 
 ProcRates (const ProcRates &other)=delete
 
ProcRatesoperator= (const ProcRates &other)=delete
 
 ProcRates (ProcRates &&other)=delete
 
ProcRatesoperator= (ProcRates &&other)=delete
 
 ~ProcRates () noexcept
 
virtual SchemeDict< Tensor > * getProcessRates (ProcessUID id)
 
virtual double getVertexRate (const ProcessUID &id, const std::string &schemeName) const
 
void init ()
 
void write (flatbuffers::FlatBufferBuilder *msgwriter) const
 
bool read (const Serial::FBRates *msgreader, bool merge)
 
- Public Member Functions inherited from Hammer::SettingsConsumer
virtual void setSettingsHandler (SettingsHandler &sh)
 set link to settings repository handler. More...
 
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

virtual void defineSettings ()
 purely virtual function for a class to define new settings More...
 
LoggetLog () const
 logging facility More...
 
- 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

ProcIdDict< SchemeDict< Tensor > > _processRates
 
const ExternalData_external
 

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 34 of file ProcRates.hh.

Constructor & Destructor Documentation

Hammer::ProcRates::ProcRates ( const ExternalData ext)

Definition at line 30 of file ProcRates.cc.

Hammer::ProcRates::ProcRates ( const Serial::FBProcData *  msgreader)
Hammer::ProcRates::ProcRates ( const ProcRates other)
delete
Hammer::ProcRates::ProcRates ( ProcRates &&  other)
delete
Hammer::ProcRates::~ProcRates ( )
noexcept

Definition at line 33 of file ProcRates.cc.

Member Function Documentation

void Hammer::ProcRates::defineSettings ( )
protectedvirtual

purely virtual function for a class to define new settings

Implements Hammer::SettingsConsumer.

Definition at line 38 of file ProcRates.cc.

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

logging facility

Returns
stream to be used for logging

Definition at line 86 of file ProcRates.cc.

SchemeDict< Tensor > * Hammer::ProcRates::getProcessRates ( ProcessUID  id)
virtual
Parameters
[in]id
Returns

Definition at line 45 of file ProcRates.cc.

double Hammer::ProcRates::getVertexRate ( const ProcessUID id,
const std::string &  schemeName 
) const
virtual
Parameters
[in]id
[in]schemeName
Returns

Definition at line 59 of file ProcRates.cc.

void Hammer::ProcRates::init ( )

Definition at line 41 of file ProcRates.cc.

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

Definition at line 90 of file ProcRates.cc.

void Hammer::ProcRates::write ( flatbuffers::FlatBufferBuilder *  msgwriter) const
Parameters
[in]msgwriter

Definition at line 123 of file ProcRates.cc.

Member Data Documentation

const ExternalData* Hammer::ProcRates::_external
private

Definition at line 85 of file ProcRates.hh.

ProcIdDict<SchemeDict<Tensor> > Hammer::ProcRates::_processRates
private

Definition at line 84 of file ProcRates.hh.


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