1 #ifndef __JAANET__JEVTWEIGHTKM3BUU__ 
    2 #define __JAANET__JEVTWEIGHTKM3BUU__ 
   24 namespace JPP { 
using namespace JAANET; }
 
   36     public JClonable<JEvtWeight, JEvtWeightKM3BUU>
 
   80       this->norm = 
object.norm;
 
   82       if (static_cast<const JFluxHelper&>(
object)) {
 
  103         norm = 1.0 / Nevents / dt;
 
  107         THROW(
JValueOutOfRange, 
"JEvtWeightKM3BUU::configure(): Provided header is inconsistent with KM3BUU.");
 
  134       if (static_cast<const JFluxHelper&>(*
this) &&
 
  149         if (!static_cast<const JFluxHelper&>(*
this)) {
 
  150           THROW(JNullPointerException, 
"JEvtWeightKM3BUU::getWeight(): Unspecified flux function.");
 
  152           THROW(
JIndexOutOfRange,      
"JEvtWeightKM3BUU::getWeight(): Empty " << (evt.
w.size() < 3 ? 
"w2-" : 
"w3-") << 
"weight.");
 
bool is_km3buu(const JHead &header)
Check for generator. 
 
static const int WEIGHTLIST_RESCALED_EVENT_RATE
Rescaled event rate [s-1]. 
 
double getWeight(const Evt &evt) const override
Get weight of given event. 
 
bool check(const JHead &header) const override
Check whether header is consistent with this event weighter. 
 
double numberOfEvents
Number of events. 
 
JEvtWeightKM3BUU(const JEvtWeightKM3BUU &object)
Copy constructor. 
 
#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 or km3net-dataformat/definitions) ...
 
JEvtWeightKM3BUU(const JHead &header)
Constructor. 
 
static const int WEIGHTLIST_EVENT_RATE
Event rate [s-1]. 
 
JEvtWeightKM3BUU()
Default constructor. 
 
double getFactor(const Evt &evt) const 
Get weight-factor of given event. 
 
Template class for object cloning. 
 
Helper class for event-weight factor. 
 
void configure(const JEvtWeightFactor_t &factor)
Configure event-weight factor. 
 
Low-level interface for retrieving the flux corresponding to a given event. 
 
Implementation of event weighting for KM3BUU data. 
 
static const int WEIGHTLIST_DIFFERENTIAL_EVENT_RATE
Event rate per unit of flux (c.f. taglist document) [GeV m2 sr]. 
 
void configure(const JHead &header) override
Weight configuration. 
 
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. 
 
JEvtWeightKM3BUU(const JHead &header, const JFlux &flux)
Constructor. 
 
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.