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 30 of file JAtmosphericNeutrinoFlux.hh .
◆ clone_type
template<class JClonable_t , class JDerived_t >
◆ JAtmosphericNeutrinoFlux() [1/2]
JAANET::JAtmosphericNeutrinoFlux::JAtmosphericNeutrinoFlux
(
const JOscProbHelper & pOscProb )
inline
Constructor.
Parameters
pOscProb shared pointer to oscillation probability interface
Definition at line 38 of file JAtmosphericNeutrinoFlux.hh .
38 :
40 {}
static const JDiffuseFluxHelper pFlux
Initialisation of atmospheric neutrino flux function.
JOscFlux(const JDiffuseFluxHelper &diffuseFlux, const JOscProbHelper &oscProb)
Constructor.
◆ JAtmosphericNeutrinoFlux() [2/2]
JAANET::JAtmosphericNeutrinoFlux::JAtmosphericNeutrinoFlux
(
const JOscProbInterface & oscProbInterface )
inline
◆ getOscProb()
Get oscillation probability calculator.
Returns oscillation probability calculator
Definition at line 65 of file JOscFlux.hh .
66 {
68 }
JOscProbHelper P
Oscillation probability calculator.
◆ setOscProb()
Set oscillation probability calculator.
Parameters
oscProb oscillation probability calculator.
Definition at line 76 of file JOscFlux.hh .
77 {
79
80 if (oscProb) {
82 } else {
84 }
85 }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Exception for null pointer operation.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
◆ getDiffuseFlux()
Get diffuse flux function.
Returns diffuse flux function
Definition at line 93 of file JOscFlux.hh .
94 {
96 }
JDiffuseFluxHelper F
Diffuse flux function.
◆ setDiffuseFlux()
Set diffuse flux function.
Parameters
flux diffuse flux function
Definition at line 104 of file JOscFlux.hh .
105 {
108
113 } else {
115 }
116 }
Exception for accessing a value in a collection that is outside of its range.
◆ 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 124 of file JOscFlux.hh .
125 {
127 }
bool is_valid() const
Check whether this event-weight factor is valid.
◆ 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 140 of file JOscFlux.hh .
141 {
143
145
147 const double costh = -neutrino.
dir .
z ;
148
150
152
153 for (int i = 0; i != NUMBER_OF_OSCCHANNELS; ++i) {
154
156
157 const int inType = ((int) channel.
Cparity ) * ((
int ) channel.
in );
158 const int outType = ((int) channel.
Cparity ) * ((
int ) channel.
out );
159
160 if (outType == neutrino.
type ) {
161
163 P .
getP (channel, neutrino.
E , costh) );
164 }
165 }
166
168
170
174 }
175
177 }
@ 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.
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 185 of file JOscFlux.hh .
186 {
187 return JOscFluxHelper(*this , eqpars);
188 }
◆ getProperties() [2/2]
inline final override inherited
Get properties of this class.
Parameters
eqpars equation parameters
Definition at line 196 of file JOscFlux.hh .
197 {
198 return JOscFluxHelper(*this , eqpars);
199 }
◆ 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
Oscillation probability calculator.
Definition at line 240 of file JOscFlux.hh .
The documentation for this struct was generated from the following file: