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

Hammer settings manager class. More...

#include <SchemeDefinitions.hh>

+ Collaboration diagram for Hammer::SchemeDefinitions:

Public Types

using NewLabelsByGroup = std::map< std::string, std::vector< std::string >>
 

Public Member Functions

void write (flatbuffers::FlatBufferBuilder *msgwriter, std::vector< flatbuffers::Offset< Serial::FBFFScheme >> *msgs) const
 
bool read (const Serial::FBHeader *msgreader, bool merge)
 
void addFFScheme (const std::string &schemeName, const std::map< std::string, std::string > &schemes)
 
void removeFFScheme (const std::string &schemeName)
 
SchemeNameList getFFSchemeNames () const
 
void setFFInputScheme (const std::map< std::string, std::string > &schemes)
 
HadronicIdDict< NewLabelsByGroupgetFFDuplicates () const
 
virtual const SchemeDict
< ProcIdDict< FFIndex > > & 
getSchemeDefs () const
 
virtual SchemeDict< FFIndexgetFFSchemesForProcess (HadronicUID id) const
 
virtual std::set< FFIndexgetFormFactorIndices (HadronicUID processId) const
 
virtual FFIndex getDenominatorFormFactor (HadronicUID processId) const
 
void init (std::map< HashId, std::vector< std::string >> formFactGroups)
 
Constructors
 SchemeDefinitions ()
 default constructor More...
 
 SchemeDefinitions (const SchemeDefinitions &other)=delete
 
SchemeDefinitionsoperator= (const SchemeDefinitions &other)=delete
 
 SchemeDefinitions (SchemeDefinitions &&other)=default
 
SchemeDefinitionsoperator= (SchemeDefinitions &&other)=default
 
virtual ~SchemeDefinitions () noexcept=default
 

Protected Member Functions

LoggetLog () const
 logging facility More...
 
const HadronicIdDict< std::string > getScheme (const std::string &schemeName="") const
 

Private Attributes

SchemeDict< std::map
< std::string, std::string > > 
_formFactorSchemeNames
 the Hammer numerator form factor schemes More...
 
std::map< std::string,
std::string > 
_formFactorBase
 the Hammer denominator form factor scheme More...
 
SchemeDict< ProcIdDict< FFIndex > > _formFactorSchemes
 Selected formfactors by subprocess. More...
 

Friends

struct YAML::convert<::Hammer::SchemeDefinitions >
 

Detailed Description

Hammer settings manager class.

Stores Hammer options, provides facilities for saving and reading option files, provides option query interface. It also provide a repository of other run-wide information, such as the bibliography associated to the specific run, the list of files being processed

Definition at line 44 of file SchemeDefinitions.hh.

Member Typedef Documentation

using Hammer::SchemeDefinitions::NewLabelsByGroup = std::map<std::string, std::vector<std::string>>

Definition at line 91 of file SchemeDefinitions.hh.

Constructor & Destructor Documentation

Hammer::SchemeDefinitions::SchemeDefinitions ( )
inline

default constructor

Definition at line 51 of file SchemeDefinitions.hh.

Hammer::SchemeDefinitions::SchemeDefinitions ( const SchemeDefinitions other)
delete
Hammer::SchemeDefinitions::SchemeDefinitions ( SchemeDefinitions &&  other)
default
virtual Hammer::SchemeDefinitions::~SchemeDefinitions ( )
virtualdefaultnoexcept

Member Function Documentation

void Hammer::SchemeDefinitions::addFFScheme ( const std::string &  schemeName,
const std::map< std::string, std::string > &  schemes 
)
Parameters
[in]schemeName
[in]schemes

Definition at line 157 of file SchemeDefinitions.cc.

FFIndex Hammer::SchemeDefinitions::getDenominatorFormFactor ( HadronicUID  processId) const
virtual
Parameters
[in]processId
Returns

Definition at line 249 of file SchemeDefinitions.cc.

map< HashId, map< string, vector< string > > > Hammer::SchemeDefinitions::getFFDuplicates ( ) const
Returns

Definition at line 211 of file SchemeDefinitions.cc.

vector< string > Hammer::SchemeDefinitions::getFFSchemeNames ( ) const
Returns

Definition at line 178 of file SchemeDefinitions.cc.

SchemeDict< FFIndex > Hammer::SchemeDefinitions::getFFSchemesForProcess ( HadronicUID  id) const
virtual
Parameters
[in]id
Returns

Definition at line 270 of file SchemeDefinitions.cc.

set< FFIndex > Hammer::SchemeDefinitions::getFormFactorIndices ( HadronicUID  processId) const
virtual
Parameters
[in]processId
Returns

Definition at line 259 of file SchemeDefinitions.cc.

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

logging facility

Returns
stream to be used for logging

Definition at line 31 of file SchemeDefinitions.cc.

const map< HashId, string > Hammer::SchemeDefinitions::getScheme ( const std::string &  schemeName = "") const
protected
Parameters
[in]schemeName
Returns

Definition at line 186 of file SchemeDefinitions.cc.

const SchemeDict< map< HashId, FFIndex > > & Hammer::SchemeDefinitions::getSchemeDefs ( ) const
virtual
Returns

Definition at line 245 of file SchemeDefinitions.cc.

void Hammer::SchemeDefinitions::init ( std::map< HashId, std::vector< std::string >>  formFactGroups)

Definition at line 283 of file SchemeDefinitions.cc.

SchemeDefinitions& Hammer::SchemeDefinitions::operator= ( const SchemeDefinitions other)
delete
SchemeDefinitions& Hammer::SchemeDefinitions::operator= ( SchemeDefinitions &&  other)
default
bool Hammer::SchemeDefinitions::read ( const Serial::FBHeader *  msgreader,
bool  merge 
)

Definition at line 76 of file SchemeDefinitions.cc.

void Hammer::SchemeDefinitions::removeFFScheme ( const std::string &  schemeName)
Parameters
[in]schemeName

Definition at line 167 of file SchemeDefinitions.cc.

void Hammer::SchemeDefinitions::setFFInputScheme ( const std::map< std::string, std::string > &  schemes)
Parameters
[in]schemes

Definition at line 174 of file SchemeDefinitions.cc.

void Hammer::SchemeDefinitions::write ( flatbuffers::FlatBufferBuilder *  msgwriter,
std::vector< flatbuffers::Offset< Serial::FBFFScheme >> *  msgs 
) const

Definition at line 35 of file SchemeDefinitions.cc.

Friends And Related Function Documentation

friend struct YAML::convert<::Hammer::SchemeDefinitions >
friend

Definition at line 128 of file SchemeDefinitions.hh.

Member Data Documentation

std::map<std::string, std::string> Hammer::SchemeDefinitions::_formFactorBase
private

the Hammer denominator form factor scheme

Definition at line 136 of file SchemeDefinitions.hh.

SchemeDict<std::map<std::string, std::string> > Hammer::SchemeDefinitions::_formFactorSchemeNames
private

the Hammer numerator form factor schemes

Definition at line 133 of file SchemeDefinitions.hh.

SchemeDict<ProcIdDict<FFIndex> > Hammer::SchemeDefinitions::_formFactorSchemes
private

Selected formfactors by subprocess.

This container provides an identifier, FFIndex, for each FF parametrization in each subprocess: A map {name of an FF scheme, map {each subprocess FF HashId (taken from _formFactors), FFIndex}}. FFIndex is the ordered position of the parametrization in the list of chosen FF parametrizations.

Definition at line 143 of file SchemeDefinitions.hh.


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