1 #ifndef __JAANET__JWEIGHTGSEAGEN__
2 #define __JAANET__JWEIGHTGSEAGEN__
29 public JClonable<JWeightEvent, JWeightGSeaGen>
63 THROW(
JValueOutOfRange,
"JWeightGSeaGen::configure(): Provided header is inconsistent with GSeaGen.");
88 if (evt.
w.size() > 2 && !(evt.
w[2] < 0.0)) {
94 if (evt.
w.size() < 3) {
111 const double flux)
const override
113 if (evt.
w.size() > 1 && !(evt.
w[1] < 0.0 || flux < 0.0)) {
115 return W * evt.
w[1] * flux;
119 if (evt.
w.size() < 2) {
bool is_gseagen(const JHead &header)
Check for generator.
double numberOfEvents
Number of events.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
std::vector< double > w
MC: Weights w[0]=w1, w[1]=w2, w[2]]=w3 (see e.g. Tag list)
virtual bool check(const JHead &header) const override
Check whether header is consistent with this event weighter.
virtual double getWeight(const Evt &evt, const double flux) const override
Get weight of given event.
virtual double getWeight(const Evt &evt) const override
Get weight of given event.
Template class for object cloning.
Implementation of event weighing for GSeaGen data.
JWeightGSeaGen()
Default Constructor.
JWeightGSeaGen(const JHead &header)
Constructor.
Exception for accessing a value in a collection that is outside of its range.
Exception for accessing an index in a collection that is outside of its range.
double numberOfSeconds
Time in seconds.
virtual void configure(const JHead &header) override
Configuration.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.