1 #ifndef __JAANET__JEVTWEIGHTFACTORFUNCTION__
2 #define __JAANET__JEVTWEIGHTFACTORFUNCTION__
23 template<
class JFunction_t>
25 public JClonable<JEvtWeightFactor, JEvtWeightFactorFunction<JFunction_t> >
65 public JClonable<JEvtWeightFactor, JEvtWeightFactorFunction<pEvtWeightFactor> >
85 return (*
function)(evt);
100 template<
class JFunction_t>
Implementation of C-style event-weight factor.
double getFactor(const Evt &evt) const override
Get weight-factor for given event.
double getFactor(const Evt &evt) const override
Get weight-factor for given event.
Implementation of event-weight factor interface.
JEvtWeightFactorFunction(pEvtWeightFactor function)
Constructor.
JEvtWeightFactorFunction(const JFunction_t &function)
Constructor.
Template class for object cloning.
JEvtWeightFactorFunction< JFunction_t > make_weightFactor(const JFunction_t &function)
Auxiliary method for creating an interface to an event-weight factor.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
double(* pEvtWeightFactor)(const Evt &)
Type definition of pointer to event-weight factor.