Jpp master_rocky-44-g75b7c4f75
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 132 of file JHondaFluxInterpolator.hh.

Constructor & Destructor Documentation

◆ JHondaAngularBinSpecs() [1/2]

JAANET::JHondaAngularBinSpecs::JHondaAngularBinSpecs ( )
inline

Default constructor.

Definition at line 137 of file JHondaFluxInterpolator.hh.

137 :
138 coszRange(-1.0, 1.0),
139 phiRange ( 0.0, 360.0)
140 {}
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 151 of file JHondaFluxInterpolator.hh.

154 :
155 coszRange(minCosz, maxCosz),
156 phiRange (minPhi, maxPhi)
157 {}

Friends And Related Symbol Documentation

◆ operator>>

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

Read bin specifications from input.

Parameters
ininput stream
objectbin specifications
Returns
input stream

Definition at line 167 of file JHondaFluxInterpolator.hh.

168 {
169 static const JEquationParameters eqpars("=", ",", "./", "#");
170
171 JProperties properties(eqpars, 1);
172
173 properties[HONDA_COSINE_ZENITH_ANGLE_KEYWORD] = binspecs.coszRange;
174 properties[HONDA_AZIMUTH_ANGLE_KEYWORD] = binspecs.phiRange;
175
176 in >> properties;
177
178 return in >> properties;
179 }
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 182 of file JHondaFluxInterpolator.hh.

◆ phiRange

JHondaBinRange JAANET::JHondaAngularBinSpecs::phiRange

Azimuthal angle range [deg].

Definition at line 183 of file JHondaFluxInterpolator.hh.


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