Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
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]
 
static const char *const log10E ()
 logarithmic energy [GeV]
 
static const char *const LoE ()
 L/E [km GeV-1].
 
static const char *const costh ()
 cosine of zenith-angle
 
static const char *const sinth ()
 sine of zenith-angle
 
static const char *const L ()
 sine of zenith-angle
 
static type getType (const std::string &name)
 Get oscillation variable type.
 

Detailed Description

Auxiliary data structure to hold oscillation variable names.

Definition at line 70 of file JOscProbToolkit.hh.

Member Enumeration Documentation

◆ type

Oscillation variable types.

Enumerator
COSTH 
SINTH 
ENERGY 
LOG10E 
LOE 
BASELINE 
UNDEFINED 

Definition at line 75 of file JOscProbToolkit.hh.

Member Function Documentation

◆ energy()

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

energy [GeV]

Definition at line 86 of file JOscProbToolkit.hh.

◆ log10E()

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

logarithmic energy [GeV]

Definition at line 87 of file JOscProbToolkit.hh.

◆ LoE()

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

L/E [km GeV-1].

Definition at line 88 of file JOscProbToolkit.hh.

◆ costh()

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

cosine of zenith-angle

Definition at line 90 of file JOscProbToolkit.hh.

◆ sinth()

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

sine of zenith-angle

Definition at line 91 of file JOscProbToolkit.hh.

◆ L()

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

sine of zenith-angle

Definition at line 92 of file JOscProbToolkit.hh.

◆ getType()

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 }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
static const char *const log10E()
logarithmic energy [GeV]
static const char *const costh()
cosine of zenith-angle
static const char *const sinth()
sine of zenith-angle
static const char *const L()
sine of zenith-angle
static const char *const LoE()
L/E [km GeV-1].
static const char *const energy()
energy [GeV]

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