1 #ifndef __JAANET__JDIFFUSEFLUX__
2 #define __JAANET__JDIFFUSEFLUX__
12 #include "flux/Flux.hh"
49 const double log10E = log10(neutrino.
E);
50 const double costh = neutrino.
dir.
z;
52 return dNdEdOmega(neutrino.
type, log10E, costh);
66 const double costh)
const
68 return dNdEdOmega(type, log10E, costh);
82 const double costh)
const
84 return dNdEdOmega(type, log10E, costh);
98 const double costh)
const
100 return dNdEdOmega(type, log10E, costh);
Extensions to Evt data format.
const Trk & get_neutrino(const Evt &evt)
Get incoming neutrino.
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.
Low-level interface for diffuse fluxes.
double getFactor(const int type, const double log10E, const double costh) const
Get diffuse flux for given particle PDG-identifier, energy and zenith-angle.
virtual ~JDiffuseFlux()
Virtual destructor.
double getFactor(const Evt &evt) const override
Get diffuse flux for given event.
double operator()(const int type, const double log10E, const double costh) const
Get diffuse flux for given particle PDG-identifier, energy and zenith-angle.
void Print() const override
Print flux information.
double getFlux(const int type, const double log10E, const double costh) const
Get diffuse flux for given particle PDG-identifier, energy and zenith-angle.
Low-level interface for retrieving the flux corresponding to a given event.
double getFlux(const Evt &evt) const
Get flux of given event.
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower.
int type
MC: particle type in PDG encoding.
double E
Energy [GeV] (either MC truth or reconstructed)