Implementation of atmospheric neutrino flux using official KM3NeT atmospheric flux function.
More...
#include <JAtmosphericNeutrinoFlux.hh >
Implementation of atmospheric neutrino flux using official KM3NeT atmospheric flux function.
Definition at line 35 of file JAtmosphericNeutrinoFlux.hh .
◆ clone_type
template<class JClonable_t , class JDerived_t >
◆ JAtmosphericNeutrinoFlux() [1/3]
JAANET::JAtmosphericNeutrinoFlux::JAtmosphericNeutrinoFlux
(
const JOscProbHelper & pOscProb )
inline
Constructor.
Parameters
pOscProb shared pointer to oscillation probability interface
Definition at line 43 of file JAtmosphericNeutrinoFlux.hh .
43 :
45 {}
static const JDiffuseFluxHelper pFlux
Initialisation of atmospheric neutrino flux function.
JOscFlux(const JDiffuseFluxHelper &diffuseFlux, const JOscProbHelper &oscProb)
Constructor.
◆ JAtmosphericNeutrinoFlux() [2/3]
JAANET::JAtmosphericNeutrinoFlux::JAtmosphericNeutrinoFlux
(
const JOscProbInterface & oscProbInterface )
inline
◆ JAtmosphericNeutrinoFlux() [3/3]
template<class JOscProbFunction_t >
JAANET::JAtmosphericNeutrinoFlux::JAtmosphericNeutrinoFlux
(
const JOscProbFunction_t & oscProbCalculator )
inline
Constructor.
The template argument refers to an oscillation probability function object or pointer.
Parameters
oscProbCalculator oscillation probability calculator
Definition at line 66 of file JAtmosphericNeutrinoFlux.hh .
66 :
68 {}
JOscProbFunction< JFunction_t > make_oscProbFunction(const JFunction_t &function)
Auxiliary method for creating an interface to an oscillation probability function.
JAtmosphericNeutrinoFlux(const JOscProbHelper &pOscProb)
Constructor.
◆ is_valid()
bool JAANET::JOscFlux::is_valid
(
)
const
inline final override inherited
Check whether this oscillated neutrino flux object is valid.
Returns true if valid; else false
Definition at line 63 of file JOscFlux.hh .
64 {
67 }
bool is_valid() const
Check validity of oscillation parameters.
bool is_valid() const
Check whether this event-weight factor is valid.
JOscParameterReferences_t & getParameters() const
Get reference to oscillation parameters interface.
◆ getFactor()
double JAANET::JOscFlux::getFactor
(
const Evt & evt )
const
inline final override inherited
Get flux for given event.
Note that in this evaluation the zenith-angle is defined
with respect to the line of sight (i.e. a neutrino pointing straight at you
from the center of the Earth has ).
Parameters
Returns flux
Definition at line 80 of file JOscFlux.hh .
81 {
83
85
87 const double costh = -neutrino.
dir .
z ;
88
90
92
93 for (int i = 0; i != NUMBER_OF_OSCCHANNELS; ++i) {
94
96
97 const int inType = ((int) channel.
Cparity ) * ((
int ) channel.
in );
98 const int outType = ((int) channel.
Cparity ) * ((
int ) channel.
out );
99
100 if (outType == neutrino.
type ) {
101
103 P .
getP (channel, neutrino.
E , costh) );
104 }
105 }
106
108
110
114 }
115
117 }
@ WEAK_NEUTRAL_CURRENT
Weak neutral current interaction.
@ WEAK_CHARGED_CURRENT
Weak charged current interaction.
const Trk & get_neutrino(const Evt &evt)
Get incoming neutrino.
JChargeParity_t getChargeParity(const int pdgType)
Auxiliary function for retrieving the charge-parity of a given PDG type.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
std::vector< double > w2list
MC: factors that make up w[1]=w2 (see e.g. Tag list or km3net-dataformat/definitions)
double getFlux(const int type, const double log10E, const double costh) const
Get flux for given particle PDG-identifier, energy and zenith-angle.
Neutrino oscillation channel.
JChargeParity_t Cparity
Charge-parity.
JFlavour_t in
Incoming flavour.
JFlavour_t out
Outcoming flavour.
double getP(const JOscChannel &channel, const double energy, const double costh) const
Get oscillation probability corresponding to given oscillation channel, neutrino energy and zenith an...
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)
static const int W2LIST_GSEAGEN_CC
Charged current interaction flag.
◆ getProperties() [1/2]
inline final override inherited
Get properties of this class.
Parameters
eqpars equation parameters
Definition at line 125 of file JOscFlux.hh .
126 {
127 return JOscFluxHelper(*this , eqpars);
128 }
◆ getProperties() [2/2]
inline final override inherited
Get properties of this class.
Parameters
eqpars equation parameters
Definition at line 136 of file JOscFlux.hh .
137 {
138 return JOscFluxHelper(*this , eqpars);
139 }
◆ read()
std::istream & JAANET::JOscFlux::read
(
std::istream & in )
inline final override inherited
Stream input.
Parameters
Returns input stream
Definition at line 148 of file JOscFlux.hh .
149 {
152
155 }
156
159 }
160
161 check_validity();
162
163 return in;
164 }
◆ clone()
template<class JClonable_t , class JDerived_t >
inline override virtual inherited
Get clone of this object.
Returns pointer to newly created object
Reimplemented in JPHYSICS::JPD0Transformer_t< JArgument_t > , JPHYSICS::JPDFTransformer< 2, JArgument_t > , JPHYSICS::JPDFTransformer< 3, JArgument_t > , JPHYSICS::JPDFTransformer< 4, JArgument_t > , JPHYSICS::JPDFTransformer< 5, JArgument_t > , JPHYSICS::JPDFTransformer_t< JArgument_t > , JPHYSICS::JPDGTransformer_t< JArgument_t > , and JTOOLS::JMultiMapTransformer< N, JArgument_t >::JMultiMapDefaultTransformer .
Definition at line 69 of file JClonable.hh .
70 {
71 return new JDerived_t(static_cast< const JDerived_t&> (*this ));
72 }
◆ pFlux
The documentation for this struct was generated from the following file: