1#ifndef __JAANET__JEVTWEIGHTMISCELLANEOUS__
2#define __JAANET__JEVTWEIGHTMISCELLANEOUS__
38 public JClonable<JEvtWeight, JEvtWeightMiscellaneous>
80 const char*
const getName() const override final
82 return "Miscellaneous";
97 setNormalisation(1.0);
101 THROW(
JValueOutOfRange,
"JEvtWeightMiscellaneous::configure(): Provided header is inconsistent with a miscellaneous, merged offline file.");
114 return header.simul.empty() && !
is_daq(header);
128 return getFactor(evt) * getNormalisation(evt);
136 return getNormalisation(evt);
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Exception for accessing a value in a collection that is outside of its range.
Extensions to Evt data format.
bool is_daq(const JHead &header)
Check for real data.
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-weight factor.
void configure(const pointer_type &p)
Configure event-weight factor.
JEvtWeightFactor & getFactor() const
Get reference to event-weight factor.
Abstract base class for specifiable event-weight factors.
Implementation of event weighing for miscellaneous data such as a merged offline file containing neut...
void configure(const JHead &header) override final
Configuration.
JEvtWeightMiscellaneous()
Default constructor.
const char *const getName() const override final
Get name.
JEvtWeightMiscellaneous(const JHead &header, const JEvtWeightFactor &factor)
Constructor.
double getWeight(const Evt &evt) const override final
Get weight of given event.
bool check(const JHead &header) const override final
Check whether header is consistent with this event weighter.
JEvtWeightMiscellaneous(const JHead &header)
Constructor.
Template class for object cloning.
static const int WEIGHTLIST_RESCALED_EVENT_RATE
Rescaled event rate [s-1].