Jpp  debug
the software that should make you happy
Public Member Functions | Public Attributes | Friends | List of all members
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. More...
 
 JHondaAngularBinSpecs (const double minCosz, const double maxCosz, const double minPhi, const double maxPhi)
 Constructor. More...
 

Public Attributes

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

Friends

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

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 Function 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.
Definition: JProperties.hh:501
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: