Hammer
1.0.0
Helicity Amplitude Module for Matrix Element Reweighting
|
Hammer settings manager class. More...
#include <SchemeDefinitions.hh>
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< NewLabelsByGroup > | getFFDuplicates () const |
virtual const SchemeDict < ProcIdDict< FFIndex > > & | getSchemeDefs () const |
virtual SchemeDict< FFIndex > | getFFSchemesForProcess (HadronicUID id) const |
virtual std::set< FFIndex > | getFormFactorIndices (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 | |
SchemeDefinitions & | operator= (const SchemeDefinitions &other)=delete |
SchemeDefinitions (SchemeDefinitions &&other)=default | |
SchemeDefinitions & | operator= (SchemeDefinitions &&other)=default |
virtual | ~SchemeDefinitions () noexcept=default |
Protected Member Functions | |
Log & | getLog () 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 > |
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.
using Hammer::SchemeDefinitions::NewLabelsByGroup = std::map<std::string, std::vector<std::string>> |
Definition at line 91 of file SchemeDefinitions.hh.
|
inline |
default constructor
Definition at line 51 of file SchemeDefinitions.hh.
|
delete |
|
default |
|
virtualdefaultnoexcept |
void Hammer::SchemeDefinitions::addFFScheme | ( | const std::string & | schemeName, |
const std::map< std::string, std::string > & | schemes | ||
) |
[in] | schemeName | |
[in] | schemes |
Definition at line 157 of file SchemeDefinitions.cc.
|
virtual |
map< HashId, map< string, vector< string > > > Hammer::SchemeDefinitions::getFFDuplicates | ( | ) | const |
Definition at line 211 of file SchemeDefinitions.cc.
vector< string > Hammer::SchemeDefinitions::getFFSchemeNames | ( | ) | const |
Definition at line 178 of file SchemeDefinitions.cc.
|
virtual |
|
virtual |
|
protected |
logging facility
Definition at line 31 of file SchemeDefinitions.cc.
|
protected |
|
virtual |
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.
|
delete |
|
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 | ) |
[in] | schemeName |
Definition at line 167 of file SchemeDefinitions.cc.
void Hammer::SchemeDefinitions::setFFInputScheme | ( | const std::map< std::string, std::string > & | schemes | ) |
[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.
|
friend |
Definition at line 128 of file SchemeDefinitions.hh.
|
private |
the Hammer denominator form factor scheme
Definition at line 136 of file SchemeDefinitions.hh.
|
private |
the Hammer numerator form factor schemes
Definition at line 133 of file SchemeDefinitions.hh.
|
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.