1#ifndef __JOSCPROB__JOSCILLOGRAM__
2#define __JOSCPROB__JOSCILLOGRAM__
67 JGrid_t(binning.getNumberOfBins(),
68 binning.getLowerLimit() + binning.getBinWidth() / 2.,
69 binning.getUpperLimit() - binning.getBinWidth() / 2.),
133 const std::string& ordinateName,
170 return result.second;
180 double getP(
const int i,
const int j)
const
183 const double& costh =
getCosth (i, j);
208 if (i != ix || j != iy) {
221 result.second = sqrt((1 + y) * (1 - y));
235 result.first = pow(10.0, x);
238 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.
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 JAbstractHistogram_t &binning)
Constructor.
JOscillogramAxis(const int type, const JGrid_t &grid)
Constructor.
JAbstractHistogram< double > JAbstractHistogram_t
JOscillogramAxis(const int type, const int N, const double min, const double max)
Constructor.
Auxiliary class for creating oscillograms.
double getEnergy(const int i, const int j) const
Get energy corrresponding to the given bin indices.
JOscChannel channel
Oscillation channel.
double getCosth(const int i, const int j) const
Get cosine zenith angle corrresponding to the given bin indices.
JOscillogram(const std::string &abscissaName, const T &abscissa, const std::string &ordinateName, const T &ordinate, const JOscChannel &channel, const JOscProbHelper &oscprob)
Constructor.
JOscillogramAxis abscissa
Abscissa axis.
JOscillogram(const JOscillogramAxis &abscissa, const JOscillogramAxis &ordinate, const JOscChannel &channel, const JOscProbHelper &oscprob)
Constructor.
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.