1 #ifndef __JAANET__JWEIGHTMUPAGE__
2 #define __JAANET__JWEIGHTMUPAGE__
23 namespace JPP {
using namespace JAANET; }
34 public JClonable<JEvtWeight, JEvtWeightMupage>,
81 this->norm =
object.norm;
83 if (static_cast<const JEvtWeightFactorHelper&>(
object)) {
109 THROW(
JValueOutOfRange,
"JEvtWeightMupage::configure(): Provided header is inconsistent with MUPAGE.");
134 if (static_cast<const JEvtWeightFactorHelper_t&>(*
this)) {
136 return getFactor(evt) * getNormalisation(evt);
144 return getNormalisation(evt);
bool is_mupage(const JHead &header)
Check for generator.
static const int WEIGHTLIST_RESCALED_EVENT_RATE
Rescaled event rate [s-1].
double t1
Start time in seconds.
JEvtWeightMupage()
Default Constructor.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
double t2
Stop time in seconds.
std::vector< double > w
MC: Weights w[0]=w1, w[1]=w2, w[2]=w3 (see e.g. Tag list or km3net-dataformat/definitions) ...
JAANET::time_interval time_interval
JEvtWeightFactorHelper< JEvtWeightFactor > JEvtWeightFactorHelper_t
void configure(const JHead &header) override
Configuration.
double getFactor(const Evt &evt) const
Get weight-factor of given event.
Template class for object cloning.
JEvtWeightMupage(const JHead &header)
Constructor.
Helper class for event-weight factor.
void configure(const JEvtWeightFactor_t &factor)
Configure event-weight factor.
Implementation of event weighing for MUPAGE data.
bool check(const JHead &header) const override
Check whether header is consistent with this event weighter.
double getWeight(const Evt &evt) const override
Get rate of given event.
Exception for accessing a value in a collection that is outside of its range.
JEvtWeightMupage(const JHead &header, const JEvtWeightFactor &factor)
Constructor.
Low-level interface for retrieving a specifiable multiplication factor corresponding to a given event...
double numberOfSeconds
Live time [s].
JEvtWeightMupage(const JEvtWeightMupage &object)
Copy constructor.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
JAANET::livetime livetime