1 #ifndef __JOSCPROB__JOSCPROBTABLE__
2 #define __JOSCPROB__JOSCPROBTABLE__
23 namespace JPP {
using namespace JOSCPROB; }
42 template<
class JFunction1D_t,
48 public JMessage< JOscProbTable <JFunction1D_t, JMaplist_t, JDistance_t> >,
49 public JObjectBinaryIO< JOscProbTable <JFunction1D_t, JMaplist_t, JDistance_t> >
94 template<
class JOscProb_t,
class JOscProbMaplist_t,
class JOscProbDistance_t>
105 void load(
const char* fileName)
112 "D oscillation probability table from file " << fileName <<
"... " << flush);
118 catch(
const JException& error) {
119 FATAL(error.what() << endl);
131 for (
super_iterator i = this->super_begin(); i != this->super_end(); ++i) {
135 typename function_type::iterator p = f1.lower_bound(range.
getLowerLimit());
137 f1.function_type::container_type::erase(f1.begin(), p);
139 typename function_type::iterator q = f1.lower_bound(range.
getUpperLimit());
141 f1.function_type::container_type::erase(++q, f1.end());
172 out << static_cast<const multifunction_type&>(*this);
188 template<
class JDistance_t = JTOOLS::JDistance<
typename JOscProbTable6D_t::argument_type> >
190 public JOscProbTable< typename JOscProbTable6D_t::JConstantFunction1D_t,
191 typename JOscProbTable6D_t::JMaplist6D_t,
225 template<
class JOscProb_t,
class JOscProbMaplist_t,
class JOscProbDistance_t>
247 template<
class JDistance_t = JTOOLS::JDistance<
typename JOscProbTable2D_t::JFunction2D_t::argument_type> >
249 public JOscProbTable< typename JOscProbTable2D_t::JFunction1D_t,
250 typename JOscProbTable2D_t::JMaplist1D_t,
286 template<
class JOscProb_t,
class JOscProbMaplist_t,
class JOscProbDistance_t>
325 copy(
result, static_cast<multimap_type&>(*
this));
345 template<
class JDistance_t = JTOOLS::JDistance<
typename JOscProbTable8D_t::JFunction2D_t::argument_type> >
347 public JOscProbTable< typename JOscProbTable8D_t::JFunction2D_t,
348 typename JOscProbTable8D_t::JMaplist6D_t,
382 template<
class JOscProb_t,
class JOscProbMaplist_t,
class JOscProbDistance_t>
406 int JMessage<typename JOscProbTable6D<>::table_type>::debug = (int)
JEEP::notice_t;
409 int JMessage<typename JOscProbTable8D<>::table_type>::debug = (int)
JEEP::notice_t;
multifunction_type::argument_type argument_type
static int debug
debug level (default is off).
multifunction_type::multimap_type multimap_type
Interface for binary output.
multifunction_type::value_type value_type
Auxiliary base class for storing and loading a single object to and from a binary file...
JOscProbTable< function_type, maplist_type, JDistance_t > table_type
Explicit template specialization for 6D interpolation table in: .
void compress(const JRange< typename function_type::argument_type > &range)
Compresses OscProb table to given abscissa range.
JOscProbTable6D_t::JConstantFunction1D_t function_type
JOscProbTable8D_t::JMaplist6D_t maplist_type
JOscProbTable6D()
Default constructor.
multifunction_type::multimap_type multimap_type
multifunction_type::super_iterator super_iterator
Template definition of a multi-dimensional interpolation table for oscillation probabilities.
Explicit template specialization for 8D interpolation table in: .
JMultiFunction< JFunction1D_t, JMaplist_t, JDistance_t > multifunction_type
multifunction_type::super_iterator super_iterator
void load(const char *fileName)
Load oscillation probability table from file.
Data structure for oscillation parameters.
multifunction_type::super_iterator super_iterator
*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
virtual JWriter & write(JWriter &out) const override
Write from input.
JOscProbTable2D_t::JFunction1D_t function_type
multifunction_type::argument_type argument_type
JOscProbTable< function_type, maplist_type, JDistance_t > table_type
multifunction_type::argument_type argument_type
double sinsqTh23
Squared sine of the PMNS mixing angle between the second and third neutrino mass eigenstates [-]...
JOscProbTable2D()
Default constructor.
JOscProbTable< JFunction1D_t, JMaplist_t, JDistance_t > table_type
multifunction_type::super_const_iterator super_const_iterator
multifunction_type::value_type value_type
JOscProbTable8D_t::JFunction2D_t function_type
JProperties getProperties(const JEquationParameters &equation=JOscParameters::getEquationParameters())
Get properties of this class.
multifunction_type::value_type value_type
JOscProbTable2D(const char *fileName)
Constructor.
Forward declaration of binary output.
double deltaCP
PMNS phase angle [pi * rad].
double dM31sq
Squared mass difference between the first and third neutrino mass eigenstates [eV2].
JOscProbTable6D(const char *fileName)
Constructor.
double sinsqTh12
Squared sine of the PMNS mixing angle between the first and second neutrino mass eigenstates [-]...
JOscProbTable2D_t::JMaplist1D_t maplist_type
multifunction_type::argument_type argument_type
double dM21sq
Squared mass difference between the first and second neutrino mass eigenstates [eV2].
multifunction_type::function_type function_type
Interface for binary input.
JMultiFunction< function_type, maplist_type, JDistance_t > multifunction_type
multifunction_type::result_type result_type
General purpose messaging.
multifunction_type::result_type result_type
z range($ZMAX-$ZMIN)< $MINIMAL_DZ." fi fi typeset -Z 4 STRING typeset -Z 2 FLOOR JPlot1D -f $
JOscProbTable2D(const JOscProbTable6D< JDistance_t > &table, const JOscParameters ¶meters)
Constructor.
Explicit template specialization for 2D interpolation table in: .
multifunction_type::super_iterator super_iterator
JMultiFunction< function_type, maplist_type, JDistance_t > multifunction_type
virtual JReader & read(JReader &in) override
Read from input.
Auxiliary class to define a range between two values.
JOscProbTable(const char *fileName)
Constructor.
JOscProbTable()
Constructor.
multifunction_type::result_type result_type
JOscProbTable8D(const char *fileName)
Constructor.
multifunction_type::super_const_iterator super_const_iterator
JOscProbTable(const JMultiFunction< JOscProb_t, JOscProbMaplist_t, JOscProbDistance_t > &input)
Constructor.
void copy(const Head &from, JHead &to)
Copy header from from to to.
JOscProbTable6D(const JMultiFunction< JOscProb_t, JOscProbMaplist_t, JOscProbDistance_t > &input)
Constructor.
multifunction_type::super_const_iterator super_const_iterator
JOscProbTable8D(const JMultiFunction< JOscProb_t, JOscProbMaplist_t, JOscProbDistance_t > &input)
Constructor.
multifunction_type::result_type result_type
JOscProbTable6D_t::JMaplist6D_t maplist_type
JOscProbTable2D(const JMultiFunction< JOscProb_t, JOscProbMaplist_t, JOscProbDistance_t > &input)
Constructor.
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 source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
JMultiFunction< function_type, maplist_type, JDistance_t > multifunction_type
double sinsqTh13
Squared sine of the PMNS mixing angle between the first and third neutrino mass eigenstates [-]...
multifunction_type::multimap_type multimap_type
multifunction_type::super_const_iterator super_const_iterator
multifunction_type::value_type value_type
Auxiliary class for handling debug parameter within a class.
JOscProbTable< function_type, maplist_type, JDistance_t > table_type
JOscProbTable8D()
Default constructor.
multifunction_type::multimap_type multimap_type