Jpp  test_elongated_shower_pde
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Typedefs | Functions | Variables
JOSCPROB Namespace Reference

Classes

struct  JOscChannel
 Neutrino oscillation channel. More...
 
struct  JOscParameters
 Data structure for oscillation parameters. More...
 
struct  JOscProb
 Low-level interface for retrieving the oscillation probability
corresponding to a given oscillation channel, neutrino energy and zenith angle. More...
 
struct  JOscProbFunction
 Implementation of oscillation probability function interface. More...
 
struct  JOscProbFunction< pOscProb >
 Implementation of C-style oscillation probability function. More...
 
struct  JOscProbHelper
 Helper class for oscillation probabilities. More...
 
struct  JOscProbInterpolator2D
 Auxiliary class for interpolating an oscillation probability table in 2 dimensions
(in terms of the energy and the sine of the zenith angle). More...
 
struct  JOscProbInterpolator8D
 Auxiliary class for interpolating an oscillation probability table in 8 dimensions in terms of:
. More...
 
struct  JOscProbTable
 Template definition of a multi-dimensional interpolation table for oscillation probabilities. More...
 
struct  JOscProbTable6D
 Explicit template specialization for 6D interpolation table in:
. More...
 
struct  JOscProbTable2D
 Explicit template specialization for 2D interpolation table in:
. More...
 
struct  JOscProbTable8D
 Explicit template specialization for 8D interpolation table in:
. More...
 
struct  JOscProbTable_t
 Auxiliary class for defining an oscillation probability table with interpolation function. More...
 
struct  JOscProbTable2D_t
 Auxiliary class for defining a 2D oscillation probability interpolator in:
. More...
 
struct  JOscProbTable6D_t
 Auxiliary class for defining a 6D oscillation probability interpolator in:
. More...
 
struct  JOscProbTable8D_t
 Auxiliary class for defining an 8D oscillation probability interpolator in:
. More...
 

Typedefs

typedef double(* pOscProb )(const JOscChannel &, const double, const double)
 

Functions

template<class JFunction_t >
JOscProbFunction< JFunction_t > make_oscProbFunction (const JFunction_t &function)
 Auxiliary method for creating an interface to an oscillation probability function. More...
 
JOscProbFunction< pOscProbmake_oscProbFunction (pOscProb function)
 Auxiliary method for creating an interface to an oscillation probability function. More...
 
double getL (const double costh)
 Get baseline for a given cosine zenith angle. More...
 

Variables

static const JOscChannel getOscChannel []
 Declare group of neutrino oscillation channels. More...
 
static const int NUMBER_OF_OSCCHANNELS = sizeof(getOscChannel) / sizeof(JOscChannel)
 Number of neutrino oscillation channels. More...
 
static const JRange< double > SINSQTH12Range (0.250, 0.354)
 Allowed ranges of neutrino oscillation parameters. More...
 
static const JRange< double > DM21Range (6.93e-5, 7.96e-5)
 
static const JRange< double > SINSQTH13Range (0.019, 0.025)
 
static const JRange< double > DM31Range (+2.45e-3,+2.69e-3)
 
static const JRange< double > SINSQTH23Range (0.381, 0.636)
 
static const JRange< double > DCPRange (0.000, 2.000)
 
static const double R_EARTH_BELOW = 6368
 Earth radii. More...
 
static const double R_EARTH_ABOVE = 6386
 Earth radius, including layer above detector [km]. More...
 

Detailed Description

Author
bjung, mdejong
bjung
bjung Auxiliary structs for defining oscillation probability tables in N dimensions.
bjung Auxiliary methods for oscillation probabilities.

Typedef Documentation

typedef double(* JOSCPROB::pOscProb)(const JOscChannel &, const double, const double)

Definition at line 60 of file JOscProbFunction.hh.

Function Documentation

template<class JFunction_t >
JOscProbFunction<JFunction_t> JOSCPROB::make_oscProbFunction ( const JFunction_t &  function)
inline

Auxiliary method for creating an interface to an oscillation probability function.

Parameters
functionoscillation probability function object
Returns
oscillation probability function interface

Definition at line 108 of file JOscProbFunction.hh.

108  {
109  return JOscProbFunction<JFunction_t>(function);
110  }
JOscProbFunction<pOscProb> JOSCPROB::make_oscProbFunction ( pOscProb  function)
inline

Auxiliary method for creating an interface to an oscillation probability function.

Parameters
functionoscillation probability function pointer
Returns
oscillation probability function interface

Definition at line 119 of file JOscProbFunction.hh.

119  {
120  return JOscProbFunction<pOscProb>(function);
121  }
double JOSCPROB::getL ( const double  costh)
inline

Get baseline for a given cosine zenith angle.

Parameters
costhcosine zenith angle
Returns
baseline [km]

Definition at line 53 of file JOscProbToolkit.hh.

54  {
55  using namespace std;
56  using namespace JPP;
57 
58  static const double epsilon = 1e-6;
59 
60  if (fabs(costh) < 1.0 || fabs(costh) - 1.0 < epsilon) {
61 
62  return (-R_EARTH_BELOW * costh + sqrt(R_EARTH_ABOVE*R_EARTH_ABOVE -
63  R_EARTH_BELOW*R_EARTH_BELOW * (1 - costh) * (1 + costh)));
64 
65  } else {
66 
67  THROW(JValueOutOfRange, "getL(): Invalid cosine zenith angle " << costh << endl);
68  }
69  }
static const double R_EARTH_ABOVE
Earth radius, including layer above detector [km].
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Definition: JException.hh:696
static const double R_EARTH_BELOW
Earth radii.

Variable Documentation

const JOscChannel JOSCPROB::getOscChannel[]
static
Initial value:
= {
JOscChannel(JOscChannel::ELECTRON, JOscChannel::ELECTRON, JOscChannel::PARTICLE),
JOscChannel(JOscChannel::ELECTRON, JOscChannel::MUON, JOscChannel::PARTICLE),
JOscChannel(JOscChannel::ELECTRON, JOscChannel::TAU, JOscChannel::PARTICLE),
JOscChannel(JOscChannel::MUON, JOscChannel::ELECTRON, JOscChannel::PARTICLE),
JOscChannel(JOscChannel::MUON, JOscChannel::MUON, JOscChannel::PARTICLE),
JOscChannel(JOscChannel::MUON, JOscChannel::TAU, JOscChannel::PARTICLE),
JOscChannel(JOscChannel::TAU, JOscChannel::ELECTRON, JOscChannel::PARTICLE),
JOscChannel(JOscChannel::TAU, JOscChannel::MUON, JOscChannel::PARTICLE),
JOscChannel(JOscChannel::TAU, JOscChannel::TAU, JOscChannel::PARTICLE),
JOscChannel(JOscChannel::ELECTRON, JOscChannel::ELECTRON, JOscChannel::ANTIPARTICLE),
JOscChannel(JOscChannel::ELECTRON, JOscChannel::MUON, JOscChannel::ANTIPARTICLE),
JOscChannel(JOscChannel::ELECTRON, JOscChannel::TAU, JOscChannel::ANTIPARTICLE),
JOscChannel(JOscChannel::MUON, JOscChannel::ELECTRON, JOscChannel::ANTIPARTICLE),
JOscChannel(JOscChannel::MUON, JOscChannel::MUON, JOscChannel::ANTIPARTICLE),
JOscChannel(JOscChannel::MUON, JOscChannel::TAU, JOscChannel::ANTIPARTICLE),
JOscChannel(JOscChannel::TAU, JOscChannel::ELECTRON, JOscChannel::ANTIPARTICLE),
JOscChannel(JOscChannel::TAU, JOscChannel::MUON, JOscChannel::ANTIPARTICLE),
}
Neutrino oscillation channel.
Definition: JOscChannel.hh:29

Declare group of neutrino oscillation channels.

Definition at line 340 of file JOscChannel.hh.

const int JOSCPROB::NUMBER_OF_OSCCHANNELS = sizeof(getOscChannel) / sizeof(JOscChannel)
static

Number of neutrino oscillation channels.

Definition at line 365 of file JOscChannel.hh.

const JRange<double> JOSCPROB::SINSQTH12Range(0.250, 0.354)
static

Allowed ranges of neutrino oscillation parameters.

const JRange<double> JOSCPROB::DM21Range(6.93e-5, 7.96e-5)
static
const JRange<double> JOSCPROB::SINSQTH13Range(0.019, 0.025)
static
const JRange<double> JOSCPROB::DM31Range(+2.45e-3,+2.69e-3)
static
const JRange<double> JOSCPROB::SINSQTH23Range(0.381, 0.636)
static
const JRange<double> JOSCPROB::DCPRange(0.000, 2.000)
static
const double JOSCPROB::R_EARTH_BELOW = 6368
static

Earth radii.

Earth radius, up until detector layer [km]

Definition at line 43 of file JOscProbToolkit.hh.

const double JOSCPROB::R_EARTH_ABOVE = 6386
static

Earth radius, including layer above detector [km].

Definition at line 44 of file JOscProbToolkit.hh.