Jpp
18.6.0-rc.1
the software that should make you happy
|
Helper class for event-weight factor. More...
#include <JEvtWeightFactorHelper.hh>
Public Types | |
typedef JEvtWeightFactorHelper < JEvtWeightFactor_t > | JEvtWeightFactorHelper_t |
typedef std::shared_ptr < JEvtWeightFactor_t > | pointer_type |
Public Member Functions | |
JEvtWeightFactorHelper () | |
Default constructor. More... | |
JEvtWeightFactorHelper (const JEvtWeightFactor_t &factor) | |
Constructor. More... | |
void | configure (const JEvtWeightFactor_t &factor) |
Configure event-weight factor. More... | |
JEvtWeightFactor_t & | getEvtWeightFactor () const |
Get reference to event-weight factor. More... | |
double | getFactor (const Evt &evt) const |
Get weight-factor of given event. More... | |
Helper class for event-weight factor.
The template argument corresponds to the desired event-weight factor class. This class must contain the method getFactor(const Evt&)
.
Definition at line 29 of file JEvtWeightFactorHelper.hh.
typedef JEvtWeightFactorHelper<JEvtWeightFactor_t> JAANET::JEvtWeightFactorHelper< JEvtWeightFactor_t >::JEvtWeightFactorHelper_t |
Definition at line 32 of file JEvtWeightFactorHelper.hh.
typedef std::shared_ptr<JEvtWeightFactor_t> JAANET::JEvtWeightFactorHelper< JEvtWeightFactor_t >::pointer_type |
Definition at line 33 of file JEvtWeightFactorHelper.hh.
|
inline |
|
inline |
Constructor.
factor | event-weight factor |
Definition at line 48 of file JEvtWeightFactorHelper.hh.
|
inline |
Configure event-weight factor.
factor | event-weight factor |
Definition at line 59 of file JEvtWeightFactorHelper.hh.
|
inline |
Get reference to event-weight factor.
Definition at line 78 of file JEvtWeightFactorHelper.hh.
|
inline |
Get weight-factor of given event.
evt | event |
Definition at line 96 of file JEvtWeightFactorHelper.hh.