1 #ifndef __JAANET__JEVTWEIGHTMISCELLANEOUS__
2 #define __JAANET__JEVTWEIGHTMISCELLANEOUS__
24 namespace JPP {
using namespace JAANET; }
37 public JClonable<JEvtWeight, JEvtWeightMiscellaneous>,
82 this->norm =
object.norm;
105 THROW(
JValueOutOfRange,
"JEvtWeightMiscellaneous::configure(): Provided header is inconsistent with a miscellaneous, merged offline file.");
132 return getFactor(evt) * getNormalisation(evt);
140 return getNormalisation(evt);
static const int WEIGHTLIST_RESCALED_EVENT_RATE
Rescaled event rate [s-1].
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
bool check(const JHead &header) const override
Check whether header is consistent with this event weighter.
std::vector< double > w
MC: Weights w[0]=w1, w[1]=w2, w[2]=w3 (see e.g. Tag list or km3net-dataformat/definitions) ...
Implementation of event weighing for miscellaneous data such as a merged offline file containing neut...
bool is_valid() const
Check validity of pointer.
void configure(const JHead &header) override
Configuration.
double getWeight(const Evt &evt) const override
Get weight of given event.
JEvtWeightMiscellaneous(const JHead &header, const JEvtWeightFactor &factor)
Constructor.
double getFactor(const Evt &evt) const
Get weight-factor of given event.
JEvtWeightMiscellaneous()
Default constructor.
bool is_daq(const JHead &header)
Check for real data.
Template class for object cloning.
Helper class for event-weight factor.
void configure(const JEvtWeightFactor_t &factor)
Configure event-weight factor.
std::vector< JAANET::simul > simul
Exception for accessing a value in a collection that is outside of its range.
JEvtWeightMiscellaneous(const JHead &header)
Constructor.
Low-level interface for retrieving a specifiable multiplication factor corresponding to a given event...
JEvtWeightMiscellaneous(const JEvtWeightMiscellaneous &object)
Copy constructor.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.