Jpp test-rotations-old
the software that should make you happy
|
Template definition for Honda flux table interpolator. More...
#include <JHondaFluxInterpolator.hh>
Classes | |
struct | JHondaFluxInterpolatorHelper |
Auxiliary class for I/O of Honda flux interpolator. More... | |
Public Member Functions | |
JHondaFluxInterpolator () | |
Default constructor. | |
JHondaFluxInterpolator (const char *filename) | |
Constructor. | |
JHondaFluxInterpolator (const interpolator_type &interpolator) | |
Copy constructor. | |
bool | is_valid () const override final |
Check whether this interpolator is valid. | |
double | getFactor (const int type, const double log10E, const double costh, const double phi) const |
Get diffuse flux for given particle PDG-identifier, energy, cosine zenith angle and azimuth angle. | |
double | getFlux (const int type, const double log10E, const double costh, const double phi) const |
Get flux of given event. | |
double | operator() (const int type, const double log10E, const double costh, const double phi) const |
Get diffuse flux for given particle PDG-identifier, energy, cosine zenith angle and azimuth angle. | |
double | getFactor (const Evt &evt) const override final |
Get flux of given event. | |
double | getFlux (const Evt &event) const |
Get flux of given event. | |
void | load () |
Load Honda flux table. | |
void | load (const char *table) |
Load Honda flux table. | |
JProperties | getProperties (const JEquationParameters &eqpars=JEvtWeightFactor::getEquationParameters()) override final |
Get properties of this class. | |
JProperties | getProperties (const JEquationParameters &eqpars=JEvtWeightFactor::getEquationParameters()) const override final |
Get properties of this class. | |
const JMultiFunction & | getMultiFunction () const |
Get multidimensional function. | |
JMultiFunction & | getMultiFunction () |
Get multidimensional function. | |
template<class __JFunction_t , class __JMaplist_t , class __JDistance_t > | |
void | insert (const JMultiFunction< __JFunction_t, __JMaplist_t, __JDistance_t > &input) |
Insert multidimensional input. | |
template<class JHistogram_t , class __JMaplist_t , class __JDistance_t > | |
void | insert (const JMultiHistogram< JHistogram_t, __JMaplist_t, __JDistance_t > &input) |
Insert multidimensional input. | |
void | compile () |
Compilation. | |
void | setExceptionHandler (const typename function_type::supervisor_type &supervisor) |
Set the supervisor for handling of exceptions. | |
template<class ... Args> | |
result_type | operator() (const Args &...args) const |
Multi-dimensional interpolation method call. | |
virtual clone_type | clone () const override |
Get clone of this object. | |
void | store (const char *file_name) const |
Store to output file. | |
Static Public Attributes | |
static int | debug = 0 |
debug level (default is off). | |
Protected Member Functions | |
template<unsigned int N, class __JAbscissa_t , class __JContents_t , template< class, class, class > class __JMap_t, class __JDistance_t > | |
void | insert (const JMultiKey< N, argument_type > &key, const JHistogramMap< __JAbscissa_t, __JContents_t, __JMap_t, __JDistance_t > &input) |
Insert multidimensional histogram at multidimensional key. | |
template<class __JElement_t , template< class, class > class __JContainer_t, class __JDistance_t > | |
void | insert (const JMultiKey< JMapLength< JMaplist_t >::value, argument_type > &key, const JHistogram1D< __JElement_t, __JContainer_t, __JDistance_t > &input) |
Convert one-dimensional histogram to PDF and insert result at given multidimensional key. | |
template<class JHistogram_t , class __JMaplist_t , class __JDistance_t > | |
void | insert (const JMultiKey< JMapLength< JMaplist_t >::value, argument_type > &key, const JMultiHistogram< JHistogram_t, __JMaplist_t, __JDistance_t > &input) |
Convert multidimensional histogram to PDF and insert result at given multidimensional key. | |
Private Attributes | |
JLoadProperty< interpolator_type, std::string > | table |
Table filename. | |
JRange_t | coszRange |
Zenith angle range. | |
JRange_t | phiRange |
Azimuth angle range [deg]. | |
Friends | |
std::ifstream & | operator>> (std::ifstream &ifs, interpolator_type &interpolator) |
Read Honda atmospheric neutrino flux interpolator from file. | |
Template definition for Honda flux table interpolator.
Definition at line 197 of file JHondaFluxInterpolator.hh.
JMAPLIST<JEnergyFunctionalMap_t,JCoszFunctionalMap_t>::maplist JAANET::JHondaFluxInterpolator< JPhiFunction_t, JCoszFunctionalMap_t, JEnergyFunctionalMap_t >::JFunctionalMaplist_t |
Definition at line 205 of file JHondaFluxInterpolator.hh.
JHondaFluxInterpolator<JPhiFunction_t, JCoszFunctionalMap_t, JEnergyFunctionalMap_t> JAANET::JHondaFluxInterpolator< JPhiFunction_t, JCoszFunctionalMap_t, JEnergyFunctionalMap_t >::interpolator_type |
Definition at line 207 of file JHondaFluxInterpolator.hh.
JMultiFunction<JPhiFunction_t, JFunctionalMaplist_t> JAANET::JHondaFluxInterpolator< JPhiFunction_t, JCoszFunctionalMap_t, JEnergyFunctionalMap_t >::multifunction_type |
Definition at line 208 of file JHondaFluxInterpolator.hh.
multifunction_type::abscissa_type JAANET::JHondaFluxInterpolator< JPhiFunction_t, JCoszFunctionalMap_t, JEnergyFunctionalMap_t >::abscissa_type |
Definition at line 212 of file JHondaFluxInterpolator.hh.
multifunction_type::argument_type JAANET::JHondaFluxInterpolator< JPhiFunction_t, JCoszFunctionalMap_t, JEnergyFunctionalMap_t >::argument_type |
Definition at line 213 of file JHondaFluxInterpolator.hh.
multifunction_type::result_type JAANET::JHondaFluxInterpolator< JPhiFunction_t, JCoszFunctionalMap_t, JEnergyFunctionalMap_t >::result_type |
Definition at line 214 of file JHondaFluxInterpolator.hh.
multifunction_type::value_type JAANET::JHondaFluxInterpolator< JPhiFunction_t, JCoszFunctionalMap_t, JEnergyFunctionalMap_t >::value_type |
Definition at line 215 of file JHondaFluxInterpolator.hh.
multifunction_type::multimap_type JAANET::JHondaFluxInterpolator< JPhiFunction_t, JCoszFunctionalMap_t, JEnergyFunctionalMap_t >::multimap_type |
Definition at line 217 of file JHondaFluxInterpolator.hh.
multifunction_type::super_const_iterator JAANET::JHondaFluxInterpolator< JPhiFunction_t, JCoszFunctionalMap_t, JEnergyFunctionalMap_t >::super_const_iterator |
Definition at line 219 of file JHondaFluxInterpolator.hh.
multifunction_type::super_iterator JAANET::JHondaFluxInterpolator< JPhiFunction_t, JCoszFunctionalMap_t, JEnergyFunctionalMap_t >::super_iterator |
Definition at line 220 of file JHondaFluxInterpolator.hh.
multifunction_type::function_type JAANET::JHondaFluxInterpolator< JPhiFunction_t, JCoszFunctionalMap_t, JEnergyFunctionalMap_t >::function_type |
Definition at line 221 of file JHondaFluxInterpolator.hh.
JRange<abscissa_type> JAANET::JHondaFluxInterpolator< JPhiFunction_t, JCoszFunctionalMap_t, JEnergyFunctionalMap_t >::JRange_t |
Definition at line 223 of file JHondaFluxInterpolator.hh.
|
inherited |
Definition at line 57 of file JMultiFunction.hh.
|
inherited |
Definition at line 60 of file JMultiFunction.hh.
|
inherited |
Definition at line 61 of file JMultiFunction.hh.
|
inherited |
Definition at line 62 of file JMultiFunction.hh.
|
inherited |
Definition at line 63 of file JMultiFunction.hh.
|
inherited |
Definition at line 61 of file JClonable.hh.
anonymous enum |
Enumerator | |
---|---|
NUMBER_OF_DIMENSIONS |
Definition at line 210 of file JHondaFluxInterpolator.hh.
|
inherited |
Enumerator | |
---|---|
NUMBER_OF_DIMENSIONS |
Definition at line 49 of file JMultiFunction.hh.
|
inline |
Default constructor.
Definition at line 229 of file JHondaFluxInterpolator.hh.
|
inline |
Constructor.
filename | Honda flux table filename |
Definition at line 241 of file JHondaFluxInterpolator.hh.
|
inline |
Copy constructor.
interpolator | Honda flux interpolator |
Definition at line 255 of file JHondaFluxInterpolator.hh.
|
inlinefinaloverride |
Check whether this interpolator is valid.
Definition at line 270 of file JHondaFluxInterpolator.hh.
|
inline |
Get diffuse flux for given particle PDG-identifier, energy, cosine zenith angle and azimuth angle.
type | PDG particle type |
log10E | logarithmic neutrino energy [GeV] |
costh | cosine zenith angle |
phi | azimuth angle (defined clockwise w.r.t. the North) [deg] |
< [–]
< [deg]
< Honda azimuth angle is defined counterclockwise w.r.t. the South
(c.f. arXiv:1102.2688), so a conversion is necessary.
Definition at line 287 of file JHondaFluxInterpolator.hh.
|
inline |
Get flux of given event.
type | PDG particle type |
log10E | logarithmic neutrino energy [GeV] |
costh | cosine zenith angle |
phi | azimuth angle (defined clockwise w.r.t. the North) [deg] |
Definition at line 432 of file JHondaFluxInterpolator.hh.
|
inline |
Get diffuse flux for given particle PDG-identifier, energy, cosine zenith angle and azimuth angle.
type | PDG particle type |
log10E | logarithmic neutrino energy [GeV] |
costh | cosine zenith angle |
phi | azimuth angle (defined clockwise w.r.t. the North) [deg] |
Definition at line 450 of file JHondaFluxInterpolator.hh.
|
inlinefinaloverride |
Get flux of given event.
evt | event |
< The gSeaGen azimuth angle is defined clockwise w.r.t. the North (c.f. arXiv:2003.14040)
Definition at line 465 of file JHondaFluxInterpolator.hh.
|
inline |
Get flux of given event.
event | event |
Definition at line 485 of file JHondaFluxInterpolator.hh.
|
inline |
Load Honda flux table.
Definition at line 494 of file JHondaFluxInterpolator.hh.
|
inline |
Load Honda flux table.
table | Honda flux table filename |
Definition at line 517 of file JHondaFluxInterpolator.hh.
|
inlinefinaloverride |
Get properties of this class.
eqpars | equation parameters |
Definition at line 530 of file JHondaFluxInterpolator.hh.
|
inlinefinaloverride |
Get properties of this class.
eqpars | equation parameters |
Definition at line 541 of file JHondaFluxInterpolator.hh.
|
inlineinherited |
Get multidimensional function.
Definition at line 98 of file JMultiFunction.hh.
|
inlineinherited |
Get multidimensional function.
Definition at line 109 of file JMultiFunction.hh.
|
inlineinherited |
Insert multidimensional input.
input | multidimensional function |
Definition at line 121 of file JMultiFunction.hh.
|
inlineinherited |
Insert multidimensional input.
input | multidimensional histogram |
Definition at line 133 of file JMultiFunction.hh.
|
inlineprotectedinherited |
Insert multidimensional histogram at multidimensional key.
key | multidimensional key |
input | multidimensional histogram |
Definition at line 194 of file JMultiFunction.hh.
|
inlineprotectedinherited |
Convert one-dimensional histogram to PDF and insert result at given multidimensional key.
key | multidimensional key |
input | histogram |
Definition at line 216 of file JMultiFunction.hh.
|
inlineprotectedinherited |
Convert multidimensional histogram to PDF and insert result at given multidimensional key.
key | multidimensional key |
input | multidimensional histogram |
Definition at line 235 of file JMultiFunction.hh.
|
inlineinherited |
Compilation.
Definition at line 142 of file JMultiFunction.hh.
|
inlineinherited |
Set the supervisor for handling of exceptions.
supervisor | supervisor |
Definition at line 157 of file JMultiFunction.hh.
|
inlineinherited |
Multi-dimensional interpolation method call.
args | comma seperated list of abscissa values |
Definition at line 174 of file JMultiFunction.hh.
|
inlineoverridevirtualinherited |
Get clone of this 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.
|
inlineinherited |
Store to output file.
file_name | file name |
Definition at line 41 of file JObjectStreamIO.hh.
|
friend |
Read Honda atmospheric neutrino flux interpolator from file.
ifs | input file stream |
interpolator | Honda flux interpolator |
Definition at line 554 of file JHondaFluxInterpolator.hh.
|
private |
Table filename.
Definition at line 634 of file JHondaFluxInterpolator.hh.
|
private |
Zenith angle range.
Definition at line 636 of file JHondaFluxInterpolator.hh.
|
private |
Azimuth angle range [deg].
Definition at line 637 of file JHondaFluxInterpolator.hh.
|
staticinherited |
debug level (default is off).
Definition at line 45 of file JMessage.hh.