Hammer
1.0.0
Helicity Amplitude Module for Matrix Element Reweighting
|
Event container class. More...
#include <Event.hh>
Public Member Functions | |
Event (Histos *histograms=nullptr, DictionaryManager *dict=nullptr) | |
Event (const Event &other)=delete | |
Event & | operator= (const Event &other)=delete |
Event (Event &&other)=delete | |
Event & | operator= (Event &&other)=delete |
~Event () noexcept | |
ProcessUID | addProcess (Process &p) |
void | removeProcess (ProcessUID id) |
void | setEventBaseWeight (double weight) |
double | getEventBaseWeight () const |
void | clear () |
void | init () |
const EventUID & | getEventId () const |
const Tensor & | getAmplitude (ProcessUID process, WTerm what=WTerm::NUMERATOR) const |
ProcIdDict < std::reference_wrapper < const Tensor > > | getAmplitudes (WTerm what=WTerm::NUMERATOR) const |
const Tensor & | getSquaredAmplitude (ProcessUID process, WTerm what=WTerm::NUMERATOR) const |
ProcIdDict < std::reference_wrapper < const Tensor > > | getSquaredAmplitudes (WTerm what=WTerm::NUMERATOR) const |
std::vector < std::reference_wrapper < const Tensor > > | getProcessFormFactors (const std::string &schemeName, ProcessUID process) const |
ProcIdDict< std::vector < std::reference_wrapper < const Tensor > > > | getFormFactors (const std::string &schemeName) const |
const Tensor & | getTensorWeight (const std::string &schemeName, ProcessUID process) const |
ProcIdDict < std::reference_wrapper < const Tensor > > | getTensorWeights (const std::string &schemeName) const |
double | getWeight (const std::string &schemeName, ProcessUID process) const |
ProcIdDict< double > | getWeights (const std::string &schemeName) const |
void | calc () |
void | setHistogramBin (const std::string &label, const IndexList indices) |
void | fillHistograms () |
void | write (flatbuffers::FlatBufferBuilder *msgwriter) const |
bool | read (const Serial::FBEvent *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) |
SettingsHandler * | getSettingsHandler () 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... | |
SettingsConsumer & | operator= (const SettingsConsumer &)=default |
virtual | ~SettingsConsumer () |
virtual destructor More... | |
Protected Member Functions | |
Log & | getLog () const |
logging facility More... | |
void | defineSettings () |
purely virtual function for a class to define new settings More... | |
const ProcManager & | getProcManager (ProcessUID id) const |
ProcManager & | getProcManager (ProcessUID id) |
ProcessUID | addProcManager (ProcManager &&pm) |
Protected Member Functions inherited from Hammer::SettingsConsumer | |
Log & | getLog () 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< ProcManager > | _processes |
EventUID | _eventId |
SchemeNameList | _schemes |
HistoNameDict< IndexList > | _histogramBins |
Histos * | _histograms |
DictionaryManager * | _dictionaries |
double | _eventWeight |
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 |
Event container class.
Contains the decay processes within an event, ...
Hammer::Event::Event | ( | Histos * | histograms = nullptr , |
DictionaryManager * | dict = nullptr |
||
) |
|
delete |
|
delete |
|
protected |
|
protectedvirtual |
purely virtual function for a class to define new settings
Implements Hammer::SettingsConsumer.
const Tensor & Hammer::Event::getAmplitude | ( | ProcessUID | process, |
WTerm | what = WTerm::NUMERATOR |
||
) | const |
ProcIdDict< reference_wrapper< const Tensor > > Hammer::Event::getAmplitudes | ( | WTerm | what = WTerm::NUMERATOR | ) | const |
ProcIdDict< vector< reference_wrapper< const Tensor > > > Hammer::Event::getFormFactors | ( | const std::string & | schemeName | ) | const |
|
protected |
vector< reference_wrapper< const Tensor > > Hammer::Event::getProcessFormFactors | ( | const std::string & | schemeName, |
ProcessUID | process | ||
) | const |
|
protected |
|
protected |
const Tensor & Hammer::Event::getSquaredAmplitude | ( | ProcessUID | process, |
WTerm | what = WTerm::NUMERATOR |
||
) | const |
ProcIdDict< reference_wrapper< const Tensor > > Hammer::Event::getSquaredAmplitudes | ( | WTerm | what = WTerm::NUMERATOR | ) | const |
const Tensor & Hammer::Event::getTensorWeight | ( | const std::string & | schemeName, |
ProcessUID | process | ||
) | const |
ProcIdDict< reference_wrapper< const Tensor > > Hammer::Event::getTensorWeights | ( | const std::string & | schemeName | ) | const |
double Hammer::Event::getWeight | ( | const std::string & | schemeName, |
ProcessUID | process | ||
) | const |
ProcIdDict< double > Hammer::Event::getWeights | ( | const std::string & | schemeName | ) | const |
bool Hammer::Event::read | ( | const Serial::FBEvent * | msgreader, |
bool | merge | ||
) |
void Hammer::Event::removeProcess | ( | ProcessUID | id | ) |
void Hammer::Event::setHistogramBin | ( | const std::string & | label, |
const IndexList | indices | ||
) |
void Hammer::Event::write | ( | flatbuffers::FlatBufferBuilder * | msgwriter | ) | const |
|
private |
|
private |
|
private |
|
private |