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

Decay process class. More...

#include <ProcResults.hh>

+ Inheritance diagram for Hammer::ProcResults:
+ Collaboration diagram for Hammer::ProcResults:

Public Member Functions

 ProcResults ()
 
 ProcResults (const Serial::FBProcData *msgreader)
 
 ProcResults (const ProcResults &other)=delete
 
ProcResultsoperator= (const ProcResults &other)=delete
 
 ProcResults (ProcResults &&other)=delete
 
ProcResultsoperator= (ProcResults &&other)=delete
 
 ~ProcResults () noexcept=default
 
const TensorprocessAmplitude (WTerm what=WTerm::NUMERATOR) const
 
TensorprocessAmplitude (WTerm what=WTerm::NUMERATOR)
 
const TensorprocessAmplitudeSquared (WTerm what=WTerm::NUMERATOR) const
 
TensorprocessAmplitudeSquared (WTerm what=WTerm::NUMERATOR)
 
std::vector
< std::reference_wrapper
< const Tensor > > 
processFormFactors (const std::string &schemeName) const
 
std::vector
< std::reference_wrapper
< Tensor > > 
processFormFactors (const std::string &schemeName)
 
void appendFormFactor (const std::string &schemeName, const Tensor &formfact)
 
void appendFormFactor (const std::string &schemeName, Tensor &&formfact)
 
void clearFormFactors ()
 
bool haveFormFactors () const
 
const TensorprocessWeight (const std::string &schemeName) const
 
TensorprocessWeight (const std::string &schemeName)
 
void setProcessWeight (const std::string &schemeName, const Tensor &weight)
 
void setProcessWeight (const std::string &schemeName, Tensor &&weight)
 
void clearWeights ()
 
bool haveWeights () const
 
std::vector< std::string > availableSchemes () const
 
void write (flatbuffers::FlatBufferBuilder *msgwriter, flatbuffers::Offset< Serial::FBProcData > *msg) const
 
bool read (const Serial::FBProcData *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

SchemeDict< Tensor_processWeights
 
NumDenPair< Tensor_processSquaredAmplitude
 
NumDenPair< Tensor_processAmplitude
 
SchemeDict< std::vector< Tensor > > _processFormFactors
 

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 33 of file ProcResults.hh.

Constructor & Destructor Documentation

Hammer::ProcResults::ProcResults ( )

Definition at line 23 of file ProcResults.cc.

Hammer::ProcResults::ProcResults ( const Serial::FBProcData *  msgreader)

Definition at line 27 of file ProcResults.cc.

Hammer::ProcResults::ProcResults ( const ProcResults other)
delete
Hammer::ProcResults::ProcResults ( ProcResults &&  other)
delete
Hammer::ProcResults::~ProcResults ( )
defaultnoexcept

Member Function Documentation

void Hammer::ProcResults::appendFormFactor ( const std::string &  schemeName,
const Tensor formfact 
)

Definition at line 71 of file ProcResults.cc.

void Hammer::ProcResults::appendFormFactor ( const std::string &  schemeName,
Tensor &&  formfact 
)

Definition at line 75 of file ProcResults.cc.

vector< string > Hammer::ProcResults::availableSchemes ( ) const

Definition at line 87 of file ProcResults.cc.

void Hammer::ProcResults::clearFormFactors ( )

Definition at line 79 of file ProcResults.cc.

void Hammer::ProcResults::clearWeights ( )

Definition at line 110 of file ProcResults.cc.

void Hammer::ProcResults::defineSettings ( )
protectedvirtual

purely virtual function for a class to define new settings

Implements Hammer::SettingsConsumer.

Definition at line 119 of file ProcResults.cc.

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

logging facility

Returns
stream to be used for logging

Definition at line 249 of file ProcResults.cc.

bool Hammer::ProcResults::haveFormFactors ( ) const

Definition at line 83 of file ProcResults.cc.

bool Hammer::ProcResults::haveWeights ( ) const

Definition at line 114 of file ProcResults.cc.

ProcResults& Hammer::ProcResults::operator= ( const ProcResults other)
delete
ProcResults& Hammer::ProcResults::operator= ( ProcResults &&  other)
delete
const Tensor & Hammer::ProcResults::processAmplitude ( WTerm  what = WTerm::NUMERATOR) const
Parameters
[in]what
Returns

Definition at line 35 of file ProcResults.cc.

Tensor & Hammer::ProcResults::processAmplitude ( WTerm  what = WTerm::NUMERATOR)
Parameters
[in]what
Returns

Definition at line 39 of file ProcResults.cc.

const Tensor & Hammer::ProcResults::processAmplitudeSquared ( WTerm  what = WTerm::NUMERATOR) const
Parameters
[in]what
Returns

Definition at line 43 of file ProcResults.cc.

Tensor & Hammer::ProcResults::processAmplitudeSquared ( WTerm  what = WTerm::NUMERATOR)
Parameters
[in]what
Returns

Definition at line 47 of file ProcResults.cc.

vector< reference_wrapper< const Tensor > > Hammer::ProcResults::processFormFactors ( const std::string &  schemeName) const

Definition at line 51 of file ProcResults.cc.

vector< reference_wrapper< Tensor > > Hammer::ProcResults::processFormFactors ( const std::string &  schemeName)

Definition at line 61 of file ProcResults.cc.

const Tensor & Hammer::ProcResults::processWeight ( const std::string &  schemeName) const
Parameters
[in]schemeName
Returns

Definition at line 94 of file ProcResults.cc.

Tensor & Hammer::ProcResults::processWeight ( const std::string &  schemeName)
Parameters
[in]schemeName
Returns

Definition at line 98 of file ProcResults.cc.

bool Hammer::ProcResults::read ( const Serial::FBProcData *  msgreader,
bool  merge 
)
Parameters
[in]msgreader
[in]merge

Definition at line 192 of file ProcResults.cc.

void Hammer::ProcResults::setProcessWeight ( const std::string &  schemeName,
const Tensor weight 
)

Definition at line 102 of file ProcResults.cc.

void Hammer::ProcResults::setProcessWeight ( const std::string &  schemeName,
Tensor &&  weight 
)

Definition at line 106 of file ProcResults.cc.

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

Definition at line 126 of file ProcResults.cc.

Member Data Documentation

NumDenPair<Tensor> Hammer::ProcResults::_processAmplitude
private

Definition at line 126 of file ProcResults.hh.

SchemeDict<std::vector<Tensor> > Hammer::ProcResults::_processFormFactors
private

Definition at line 127 of file ProcResults.hh.

NumDenPair<Tensor> Hammer::ProcResults::_processSquaredAmplitude
private

Definition at line 125 of file ProcResults.hh.

SchemeDict<Tensor> Hammer::ProcResults::_processWeights
private

Definition at line 124 of file ProcResults.hh.


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