1#ifndef __JAANET__JEVTWEIGHTHELPER__
2#define __JAANET__JEVTWEIGHTHELPER__
27 public std::shared_ptr<JEvtWeight>
99 return *(this->get());
173 return weighter.getNormalisation(evt);
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
JHead & add(const JHead &header)
Addition of headers.
const JHead & getHeader() const
Get header.
void setHeader(const JHead &header)
Set header.
Exception for null pointer operation.
Exception for accessing a value in a collection that is outside of its range.
Template definition of a multi-dimensional oscillation probability interpolation table.
Extensions to Evt data format.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
Helper class for event weighing.
void configure(const JEvtWeight &weighter)
Configuration.
double getNormalisation() const
Get event-weight normalisation.
double getWeight(const Evt &evt) const
Get weight of given event.
const char *const getName() const
Get name.
JEvtWeight & getEvtWeighter() const
Get reference to event-weighter.
void add(const JHead &header)
Add header.
bool check(const JHead &header) const
Check if a given header is consistent with this event weighter.
std::shared_ptr< JEvtWeight > pointer_type
int counter
Counter to check how many headers have been added.
double getNormalisation(const Evt &evt) const
Get event-weight normalisation.
JEvtWeightHelper()
Default constructor.
JEvtWeightHelper(const JEvtWeight &weighter)
Constructor.
virtual const char *const getName() const =0
Get name.
Abstract base class for event weighing.
virtual clone_type clone() const override
Get clone of this object.