Helper class for event-weight factor.
More...
#include <JEvtWeightFactorHelper.hh>
Helper class for event-weight factor.
Definition at line 28 of file JEvtWeightFactorHelper.hh.
◆ pointer_type
◆ JEvtWeightFactorHelper() [1/3]
JAANET::JEvtWeightFactorHelper::JEvtWeightFactorHelper |
( |
| ) |
|
|
inline |
◆ JEvtWeightFactorHelper() [2/3]
JAANET::JEvtWeightFactorHelper::JEvtWeightFactorHelper |
( |
const pointer_type & |
p | ) |
|
|
inline |
◆ JEvtWeightFactorHelper() [3/3]
JAANET::JEvtWeightFactorHelper::JEvtWeightFactorHelper |
( |
const JEvtWeightFactor & |
factor | ) |
|
|
inline |
Constructor.
- Parameters
-
factor | event-weight factor |
Definition at line 57 of file JEvtWeightFactorHelper.hh.
void configure(const pointer_type &p)
Configure event-weight factor.
◆ configure() [1/2]
void JAANET::JEvtWeightFactorHelper::configure |
( |
const pointer_type & |
p | ) |
|
|
inline |
◆ configure() [2/2]
void JAANET::JEvtWeightFactorHelper::configure |
( |
const JEvtWeightFactor & |
factor | ) |
|
|
inline |
Configure event-weight factor.
- Parameters
-
factor | event-weight factor |
Definition at line 79 of file JEvtWeightFactorHelper.hh.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Exception for null pointer operation.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Abstract base class for specifiable event-weight factors.
virtual clone_type clone() const override
Get clone of this object.
◆ getFactor() [1/2]
Get reference to event-weight factor.
- Returns
- reference to event-weight factor
Definition at line 98 of file JEvtWeightFactorHelper.hh.
103 return *(this->get());
Helper class for event-weight factor.
◆ is_valid()
bool JAANET::JEvtWeightFactorHelper::is_valid |
( |
| ) |
const |
|
inline |
Check whether this event-weight factor is valid.
- Returns
- true if valid; else false
Definition at line 115 of file JEvtWeightFactorHelper.hh.
119 return (helper && helper->
is_valid());
bool is_valid() const
Check whether this event-weight factor is valid.
◆ getFactor() [2/2]
double JAANET::JEvtWeightFactorHelper::getFactor |
( |
const Evt & |
evt | ) |
const |
|
inline |
Get weight-factor of given event.
- Parameters
-
- Returns
- event-weight factor
Definition at line 129 of file JEvtWeightFactorHelper.hh.
JEvtWeightFactor & getFactor() const
Get reference to event-weight factor.
virtual double getFactor(const Evt &evt) const =0
Get event-weight factor of given event.
◆ operator()()
double JAANET::JEvtWeightFactorHelper::operator() |
( |
const Evt & |
evt | ) |
const |
|
inline |
◆ getProperties() [1/2]
Get properties of this class.
- Parameters
-
eqpars | equation parameters |
Definition at line 154 of file JEvtWeightFactorHelper.hh.
virtual JProperties getProperties(const JEquationParameters &eqpars=JEvtWeightFactor::getEquationParameters())
Get properties of this class.
◆ getProperties() [2/2]
The documentation for this struct was generated from the following file: