Look-up table for event weighters.
More...
#include <JEvtWeightToolkit.hh>
Look-up table for event weighters.
Definition at line 51 of file JEvtWeightToolkit.hh.
◆ JEvtWeighter()
JAANET::JEvtWeighter::JEvtWeighter |
( |
| ) |
|
|
inline |
Constructor.
Definition at line 57 of file JEvtWeightToolkit.hh.
58 {
59 this->emplace_back(new JEvtWeightGSeaGen());
60 this->emplace_back(new JEvtWeightKM3BUU());
61 this->emplace_back(new JEvtWeightCorsika());
62 this->emplace_back(new JEvtWeightMupage());
63 this->emplace_back(new JEvtWeightGenhen());
64 this->emplace_back(new JEvtWeightDAQ());
65 this->emplace_back(new JEvtWeightMiscellaneous());
66 }
◆ operator()()
const JEvtWeight & JAANET::JEvtWeighter::operator() |
( |
const JHead & | header | ) |
const |
|
inline |
Get event weighter corresponding to given header.
- Parameters
-
- Returns
- event weighter
Definition at line 75 of file JEvtWeightToolkit.hh.
76 {
79
80 for (const_iterator i = this->begin(); i != this->end(); ++i) {
81
82 if ((*i)->check(header)) {
83 return *(*i);
84 }
85 }
86
87 THROW(
JValueOutOfRange,
"JEvtWeighter::operator(): No event weighter found for given header:" << endl << header);
88 }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Exception for accessing a value in a collection that is outside of its range.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
The documentation for this struct was generated from the following file: