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.
pEvtWeightFactor pFlux
Type definition of flux function pointer.
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.
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 |
|
inlinefinaloverrideinherited |
Check whether this oscillated neutrino flux object is valid.
- Returns
- true if valid; else false
Definition at line 63 of file JOscFlux.hh.
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 |
|
inlinefinaloverrideinherited |
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.
87 const double costh = -neutrino.
dir.
z;
97 const int inType = ((int) channel.
Cparity) * ((int) channel.
in);
98 const int outType = ((int) channel.
Cparity) * ((int) channel.
out);
100 if (outType == neutrino.
type) {
103 P.
getP (channel, neutrino.
E, costh) );
const Trk & get_neutrino(const Evt &evt)
Get incoming neutrino.
@ WEAK_NEUTRAL_CURRENT
Weak neutral current interaction.
@ WEAK_CHARGED_CURRENT
Weak charged current interaction.
static const JOscChannel getOscChannel[]
Declare group of neutrino oscillation channels.
static const unsigned int NUMBER_OF_OSCCHANNELS
Number of neutrino oscillation channels.
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]
|
inlinefinaloverrideinherited |
Get properties of this class.
- Parameters
-
eqpars | equation parameters |
Definition at line 125 of file JOscFlux.hh.
127 return JOscFluxHelper(*
this, eqpars);
◆ getProperties() [2/2]
|
inlinefinaloverrideinherited |
Get properties of this class.
- Parameters
-
eqpars | equation parameters |
Definition at line 136 of file JOscFlux.hh.
138 return JOscFluxHelper(*
this, eqpars);
◆ read()
std::istream& JAANET::JOscFlux::read |
( |
std::istream & |
in | ) |
|
|
inlinefinaloverrideinherited |
Stream input.
- Parameters
-
- Returns
- input stream
Definition at line 148 of file JOscFlux.hh.
◆ clone()
template<class JClonable_t , class JDerived_t >
|
inlineoverridevirtualinherited |
Get clone of this object.
- Returns
- pointer to newly created object
Reimplemented in JTOOLS::JMultiMapTransformer< N, JArgument_t >::JMultiMapDefaultTransformer, JPHYSICS::JPDFTransformer< 5, JArgument_t >, JPHYSICS::JPDFTransformer< 4, JArgument_t >, JPHYSICS::JPDFTransformer< 3, JArgument_t >, JPHYSICS::JPDFTransformer< 2, JArgument_t >, JPHYSICS::JPDGTransformer_t< JArgument_t >, JPHYSICS::JPD0Transformer_t< JArgument_t >, and JPHYSICS::JPDFTransformer_t< JArgument_t >.
Definition at line 69 of file JClonable.hh.
71 return new JDerived_t(
static_cast<const JDerived_t&
>(*
this));
◆ pFlux
The documentation for this struct was generated from the following file: