3 #include "CAFAna/Core/Binning.h" 16 template<
class T> Eigen::Array<T, Eigen::Dynamic, 1>
22 Eigen::Array<T, Eigen::Dynamic, 1>
ret(N+2);
24 ret[N+1] = (from == to || to == 0) ? 1 : 0;
30 for(
unsigned int i = 0;
i < N; ++
i) ret[
i+1] = Ps[
i];
65 ret->GetYaxis()->SetTitle(
"Probability");
69 std::map<int, std::string> nus;
70 nus[12] = nus[-12] =
"e";
71 nus[14] = nus[-14] =
"#mu";
72 nus[16] = nus[-16] =
"#tau";
76 ret->SetTitle((nu+
"_{"+nus[
fFrom]+
"}#rightarrow"+nu+
"_{"+nus[
fTo]+
"}").c_str());
Represent the binning of a Spectrum's x-axis.
Cuts and Vars for the 2020 FD DiF Study.
TH1D * ToTH1(Color_t col=kBlack, Style_t style=kSolid) const
const std::vector< double > kTrueEnergyBinCenters
No entries for underflow or overflow.
General interface to oscillation calculators.
OscCurve(osc::IOscCalc *calc, int from, int to)
Eigen::Array< T, Eigen::Dynamic, 1 > ToEigen(osc::_IOscCalc< T > *calc, int from, int to)
Helper for constructors.
TH1D * ToTH1(bool title=false) const
const Binning kTrueEnergyBins
Default true-energy bin edges.
Represent the ratio between two spectra.
virtual T P(int flavBefore, int flavAfter, double E)=0
E in GeV; flavors as PDG codes (so, neg==>antinu)
Prevent histograms being added to the current directory.