1 #ifndef __JAANET__JWEIGHTDAQ__
2 #define __JAANET__JWEIGHTDAQ__
28 public JClonable<JWeightEvent, JWeightDAQ>
62 THROW(
JValueOutOfRange,
"JWeightDAQ::configure(): Provided header is inconsistent with a DAQ-header.");
double getWeight(const Evt &evt) const override
Get weight of given event.
JWeightDAQ()
Default constructor.
bool check(const JHead &header) const override
Check whether header is consistent with this event weighter.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
void configure(const JHead &header) override
Configuration.
double livetime_s
Live time [s].
JWeightDAQ(const JHead &header)
Constructor.
bool is_daq(const JHead &header)
Check for real data.
Template class for object cloning.
Exception for accessing a value in a collection that is outside of its range.
Implementation of event weighing for DAQ data.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.