1 #ifndef __JAANET__JOSCFLUX__
2 #define __JAANET__JOSCFLUX__
7 #include "flux/Flux.hh"
81 const double costh = -neutrino.
dir.
z / neutrino.
dir.
len();
87 const int inType = ((int) channel.
Cparity) * ((int) channel.
in);
88 const int outType = ((int) channel.
Cparity) * ((int) channel.
out);
90 if (outType == neutrino.
type) {
Low-level interface for retrieving the oscillation probability corresponding to a given oscillation c...
Neutrino oscillation channel.
Implementation of oscillated neutrino flux.
static const unsigned int NUMBER_OF_OSCCHANNELS
Number of neutrino oscillation channels.
JFlavour_t in
Incoming flavour.
virtual double getOscProb(const JOscChannel &oscChannel, const double energy, const double costh) const
Get oscillation probability corresponding to given oscillation channel, neutrino energy and zenith an...
Helper class for oscillation probabilities.
double E
Energy [GeV] (either MC truth or reconstructed)
double len() const
Get length.
JOscFlux(const JDiffuseFlux &diffuseFlux, const JOscProb &oscProb)
Constructor.
JOscFlux()
Default constructor.
void configure(const JDiffuseFlux &diffuseFlux)
Configure oscillation probability function.
set_variable E_E log10(E_{fit}/E_{#mu})"
static const JOscChannel getOscChannel[]
Declare group of neutrino oscillation channels.
JChargeParity_t Cparity
Charge-parity.
Explicit emplate specialization of event-weight factor helper for diffuse flux objects.
Template class for object cloning.
double getFactor(const Evt &evt) const override
Get event-weight factor for given event.
Low-level interface for diffuse fluxes.
double operator()(const Evt &evt) const
Get flux for given event.
int type
MC: particle type in PDG encoding.
double getFactor(const int type, const double log10E, const double costh) const
Get diffuse flux corresponding to given neutrino type, energy and zenith angle.
const Trk & get_neutrino(const Evt &evt)
Get incoming neutrino.
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower.
virtual void configure(const JOscProb &oscProb)
Configure oscillation probability function.
JFlavour_t out
Outcoming flavour.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.