1#ifndef __JOSCPROB__JOSCILLOGRAM__
2#define __JOSCPROB__JOSCILLOGRAM__
114 const std::string& ordinateName,
151 return result.second;
161 double getP(
const int i,
const int j)
const
164 const double& costh =
getCosth (i, j);
189 if (i != ix || j != iy) {
202 result.second = sqrt((1 + y) * (1 - y));
216 result.first = pow(10.0, x);
219 result.first = (x > 0.0 ? this->
getBaseline(result.second) / x : 0.0);
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Exception for null pointer operation.
Exception for accessing a value in a collection that is outside of its range.
Low-level interface for oscillation probability calculators.
std::pair< int, std::string > const & getType(CLBCommonHeader const &header)
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Neutrino oscillation channel.
Helper class for oscillation probability calculators.
double getBaseline(const double costh) const
Get baseline for a given cosine zenith angle.
double getP(const JOscChannel &channel, const double energy, const double costh) const
Get oscillation probability corresponding to given oscillation channel, neutrino energy and zenith an...
double getCosth(const double L) const
Get cosine zenith angle for a given baseline.
Auxiliary data structure to hold oscillation variable names.
Auxiliary class for defining an oscillogram axis.
JOscillogramAxis(const int type, const int N, const double min, const double max)
Constructor.
JOscillogramAxis(const int type, const JGrid_t binning)
Constructor.
Auxiliary class for creating oscillograms.
JOscillogram(const JOscillogramAxis &abscissa, const JOscillogramAxis &ordinate, const JOscChannel &channel, const JOscProbInterface &oscprob)
Constructor.
double getEnergy(const int i, const int j) const
Get energy corrresponding to the given bin indices.
JOscillogram(const std::string &abscissaName, const JGrid< double > abscissaBinning, const std::string &ordinateName, const JGrid< double > ordinateBinning, const JOscChannel &channel, const JOscProbInterface &oscprob)
Constructor.
JOscChannel channel
Oscillation channel.
double getCosth(const int i, const int j) const
Get cosine zenith angle corrresponding to the given bin indices.
JOscillogramAxis abscissa
Abscissa axis.
std::pair< double, double > getTransformation(const int i, const int j) const
Get energy and cosine zenith angle corresponding to the given bin indices.
JOscillogramAxis ordinate
Ordinate axis.
double getP(const int i, const int j) const
Get oscillation probability for given bin indices.