1 #ifndef __JAANET__JEVTWEIGHTHELPER__
2 #define __JAANET__JEVTWEIGHTHELPER__
18 namespace JPP {
using namespace JAANET; }
102 THROW(JNullPointerException,
"JEvtWeightHelper::add(): headers do not match.");
120 THROW(JNullPointerException,
"JEvtWeightHelper::getWeight(): Event weighter is null.");
137 THROW(JNullPointerException,
"JEvtWeightHelper::getWeightNormalisation(): Event weighter is null.");
155 THROW(JNullPointerException,
"JEvtWeightHelper::getWeightNormalisation(): Event weighter is null.");
void configure(const JEvtWeight &weighter)
Configuration.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
JEvtWeightHelper()
Default constructor.
bool check(const JHead &header) const
Check if a given header is consistent with this event weighter.
bool is_valid() const
Check validity of pointer.
double getNormalisation(const Evt &evt) const
Get event-weight normalisation.
virtual clone_type clone() const override
Get clone of this object.
The template JSharedPointer class can be used to share a pointer to an object.
Abstract base class for event weighing.
JHead & add(const JHead &header)
Addition of headers.
double getWeight(const Evt &evt) const
Get weight of given event.
JEvtWeightHelper(const JEvtWeight &weighter)
Constructor.
void setHeader(const JHead &header)
Set header.
const JHead & getHeader() const
Get header.
double getNormalisation() const
Get event-weight normalisation.
virtual void reset() override
Reset pointer.
Helper class for event weighing.
void add(const JHead &header)
Add header.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.