11 #include "TDirectory.h"
12 #include "TObjString.h"
19 const std::string& label,
37 : fSpectrum( loader, axis, spillcut, cut, shift, wei),
38 fSpectrumNC( loader, axis, spillcut, cut &&
kIsNC, shift, wei),
65 using namespace Flavors;
66 using namespace Current;
84 TDirectory* tmp = gDirectory;
88 TObjString(
"PredictionNoOsc").Write(
"type");
104 *ana::LoadFrom<Spectrum>(dir->GetDirectory(
"spect")),
105 *ana::LoadFrom<Spectrum>(dir->GetDirectory(
"spect_nc")),
106 *ana::LoadFrom<Spectrum>(dir->GetDirectory(
"spect_numu")),
107 *ana::LoadFrom<Spectrum>(dir->GetDirectory(
"spect_numubar")),
108 *ana::LoadFrom<Spectrum>(dir->GetDirectory(
"spect_nue")),
109 *ana::LoadFrom<Spectrum>(dir->GetDirectory(
"spect_nuebar")));
112 return std::unique_ptr<PredictionNoOsc>(ret);
const Cut kIsNumuCC(CCFlavSel(14, 14))
Select CC .
const Cut kIsNC([](const caf::SRSliceProxy *slc){return kHasMatchedNu(slc)&&slc->truth.isnc;})
Is this a Neutral Current event?
Represent the binning of a Spectrum's x-axis.
Simple record of shifts applied to systematic parameters.
const Cut kIsBeamNue(CCFlavSel(12, 12))
Select CC .
process_name opflashCryoW ana
virtual void SaveTo(TDirectory *dir) const override
Representation of a spectrum in any variable, with associated POT.
static std::unique_ptr< PredictionNoOsc > LoadFrom(TDirectory *dir)
Charged-current interactions.
Interactions of both types.
virtual Spectrum PredictComponent(osc::IOscCalc *calc, Flavors::Flavors_t flav, Current::Current_t curr, Sign::Sign_t sign) const override
virtual Spectrum Predict(osc::IOscCalc *) const override
Spectrum fSpectrumNumubar
Base class for the various types of spectrum loader.
PredictionNoOsc(SpectrumLoaderBase &loader, const HistAxis &axis, const SpillCut &spillcut, const Cut &cut, const SystShifts &shift=kNoShift, const Var &wei=kUnweighted)
Neutral-current interactions.
Both neutrinos and antineutrinos.
All neutrinos, any flavor.
const Cut kIsAntiNu([](const caf::SRSliceProxy *slc){return kHasMatchedNu(slc)&&slc->truth.pdg< 0;})
Is this truly an antineutrino?
Prediction that wraps a simple Spectrum.
void SaveTo(TDirectory *dir) const