1 #ifndef __JAANET__JEVTWEIGHTTOOLKIT__
2 #define __JAANET__JEVTWEIGHTTOOLKIT__
39 namespace JPP {
using namespace JAANET; }
47 public std::vector< JLANG::JSharedPointer<JEvtWeight> >
71 for (const_iterator
i = this->begin();
i != this->end(); ++
i) {
73 if ((*i)->check(header)) {
106 for (
int type; in >> type; ) {
112 collection.push_back(type);
182 const JOscProb& oscProbInterface = *(this->
get());
189 multiFlux.insert(*
i, atmFluxFunction);
220 JStringStream
is(in);
241 return out << static_cast<const JProperties&>(fluxMapParser);
JEvtWeighter getEventWeighter
Function object for mapping header to event weighter.
JNeutrinoTypeCollection()
Default constructor.
JFluxMultiParticle getMultiParticleFlux() const
Get multiparticle flux function.
void insert(const int type, const JEvtWeightFactor_t &factor)
Insert pair of particle code and event-weight factor.
Implementation of event weighing for DAQ data.
friend std::istream & operator>>(std::istream &in, JNeutrinoTypeCollection &collection)
Stream input.
Low-level interface for retrieving the oscillation probability corresponding to a given oscillation c...
void put(const std::string &key, T &object)
Put object at given key.
JFluxMapParser()
Constructor.
friend std::ostream & operator<<(std::ostream &out, const JNeutrinoTypeCollection &collection)
Stream output.
friend std::ostream & operator<<(std::ostream &out, const JFluxMapParser &fluxMapParser)
Stream output.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
JEvtWeightFactorMultiParticle< JFlux > JFluxMultiParticle
Type-definition of multi-particle event-weight factor for fluxes.
Utility class to parse parameter values.
Implementation of event-weight factor interface.
Helper class for oscillation probabilities.
Implementation of event weighing for miscellaneous data such as a merged offline file containing neut...
Auxiliary class for parsing a vector of neutrino PDG identifiers.
std::map< int, JFlatFlux > flatFluxes
Uniform flux functions.
JEvtWeightFactorFunction< JFunction_t, JFlux > make_fluxFunction(const JFunction_t &flux)
Auxiliary method for creating an interface to a flux function.
bool is_valid() const
Check validity of pointer.
Utility class to parse parameter values.
Abstract base class for event weighing.
Implementation of atmospheric neutrino flux using official KM3NeT atmospheric flux function...
Implementation of event-weight factor for multiple particle types.
Implementation of event weighting for GSeaGen data.
Auxiliary class for parsing multiparticle fluxes.
static JStat getFileStatus
Function object for file status.
Implementation of event weighting for KM3BUU data.
Implementation of event weighing for MUPAGE data.
std::map< int, JPowerLawFlux > powerLawFluxes
Power-law flux functions.
Look-up table for event weighters.
JEvtWeighter()
Constructor.
JNeutrinoTypeCollection atmosphericFluxes
Atmospheric neutrino flux functions.
Definition of particle types.
Implementation of event weighting for Corsika data.
Exception for accessing a value in a collection that is outside of its range.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
friend std::istream & operator>>(std::istream &in, JFluxMapParser &fluxMapParser)
Stream input.
const JEvtWeight & operator()(const JHead &header) const
Get event weighter corresponding to given header.