#ifndef __JAANET__JEVTWEIGHT__ #define __JAANET__JEVTWEIGHT__ #include "JLang/JClonable.hh" #include "JAAnet/JEvtWeightInterface.hh" /** * \author mdejong */ namespace JAANET { using JLANG::JClonable; /** * Abstract base class for event weighing. */ struct JEvtWeight : public JEvtWeightInterface, public JClonable { /** * Default constructor. */ JEvtWeight() : norm(0.0) {} /** * Virtual destructor. */ virtual ~JEvtWeight() {} /** * Get event-weight normalisation. * Note: the return-value should be *multiplied* in order to normalise the event-weight * * \return event-weight normalisation */ virtual double getNormalisation() const override { return norm; } protected: double norm; //!< Event-weight normalisation }; } #endif