10 #include "TDirectory.h" 11 #include "TObjString.h" 28 cut, shiftMC, shiftData, wei)
40 :
fData (loaderData, axis, cut, shiftData, wei),
42 fNCTot (loaderMC, axis, cut &&
kIsNC, shiftMC, wei),
61 axis, cut, shiftMC, shiftData, wei)
86 TDirectory*
tmp = gDirectory;
88 dir = dir->mkdir(name.c_str());
91 TObjString(
"NumuDecomp").Write(
"type");
110 dir = dir->GetDirectory(name.c_str());
Spectrum NumuComponent() const override
const Cut kIsNumuCC(CCFlavSel(14, 14))
Select CC .
Represent the binning of a Spectrum's x-axis.
Cuts and Vars for the 2020 FD DiF Study.
Simple record of shifts applied to systematic parameters.
Collection of SpectrumLoaders for many configurations.
const Cut kIsAntiNu([](const caf::SRProxy *sr){if(sr->mc.nnu==0) return false;assert(sr->mc.nnu==1);return sr->mc.nu[0].pdg< 0;})
Is this truly an antineutrino?
const Cut kIsBeamNue(CCFlavSel(12, 12))
Select CC .
Representation of a spectrum in any variable, with associated POT.
Uses MC for NC and CC components, assigns remainder of data to CC.
static std::unique_ptr< Spectrum > LoadFrom(TDirectory *dir, const std::string &name)
const Cut kIsNC([](const caf::SRProxy *sr){if(sr->mc.nnu==0) return false;assert(sr->mc.nnu==1);return!sr->mc.nu[0].iscc;})
Is this a Neutral Current event?
Spectrum NCAntiComponent() const override
void SaveTo(TDirectory *dir, const std::string &name) const override
void SaveTo(TDirectory *dir, const std::string &name) const
Base class for the various types of spectrum loader.
const Cut kHasNu([](const caf::SRProxy *sr){if(sr->mc.nnu==0) return false;assert(sr->mc.nnu==1);return true;})
REGISTER_LOADFROM("BENDecomp", IDecomp, BENDecomp)
Spectrum AntiNumuComponent() const override
assert(nhit_max >=nhit_nbins)
This module creates Common Analysis Files.
static std::unique_ptr< NumuDecomp > LoadFrom(TDirectory *dir, const std::string &name)
Spectrum NCComponent() const override