1#ifndef __JAANET__JEVTWEIGHTHELPER__ 
    2#define __JAANET__JEVTWEIGHTHELPER__ 
   27    public std::shared_ptr<JEvtWeight>
 
   71      reset(weighter.
clone());
 
 
   85      return weighter.
check(header);
 
 
   99        return *(this->get());
 
 
 
#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.
 
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.
 
std::shared_ptr< JEvtWeight > pointer_type
 
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.
 
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 bool check(const JHead &header) const =0
Check whether header is consistent with this event weighter.
 
virtual double getWeight(const Evt &evt) const =0
Get weight of given event.
 
virtual void configure(const JHead &header)=0
Configuration.
 
virtual const char *const getName() const =0
Get name.
 
Abstract base class for event weighing.
 
virtual double getNormalisation() const override
Get event-weight normalisation.
 
virtual clone_type clone() const override
Get clone of this object.