Low-level interface for diffuse fluxes.
More...
#include <JDiffuseFlux.hh>
Low-level interface for diffuse fluxes.
Definition at line 27 of file JDiffuseFlux.hh.
◆ clone_type
template<class JClonable_t , class JDerived_t >
◆ ~JDiffuseFlux()
virtual JAANET::JDiffuseFlux::~JDiffuseFlux |
( |
| ) |
|
|
inlinevirtual |
◆ getFactor() [1/2]
double JAANET::JDiffuseFlux::getFactor |
( |
const Evt & |
evt | ) |
const |
|
inlineoverridevirtual |
Get diffuse flux for given event.
- Parameters
-
- Returns
- diffuse flux [GeV^-1 * m^-2 * sr^-1 * s^-1]
Implements JAANET::JEvtWeightFactor.
Definition at line 46 of file JDiffuseFlux.hh.
49 const double log10E = log10(neutrino.
E);
50 const double costh = neutrino.
dir.
z;
52 return dNdEdOmega(neutrino.
type, log10E, costh);
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.
int type
MC: particle type in PDG encoding.
double E
Energy [GeV] (either MC truth or reconstructed)
◆ getFactor() [2/2]
double JAANET::JDiffuseFlux::getFactor |
( |
const int |
type, |
|
|
const double |
log10E, |
|
|
const double |
costh |
|
) |
| const |
|
inline |
Get diffuse flux for given particle PDG-identifier, energy and zenith-angle.
- Parameters
-
type | PDG particle type |
log10E | logarithmic neutrino energy [GeV] |
costh | cosine zenith angle |
- Returns
- diffuse flux [GeV^-1 * m^-2 * sr^-1 * s^-1]
Definition at line 64 of file JDiffuseFlux.hh.
68 return dNdEdOmega(type, log10E, costh);
◆ getFlux() [1/3]
double JAANET::JDiffuseFlux::getFlux |
( |
const int |
type, |
|
|
const double |
log10E, |
|
|
const double |
costh |
|
) |
| const |
|
inline |
Get diffuse flux for given particle PDG-identifier, energy and zenith-angle.
- Parameters
-
type | PDG particle type |
log10E | logarithmic neutrino energy [GeV] |
costh | cosine zenith angle |
- Returns
- diffuse flux [GeV^-1 * m^-2 * sr^-1 * s^-1]
Definition at line 80 of file JDiffuseFlux.hh.
84 return dNdEdOmega(type, log10E, costh);
◆ operator()() [1/2]
double JAANET::JDiffuseFlux::operator() |
( |
const int |
type, |
|
|
const double |
log10E, |
|
|
const double |
costh |
|
) |
| const |
|
inline |
Get diffuse flux for given particle PDG-identifier, energy and zenith-angle.
- Parameters
-
type | PDG particle type |
log10E | logarithmic neutrino energy [GeV] |
costh | cosine zenith angle |
- Returns
- diffuse flux [GeV^-1 * m^-2 * sr^-1 * s^-1]
Definition at line 96 of file JDiffuseFlux.hh.
100 return dNdEdOmega(type, log10E, costh);
◆ Print()
void JAANET::JDiffuseFlux::Print |
( |
| ) |
const |
|
inlineoverride |
◆ getFlux() [2/3]
double JAANET::JFlux::getFlux |
|
inline |
Get flux of given event.
- Parameters
-
- Returns
- flux [GeV^-1 * m^-2 * sr^-1 * s^-1]
Definition at line 37 of file JFlux.hh.
double getFactor(const Evt &evt) const override
Get diffuse flux for given event.
◆ getFlux() [3/3]
double JAANET::JFlux::getFlux |
( |
const Evt & |
evt | ) |
const |
|
inlineinherited |
Get flux of given event.
- Parameters
-
- Returns
- flux [GeV^-1 * m^-2 * sr^-1 * s^-1]
Definition at line 37 of file JFlux.hh.
virtual double getFactor(const Evt &evt) const =0
Get event-weight factor of given event.
◆ getTypeKey()
static const char* const JAANET::JEvtWeightFactor::getTypeKey |
( |
| ) |
|
|
inlinestaticinherited |
◆ operator()() [2/2]
double JAANET::JEvtWeightFactor::operator() |
( |
const Evt & |
evt | ) |
const |
|
inlineinherited |
Get event-weight factor of given event.
- Parameters
-
- Returns
- event-weight factor
Definition at line 66 of file JEvtWeightFactor.hh.
◆ is_valid()
virtual bool JAANET::JEvtWeightFactor::is_valid |
( |
| ) |
const |
|
inlinevirtualinherited |
Check whether this event-weight factor is valid.
- Returns
- true if valid; else false
Definition at line 77 of file JEvtWeightFactor.hh.
◆ check_validity()
void JAANET::JEvtWeightFactor::check_validity |
( |
| ) |
const |
|
inlineinherited |
Check validity of this event-weight factor.
Definition at line 86 of file JEvtWeightFactor.hh.
91 THROW(
JValueOutOfRange,
"JEvtWeightFactor():check_validity(): Invalid event-weight factor " << *
this);
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Exception for accessing a value in a collection that is outside of its range.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
virtual bool is_valid() const
Check whether this event-weight factor is valid.
◆ getEquationParameters()
Get equation parameters.
- Returns
- equation parameters
Definition at line 101 of file JEvtWeightFactor.hh.
Simple data structure to support I/O of equations (see class JLANG::JEquation).
◆ setEquationParameters()
static void JAANET::JEvtWeightFactor::setEquationParameters |
( |
const JEquationParameters & |
eqpars | ) |
|
|
inlinestaticinherited |
Set equation parameters.
- Parameters
-
eqpars | equation parameters |
Definition at line 114 of file JEvtWeightFactor.hh.
static JEquationParameters & getEquationParameters()
Get equation parameters.
◆ getProperties() [1/2]
◆ getProperties() [2/2]
◆ read()
virtual std::istream& JAANET::JEvtWeightFactor::read |
( |
std::istream & |
in | ) |
|
|
inlinevirtualinherited |
Read event-weight factor from input.
- Parameters
-
- Returns
- input stream
Reimplemented in JAANET::JEvtWeightFactorTFormula.
Definition at line 148 of file JEvtWeightFactor.hh.
Wrapper class around STL stringstream class to facilitate optional loading of data from file.
static JStat getFileStatus
Function object for file status.
virtual JProperties getProperties(const JEquationParameters &eqpars=JEvtWeightFactor::getEquationParameters())
Get properties of this class.
void check_validity() const
Check validity of this event-weight factor.
◆ write()
virtual std::ostream& JAANET::JEvtWeightFactor::write |
( |
std::ostream & |
out | ) |
const |
|
inlinevirtualinherited |
Write event-weight factor to output.
- Parameters
-
- Returns
- output stream
Definition at line 174 of file JEvtWeightFactor.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));
The documentation for this struct was generated from the following file: