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

Data structure for oscillation parameters. More...

#include <JOscParameters.hh>

Inheritance diagram for JOSCPROB::JOscParameters:
JOSCPROB::JOscProbInterpolator8D< JDistance_t >

Classes

struct  JOscParametersHelper
 Auxiliary class for I/O of oscillation parameters. More...
 

Public Member Functions

 JOscParameters ()
 Default constructor. More...
 
 JOscParameters (const double sinsqTh12, const double dM21sq, const double sinsqTh13, const double dM31sq, const double sinsqTh23, const double deltaCP)
 Constructor. More...
 
const JOscParametersgetOscParameters () const
 Get oscillation parameters. More...
 
void setOscParameters (const JOscParameters &parameters)
 Set oscillation parameters. More...
 
bool is_valid () const
 Check validity of oscillation parameters. More...
 
JProperties getProperties (const JEquationParameters &equation=JOscParameters::getEquationParameters())
 Get properties of this class. More...
 
JProperties getProperties (const JEquationParameters &equation=JOscParameters::getEquationParameters()) const
 Get properties of this class. More...
 
void setProperties (const JProperties &properties)
 Set properties of this class. More...
 

Static Public Member Functions

static JEquationParametersgetEquationParameters ()
 Get equation parameters. More...
 
static void setEquationParameters (const JEquationParameters &equation)
 Set equation parameters. More...
 

Public Attributes

double sinsqTh12
 Squared sine of the PMNS mixing angle between the first and second neutrino mass eigenstates [-]. More...
 
double dM21sq
 Squared mass difference between the first and second neutrino mass eigenstates [eV2]. More...
 
double sinsqTh13
 Squared sine of the PMNS mixing angle between the first and third neutrino mass eigenstates [-]. More...
 
double dM31sq
 Squared mass difference between the first and third neutrino mass eigenstates [eV2]. More...
 
double sinsqTh23
 Squared sine of the PMNS mixing angle between the second and third neutrino mass eigenstates [-]. More...
 
double deltaCP
 PMNS phase angle [pi * rad]. More...
 

Friends

std::istream & operator>> (std::istream &in, JOscParameters &object)
 Stream input of oscillation parameters. More...
 
std::ostream & operator<< (std::ostream &out, const JOscParameters &object)
 Stream output of oscillation parameters. More...
 

Detailed Description

Data structure for oscillation parameters.

Definition at line 27 of file JOscParameters.hh.

Constructor & Destructor Documentation

JOSCPROB::JOscParameters::JOscParameters ( )
inline

Default constructor.



Values taken from the NuFIT three-flavour global analysis best fit values in:
https://arxiv.org/abs/2111.03086?context=hep-ex
for normal ordering including the Super-Kamiokande atmospheric data.

Definition at line 36 of file JOscParameters.hh.

36  :
37  sinsqTh12(0.304),
38  dM21sq (7.42e-5),
39  sinsqTh13(0.02246),
40  dM31sq (2.510e-3),
41  sinsqTh23(0.450),
42  deltaCP (1.28)
43  {}
double sinsqTh23
Squared sine of the PMNS mixing angle between the second and third neutrino mass eigenstates [-]...
double deltaCP
PMNS phase angle [pi * rad].
double dM31sq
Squared mass difference between the first and third neutrino mass eigenstates [eV2].
double sinsqTh12
Squared sine of the PMNS mixing angle between the first and second neutrino mass eigenstates [-]...
double dM21sq
Squared mass difference between the first and second neutrino mass eigenstates [eV2].
double sinsqTh13
Squared sine of the PMNS mixing angle between the first and third neutrino mass eigenstates [-]...
JOSCPROB::JOscParameters::JOscParameters ( const double  sinsqTh12,
const double  dM21sq,
const double  sinsqTh13,
const double  dM31sq,
const double  sinsqTh23,
const double  deltaCP 
)
inline

Constructor.

Parameters
sinsqTh12Squared sine of the PMNS mixing angle between the first and second neutrino mass eigenstates [-]
dM21sqSquared mass difference between the first and second neutrino mass eigenstates [eV2]
sinsqTh13Squared sine of the PMNS mixing angle between the first and third neutrino mass eigenstates [-]
dM31sqSquared mass difference between the first and third neutrino mass eigenstates [eV2]
sinsqTh23Squared sine of the PMNS mixing angle between the second and third neutrino mass eigenstates [-]
deltaCPPMNS phase angle [rad]

Definition at line 56 of file JOscParameters.hh.

61  :
63  dM21sq (dM21sq),
65  dM31sq (dM31sq),
68  {}
double sinsqTh23
Squared sine of the PMNS mixing angle between the second and third neutrino mass eigenstates [-]...
double deltaCP
PMNS phase angle [pi * rad].
double dM31sq
Squared mass difference between the first and third neutrino mass eigenstates [eV2].
double sinsqTh12
Squared sine of the PMNS mixing angle between the first and second neutrino mass eigenstates [-]...
double dM21sq
Squared mass difference between the first and second neutrino mass eigenstates [eV2].
double sinsqTh13
Squared sine of the PMNS mixing angle between the first and third neutrino mass eigenstates [-]...

Member Function Documentation

const JOscParameters& JOSCPROB::JOscParameters::getOscParameters ( ) const
inline

Get oscillation parameters.

Returns
oscillation parameters

Definition at line 76 of file JOscParameters.hh.

77  {
78  return static_cast<const JOscParameters&>(*this);
79  }
Data structure for oscillation parameters.
void JOSCPROB::JOscParameters::setOscParameters ( const JOscParameters parameters)
inline

Set oscillation parameters.

Parameters
parametersoscillation parameters

Definition at line 87 of file JOscParameters.hh.

88  {
89  static_cast<JOscParameters&>(*this) = parameters;
90  }
Data structure for oscillation parameters.
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
Definition: diff-Tuna.sh:38
bool JOSCPROB::JOscParameters::is_valid ( ) const
inline

Check validity of oscillation parameters.

Returns
true if valid; else false

Definition at line 98 of file JOscParameters.hh.

99  {
100  if (this->sinsqTh12 < 0.0 ||
101  this->dM21sq < 0.0 ||
102  this->sinsqTh13 < 0.0 ||
103  this->dM31sq < 0.0 ||
104  this->sinsqTh23 < 0.0) {
105  return false;
106  }
107 
108  return true;
109  }
double sinsqTh23
Squared sine of the PMNS mixing angle between the second and third neutrino mass eigenstates [-]...
double dM31sq
Squared mass difference between the first and third neutrino mass eigenstates [eV2].
double sinsqTh12
Squared sine of the PMNS mixing angle between the first and second neutrino mass eigenstates [-]...
double dM21sq
Squared mass difference between the first and second neutrino mass eigenstates [eV2].
double sinsqTh13
Squared sine of the PMNS mixing angle between the first and third neutrino mass eigenstates [-]...
static JEquationParameters& JOSCPROB::JOscParameters::getEquationParameters ( )
inlinestatic

Get equation parameters.

Returns
equation parameters

Definition at line 149 of file JOscParameters.hh.

150  {
151  static JEquationParameters equation("=", "\n\r;,", "./", "#");
152 
153  return equation;
154  }
Simple data structure to support I/O of equations (see class JLANG::JEquation).
static void JOSCPROB::JOscParameters::setEquationParameters ( const JEquationParameters equation)
inlinestatic

Set equation parameters.

Parameters
equationequation parameters

Definition at line 162 of file JOscParameters.hh.

163  {
164  getEquationParameters() = equation;
165  }
static JEquationParameters & getEquationParameters()
Get equation parameters.
JProperties JOSCPROB::JOscParameters::getProperties ( const JEquationParameters equation = JOscParameters::getEquationParameters())
inline

Get properties of this class.

Parameters
equationequation parameters

Definition at line 173 of file JOscParameters.hh.

174  {
175  return JOscParametersHelper(*this, equation);
176  }
JProperties JOSCPROB::JOscParameters::getProperties ( const JEquationParameters equation = JOscParameters::getEquationParameters()) const
inline

Get properties of this class.

Parameters
equationequation parameters

Definition at line 184 of file JOscParameters.hh.

185  {
186  return JOscParametersHelper(*this, equation);
187  }
void JOSCPROB::JOscParameters::setProperties ( const JProperties properties)
inline

Set properties of this class.

Parameters
propertiesproperties

Definition at line 195 of file JOscParameters.hh.

196  {
197  this->sinsqTh12 = properties.getValue<double>("sinsqTh12");
198  this->dM21sq = properties.getValue<double>("dM21sq");
199  this->sinsqTh13 = properties.getValue<double>("sinsqTh13");
200  this->dM31sq = properties.getValue<double>("dM31sq");
201  this->sinsqTh23 = properties.getValue<double>("sinsqTh23");
202  this->deltaCP = properties.getValue<double>("deltaCP");
203  }
double sinsqTh23
Squared sine of the PMNS mixing angle between the second and third neutrino mass eigenstates [-]...
double deltaCP
PMNS phase angle [pi * rad].
const T & getValue(const std::string &key) const
Get value.
Definition: JProperties.hh:974
double dM31sq
Squared mass difference between the first and third neutrino mass eigenstates [eV2].
double sinsqTh12
Squared sine of the PMNS mixing angle between the first and second neutrino mass eigenstates [-]...
double dM21sq
Squared mass difference between the first and second neutrino mass eigenstates [eV2].
double sinsqTh13
Squared sine of the PMNS mixing angle between the first and third neutrino mass eigenstates [-]...

Friends And Related Function Documentation

std::istream& operator>> ( std::istream &  in,
JOscParameters object 
)
friend

Stream input of oscillation parameters.

Parameters
ininput stream
objectoscillation parameters
Returns
input stream

Definition at line 119 of file JOscParameters.hh.

120  {
121  JProperties properties(object.getProperties());
122 
123  in >> properties;
124 
125  object.setProperties(properties);
126 
127  return in;
128  }
Utility class to parse parameter values.
Definition: JProperties.hh:496
JProperties getProperties(const JEquationParameters &equation=JOscParameters::getEquationParameters())
Get properties of this class.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Definition: JCanberra.sh:46
std::ostream& operator<< ( std::ostream &  out,
const JOscParameters object 
)
friend

Stream output of oscillation parameters.

Parameters
outoutput stream
objectoscillation parameters
Returns
output stream

Definition at line 138 of file JOscParameters.hh.

139  {
140  return out << object.getProperties();
141  }

Member Data Documentation

double JOSCPROB::JOscParameters::sinsqTh12

Squared sine of the PMNS mixing angle between the first and second neutrino mass eigenstates [-].

Definition at line 206 of file JOscParameters.hh.

double JOSCPROB::JOscParameters::dM21sq

Squared mass difference between the first and second neutrino mass eigenstates [eV2].

Definition at line 207 of file JOscParameters.hh.

double JOSCPROB::JOscParameters::sinsqTh13

Squared sine of the PMNS mixing angle between the first and third neutrino mass eigenstates [-].

Definition at line 208 of file JOscParameters.hh.

double JOSCPROB::JOscParameters::dM31sq

Squared mass difference between the first and third neutrino mass eigenstates [eV2].

Definition at line 209 of file JOscParameters.hh.

double JOSCPROB::JOscParameters::sinsqTh23

Squared sine of the PMNS mixing angle between the second and third neutrino mass eigenstates [-].

Definition at line 210 of file JOscParameters.hh.

double JOSCPROB::JOscParameters::deltaCP

PMNS phase angle [pi * rad].

Definition at line 211 of file JOscParameters.hh.


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