1 #ifndef __JOSCPROB__JOSCILLOGRAM__
2 #define __JOSCPROB__JOSCILLOGRAM__
24 namespace JPP {
using namespace JOSCPROB; }
151 return result.second;
162 double getP(
const int i,
const int j)
const
165 const double& costh =
getCosth (i, j);
190 if (i != ix || j != iy) {
203 result.second = sqrt((1 + y) * (1 - y));
double getCosth(const int i, const int j) const
Get cosine zenith angle corrresponding to the given bin indices.
double getEnergy(const int i, const int j) const
Get energy corrresponding to the given bin indices.
Neutrino oscillation channel.
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...
Low-level interface for oscillation probability calculators.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Helper class for oscillation probabilities.
JOscillogram(const JOscillogramAxis &abscissa, const JOscillogramAxis &ordinate, const JOscChannel &channel, const JOscProbInterface &oscprob)
Constructor.
JOscillogramAxis ordinate
Ordinate axis.
std::pair< int, std::string > const & getType(CLBCommonHeader const &header)
virtual double getCosth(const double L) const
Get cosine zenith angle for a given baseline.
Exception for null pointer operation.
JOscChannel channel
Oscillation channel.
JOscillogramAxis abscissa
Abscissa axis.
T pow(const T &x, const double y)
Power .
double getP(const int i, const int j) const
Get oscillation probability for given bin indices.
then for APP in event gandalf start energy
std::pair< double, double > getTransformation(const int i, const int j) const
Get energy and cosine zenith angle corresponding to the given bin indices.
then usage $script< input file >[option[primary[working directory]]] nWhere option can be N
virtual double getBaseline(const double costh) const
Get baseline for a given cosine zenith angle.
JOscillogramAxis(const int type, const int N, const double min, const double max)
Constructor.
Exception for accessing a value in a collection that is outside of its range.
JOscillogram(const std::string &abscissaName, const JGrid< double > abscissaBinning, const std::string &ordinateName, const JGrid< double > ordinateBinning, const JOscChannel &channel, const JOscProbInterface &oscprob)
Constructor.
JOscillogramAxis(const int type, const JGrid_t binning)
Constructor.
Auxiliary class for defining an oscillogram axis.
Auxiliary class for creating oscillograms.
Auxiliary data structure to hold oscillation variable names.