Jpp  18.5.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Static Public Member Functions | List of all members
JOSCPROB::JOscVars Struct Reference

Auxiliary data structure to hold oscillation variable names. More...

#include <JOscProbToolkit.hh>

Public Types

enum  type {
  COSTH, SINTH, ENERGY, LOG10E,
  LOE, BASELINE, UNDEFINED
}
 Oscillation variable types. More...
 

Static Public Member Functions

static const char *const energy ()
 energy [GeV] More...
 
static const char *const log10E ()
 logarithmic energy [GeV] More...
 
static const char *const LoE ()
 L/E [km GeV-1]. More...
 
static const char *const costh ()
 cosine of zenith-angle More...
 
static const char *const sinth ()
 sine of zenith-angle More...
 
static const char *const L ()
 sine of zenith-angle More...
 
static type getType (const std::string &name)
 Get oscillation variable type. More...
 

Detailed Description

Auxiliary data structure to hold oscillation variable names.

Definition at line 70 of file JOscProbToolkit.hh.

Member Enumeration Documentation

Oscillation variable types.

Enumerator
COSTH 
SINTH 
ENERGY 
LOG10E 
LOE 
BASELINE 
UNDEFINED 

Definition at line 75 of file JOscProbToolkit.hh.

Member Function Documentation

static const char* const JOSCPROB::JOscVars::energy ( )
inlinestatic

energy [GeV]

Definition at line 86 of file JOscProbToolkit.hh.

static const char* const JOSCPROB::JOscVars::log10E ( )
inlinestatic

logarithmic energy [GeV]

Definition at line 87 of file JOscProbToolkit.hh.

static const char* const JOSCPROB::JOscVars::LoE ( )
inlinestatic

L/E [km GeV-1].

Definition at line 88 of file JOscProbToolkit.hh.

static const char* const JOSCPROB::JOscVars::costh ( )
inlinestatic

cosine of zenith-angle

Definition at line 90 of file JOscProbToolkit.hh.

static const char* const JOSCPROB::JOscVars::sinth ( )
inlinestatic

sine of zenith-angle

Definition at line 91 of file JOscProbToolkit.hh.

static const char* const JOSCPROB::JOscVars::L ( )
inlinestatic

sine of zenith-angle

Definition at line 92 of file JOscProbToolkit.hh.

static type JOSCPROB::JOscVars::getType ( const std::string name)
inlinestatic

Get oscillation variable type.

Parameters
nameoscillation variable name
Returns
oscillation variable type

Definition at line 101 of file JOscProbToolkit.hh.

102  {
103  if (name == energy()) {
104  return ENERGY;
105  } else if (name == costh()) {
106  return COSTH;
107  } else if (name == sinth()) {
108  return SINTH;
109  } else if (name == log10E()) {
110  return LOG10E;
111  } else if (name == LoE()) {
112  return LOE;
113  } else if (name == L()) {
114  return BASELINE;
115  } else {
116  THROW(JValueOutOfRange, "JOscVars::getType(): Invalid oscillation variable " << name);
117  }
118  }
static const char *const LoE()
L/E [km GeV-1].
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Definition: JException.hh:712
then echo Enter input within $TIMEOUT_S seconds echo n User name
Definition: JCookie.sh:42
static const char *const log10E()
logarithmic energy [GeV]
static const char *const sinth()
sine of zenith-angle
static const char *const L()
sine of zenith-angle
static const char *const costh()
cosine of zenith-angle
static const char *const energy()
energy [GeV]

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