14 #include "TDirectory.h" 17 #include "TObjString.h" 44 if (temp.
POT() > 0) ret += temp;
46 if (temp.
POT() > 0) ret += temp;
50 if (temp.
POT() > 0) ret += temp;
52 if (temp.
POT() > 0) ret += temp;
68 if (temp.
POT() > 0) ret += temp;
71 if (temp.
POT() > 0) ret += temp;
77 if (temp.
POT() > 0) ret += temp;
80 if (temp.
POT() > 0) ret += temp;
108 if (temp.
POT() > 0) ret += temp;
112 if (temp.
POT() > 0) ret += temp;
117 if (temp.
POT() > 0) ret += temp;
121 if (temp.
POT() > 0) ret += temp;
146 if (temp.
POT() > 0) ret += temp;
150 if (temp.
POT() > 0) ret += temp;
155 if (temp.
POT() > 0) ret += temp;
159 if (temp.
POT() > 0) ret += temp;
176 std::cerr <<
"NDPredExtrap: Input calculator was not of type IOscCalcSterile." <<
std::endl;
191 TDirectory*
tmp = gDirectory;
193 dir = dir->mkdir(name.c_str());
196 TObjString(
"NDPredictionSterile").Write(
"type");
208 dir = dir->GetDirectory(name.c_str());
Pass neutrinos through unchanged.
virtual Spectrum Predict(osc::IOscCalc *calc) const override
Cuts and Vars for the 2020 FD DiF Study.
const IOscCalcSterile * DowncastToSterile(const IOscCalc *calc, bool quiet)
virtual void SaveTo(TDirectory *dir, const std::string &name) const override
Representation of a spectrum in any variable, with associated POT.
Spectrum Oscillated(osc::IOscCalc *calc, int from, int to) const
Charged-current interactions.
static std::unique_ptr< NDPredictionSterile > LoadFrom(TDirectory *dir, const std::string &name)
Spectrum FakeData(double pot) const
Synonymous with AsimovData(). Retained for compatibility.
NDPredictionSterile()=delete
base class for sterile oscillation calculators In the context of a sterile oscillation calculator...
osc::NoOscillations noosc
std::vector< double > POT
virtual Spectrum PredictComponent(osc::IOscCalc *calc, Flavors::Flavors_t flav, Current::Current_t curr, Sign::Sign_t sign) const override
virtual ~NDPredictionSterile()
virtual Spectrum FakeData(osc::IOscCalc *calc, double POT)
REGISTER_LOADFROM("BENDecomp", IDecomp, BENDecomp)
Neutral-current interactions.
assert(nhit_max >=nhit_nbins)
Spectrum with true L/E information, allowing it to be oscillated