7 #include "TDirectory.h" 8 #include "TObjString.h" 17 : fExtrap(
std::move(extrap))
102 if(from == +12 && to == +12)
return fExtrap->NueSurvComponent();
103 if(from == -12 && to == -12)
return fExtrap->AntiNueSurvComponent();
105 if(from == +12 && to == +14)
return fExtrap->NumuAppComponent();
106 if(from == -12 && to == -14)
return fExtrap->AntiNumuAppComponent();
108 if(from == +12 && to == +16)
return fExtrap->TauFromEComponent();
109 if(from == -12 && to == -16)
return fExtrap->AntiTauFromEComponent();
111 if(from == +14 && to == +12)
return fExtrap->NueAppComponent();
112 if(from == -14 && to == -12)
return fExtrap->AntiNueAppComponent();
114 if(from == +14 && to == +14)
return fExtrap->NumuSurvComponent();
115 if(from == -14 && to == -14)
return fExtrap->AntiNumuSurvComponent();
117 if(from == +14 && to == +16)
return fExtrap->TauFromMuComponent();
118 if(from == -14 && to == -16)
return fExtrap->AntiTauFromMuComponent();
120 assert(0 &&
"Not reached");
127 return fExtrap->NCTotalComponent();
135 return fExtrap->NCAntiComponent();
141 TDirectory*
tmp = gDirectory;
143 dir = dir->mkdir(name.c_str());
146 TObjString(
"PredictionExtrap").Write(
"type");
148 fExtrap->SaveTo(dir,
"extrap");
159 dir = dir->GetDirectory(name.c_str());
Cuts and Vars for the 2020 FD DiF Study.
General interface to oscillation calculators.
Representation of a spectrum in any variable, with associated POT.
std::unique_ptr< IExtrap > LoadFrom< IExtrap >(TDirectory *dir, const std::string &label)
Charged-current interactions.
Interactions of both types.
REGISTER_LOADFROM("BENDecomp", IDecomp, BENDecomp)
Neutral-current interactions.
assert(nhit_max >=nhit_nbins)
Both neutrinos and antineutrinos.
All neutrinos, any flavor.
Spectrum with true energy information, allowing it to be oscillated