1#ifndef __JAANET__JEVTWEIGHTCORSIKA__ 
    2#define __JAANET__JEVTWEIGHTCORSIKA__ 
   38    public JClonable<JEvtWeight, JEvtWeightCorsika>
 
   79    const char* 
const getName() const override final
 
 
   96        setNormalisation(1.0 / header.genvol.numberOfEvents);
 
  100        THROW(
JValueOutOfRange, 
"JEvtWeightCorsika::configure(): Provided header is inconsistent with Corsika.");
 
 
  147          THROW(
JIndexOutOfRange,      
"JEvtWeightCorsika::getWeight(): Empty " << (evt.w.size() < 3 ? 
"w2-" : 
"w3-") << 
"weight.");
 
 
 
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
 
Exception for accessing an index in a collection that is outside of its range.
 
Exception for null pointer operation.
 
Exception for accessing a value in a collection that is outside of its range.
 
Extensions to Evt data format.
 
bool is_corsika(const JHead &header)
Check for generator.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
 
Implementation of event weighting for Corsika data.
 
JEvtWeightCorsika(const JHead &header)
Constructor.
 
JEvtWeightCorsika()
Default Constructor.
 
double getWeight(const Evt &evt) const override final
Get weight of given event.
 
JEvtWeightCorsika(const JHead &header, const JFlux &flux)
Constructor.
 
const char *const getName() const override final
Get name.
 
bool check(const JHead &header) const override final
Check whether header is consistent with this event weighter.
 
void configure(const JHead &header) override final
Weight configuration.
 
void configure(const pointer_type &p)
Configure event-weight factor.
 
JEvtWeightFactor & getFactor() const
Get reference to event-weight factor.
 
Helper class for flux function.
 
Low-level interface for retrieving the flux corresponding to a given event.
 
Template class for object cloning.
 
static const int W2LIST_GSEAGEN_N_RETRIES
Number of extra chances given to each CORSIKA shower to hit the can.
 
static const int WEIGHTLIST_DIFFERENTIAL_EVENT_RATE
Event rate per unit of flux (c.f. taglist document) [GeV m2 sr].
 
static const int WEIGHTLIST_RESCALED_EVENT_RATE
Rescaled event rate [s-1].
 
static const int WEIGHTLIST_EVENT_RATE
Event rate [s-1].