Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
JAANET::JHondaAngularBinSpecs Struct Reference

Auxiliary data structure for reading angular binning specifications of Honda flux table. More...

#include <JHondaFluxInterpolator.hh>

Public Member Functions

 JHondaAngularBinSpecs ()
 Default constructor.
 
 JHondaAngularBinSpecs (const double minCosz, const double maxCosz, const double minPhi, const double maxPhi)
 Constructor.
 

Public Attributes

JHondaBinRange coszRange
 Cosine zenith-angle range.
 
JHondaBinRange phiRange
 Azimuthal angle range [deg].
 

Friends

std::istream & operator>> (std::istream &in, JHondaAngularBinSpecs &binspecs)
 Read bin specifications from input.
 

Detailed Description

Auxiliary data structure for reading angular binning specifications of Honda flux table.

Definition at line 136 of file JHondaFluxInterpolator.hh.

Constructor & Destructor Documentation

◆ JHondaAngularBinSpecs() [1/2]

JAANET::JHondaAngularBinSpecs::JHondaAngularBinSpecs ( )
inline

Default constructor.

Definition at line 141 of file JHondaFluxInterpolator.hh.

141 :
142 coszRange(-1.0, 1.0),
143 phiRange ( 0.0, 360.0)
144 {}
JHondaBinRange coszRange
Cosine zenith-angle range.
JHondaBinRange phiRange
Azimuthal angle range [deg].

◆ JHondaAngularBinSpecs() [2/2]

JAANET::JHondaAngularBinSpecs::JHondaAngularBinSpecs ( const double minCosz,
const double maxCosz,
const double minPhi,
const double maxPhi )
inline

Constructor.

Parameters
minCoszminimum cosine zenith angle
maxCoszmaximum cosine zenith angle
minPhiminimum azimuth angle
maxPhimaximum azimuth angle

Definition at line 155 of file JHondaFluxInterpolator.hh.

158 :
159 coszRange(minCosz, maxCosz),
160 phiRange (minPhi, maxPhi)
161 {}

Friends And Related Symbol Documentation

◆ operator>>

std::istream & operator>> ( std::istream & in,
JHondaAngularBinSpecs & binspecs )
friend

Read bin specifications from input.

Parameters
ininput stream
binspecsbin specifications
Returns
input stream

Definition at line 171 of file JHondaFluxInterpolator.hh.

172 {
173 static const JEquationParameters eqpars("=", ",", "./", "#");
174
175 JProperties properties(eqpars, 1);
176
177 properties[HONDA_COSINE_ZENITH_ANGLE_KEYWORD] = binspecs.coszRange;
178 properties[HONDA_AZIMUTH_ANGLE_KEYWORD] = binspecs.phiRange;
179
180 in >> properties;
181
182 return in >> properties;
183 }
Utility class to parse parameter values.
Simple data structure to support I/O of equations (see class JLANG::JEquation).
static const char *const HONDA_AZIMUTH_ANGLE_KEYWORD
static const char *const HONDA_COSINE_ZENITH_ANGLE_KEYWORD

Member Data Documentation

◆ coszRange

JHondaBinRange JAANET::JHondaAngularBinSpecs::coszRange

Cosine zenith-angle range.

Definition at line 186 of file JHondaFluxInterpolator.hh.

◆ phiRange

JHondaBinRange JAANET::JHondaAngularBinSpecs::phiRange

Azimuthal angle range [deg].

Definition at line 187 of file JHondaFluxInterpolator.hh.


The documentation for this struct was generated from the following file: