1#ifndef __JAANET__JEVTWEIGHTTOOLKIT__
2#define __JAANET__JEVTWEIGHTTOOLKIT__
80 for (const_iterator i = this->begin(); i != this->end(); ++i) {
82 if ((*i)->check(header)) {
87 THROW(
JValueOutOfRange,
"JEvtWeighter::operator(): No event weighter found for given header:" << endl << header);
133 const double l_int = 1.0e-6 * NUCLEON_MOLAR_MASS / (evt.
w2list[
W2LIST_GENHEN_SIG] * DENSITY_SEA_WATER * AVOGADRO);
134 const double year = 60*60*24*365;
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Definition of particle types.
Utility class to parse parameter values.
Exception for cast operation.
Exception for accessing a value in a collection that is outside of its range.
Extensions to Evt data format.
double getVolume(const JType< JEvtWeightGSeaGen > &type, const Evt &evt)
Get volume of given event according given weighter.
JEvtWeighter getEventWeighter
Function object for mapping header to event weighter.
Auxiliary methods for light properties of deep-sea water.
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.
std::vector< double > w
MC: Weights w[0]=w1, w[1]=w2, w[2]=w3 (see e.g. Tag list or km3net-dataformat/definitions)
std::vector< double > w2list
MC: factors that make up w[1]=w2 (see e.g. Tag list or km3net-dataformat/definitions)
Implementation of event weighting for Corsika data.
Implementation of event weighing for DAQ data.
Implementation of event weighting for GSeaGen data.
Implementation of event weighting for Genhen data.
Implementation of event weighting for KM3BUU data.
Implementation of event weighing for miscellaneous data such as a merged offline file containing neut...
Implementation of event weighing for MUPAGE data.
Abstract base class for event weighing.
Look-up table for event weighters.
JEvtWeighter()
Constructor.
const JEvtWeight & operator()(const JHead &header) const
Get event weighter corresponding to given header.
Auxiliary class for a type holder.
static const int W2LIST_GENHEN_SIG
Cross section of the neutrion interaction.
static const int W2LIST_GENHEN_P_EARTH
Transmission probability in the Earth.
static const int W2LIST_GSEAGEN_WATER_INT_LEN
Interaction length in pure water in m.
static const int W2LIST_GSEAGEN_P_EARTH
Transmission probability in the Earth (XSEC_MEAN and COLUMN_DEPTH used to compute PEarth)
static const int W2LIST_KM3BUU_WATER_INT_LEN
Interaction length in pure water in m.
static const int W2LIST_KM3BUU_P_EARTH
Transmission probability in the Earth.
static const int WEIGHTLIST_DIFFERENTIAL_EVENT_RATE
Event rate per unit of flux (c.f. taglist document) [GeV m2 sr].