Public Member Functions | Private Attributes | List of all members
ana::SterileGenerator Class Reference

Generates extrapolated NC predictions using ProportionalDecomp. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N19-12-08/CAFAna/Prediction/PredictionGenerator.h"

Inheritance diagram for ana::SterileGenerator:
ana::IPredictionGenerator

Public Member Functions

 SterileGenerator (const HistAxis axis, const HistAxis axisNDNumu, const Cut cutFD, const Cut cutNDNC, const Cut cutNDNumu, const SystShifts shiftDataND=kNoShift, const Var wei=kUnweighted)
 
std::unique_ptr< IPredictionGenerate (Loaders &loaders, const SystShifts &shiftMC=kNoShift) const override
 
std::unique_ptr< IPredictionGenerate (Loaders &loaders_nd, Loaders &loaders_fd, const SystShifts &shiftMC=kNoShift) const
 

Private Attributes

const HistAxis fAxis
 
const HistAxis fAxisNDNumu
 
const Cut fCutFD
 
const Cut fCutNDNC
 
const Cut fCutNDNumu
 
const SystShifts fShiftDataND
 
const Var fWei
 

Detailed Description

Generates extrapolated NC predictions using ProportionalDecomp.

Definition at line 233 of file PredictionGenerator.h.

Constructor & Destructor Documentation

ana::SterileGenerator::SterileGenerator ( const HistAxis  axis,
const HistAxis  axisNDNumu,
const Cut  cutFD,
const Cut  cutNDNC,
const Cut  cutNDNumu,
const SystShifts  shiftDataND = kNoShift,
const Var  wei = kUnweighted 
)

Definition at line 181 of file PredictionGenerator.cxx.

189  : fAxis(axis), fAxisNDNumu(axisNDNumu), fCutFD(cutFD), fCutNDNC(cutNDNC),
190  fCutNDNumu(cutNDNumu), fShiftDataND(shiftDataND), fWei(wei) {}
const SystShifts fShiftDataND

Member Function Documentation

std::unique_ptr< IPrediction > ana::SterileGenerator::Generate ( Loaders loaders,
const SystShifts shiftMC = kNoShift 
) const
overridevirtual

Implements ana::IPredictionGenerator.

Definition at line 192 of file PredictionGenerator.cxx.

References fAxis, fAxisNDNumu, fCutFD, fCutNDNC, fCutNDNumu, fShiftDataND, fWei, and ana::ModularExtrapSterile::NCDisappearance().

Referenced by BlessedPlotsLoad(), FitSystEffectsLoad(), ana::GetPrediction(), Nus18SystsBeamTranspLoad(), Nus18SystsCalibAbsLoad(), Nus18SystsCalibRelLoad(), Nus18SystsGENIELoad(), Nus18SystsKaonLoad(), Nus18SystsLightLevelLoad(), Nus18SystsLLMethodLoad(), Nus18SystsNeutronLoad(), Nus18SystsPPFXLoad(), Nus18SystsTauLoad(), Nus18SystsXSecOnOffLoad(), SystsAcceptanceLoad17(), SystsBeamLoad(), SystsBeamTranspLoad17(), SystsDecompLoad(), SystsDecompLoad17(), SystsFidContLoad(), and SystsNDRockLoad().

195  {
196  ProportionalDecomp* decompNumu = new ProportionalDecomp(
198  ProportionalDecomp* decompNC = new ProportionalDecomp(
199  loaders, fAxis, fCutNDNC, shiftMC, fShiftDataND, fWei );
200  auto extrap = std::make_unique<ModularExtrapSterile>(ModularExtrapSterile::NCDisappearance(
201  loaders, *decompNC, *decompNumu, fAxis, fAxisNDNumu,
202  fCutFD, fCutNDNC, fCutNDNumu, shiftMC, fWei ));
203  return std::make_unique<PredictionSterile>( std::move(extrap) );
204  }
const SystShifts fShiftDataND
std::vector< Loaders * > loaders
Definition: syst_header.h:385
static ModularExtrapSterile NCDisappearance(Loaders &loaders, const IDecomp &NCSurvDecomp, const IDecomp &NumuOscDecomp, const HistAxis &axis, const HistAxis &axisNumuND, const Cut &fdcut, const Cut &NCNDcut, const Cut &NumuNDcut, const SystShifts &shiftMC=kNoShift, const Var &weight=kUnweighted)
Creates a NC disappearance extrapolation.
std::unique_ptr< IPrediction > ana::SterileGenerator::Generate ( Loaders loaders_nd,
Loaders loaders_fd,
const SystShifts shiftMC = kNoShift 
) const

Definition at line 206 of file PredictionGenerator.cxx.

References fAxis, fAxisNDNumu, fCutFD, fCutNDNC, fCutNDNumu, fShiftDataND, fWei, ana::Loaders::GetLoader(), ana::kBeam, caf::kFARDET, ana::Loaders::kFluxSwap, ana::Loaders::kMC, caf::kNEARDET, ana::Loaders::kNonSwap, ana::Loaders::kTauSwap, and ana::ModularExtrapSterile::NCDisappearance().

210  {
211  ProportionalDecomp* decompNumu = new ProportionalDecomp(
212  loaders_nd, fAxisNDNumu, fCutNDNumu, shiftMC, fShiftDataND, fWei );
213  ProportionalDecomp* decompNC = new ProportionalDecomp(
214  loaders_nd, fAxis, fCutNDNC, shiftMC, fShiftDataND, fWei );
215  auto extrap = std::make_unique<ModularExtrapSterile>(ModularExtrapSterile::NCDisappearance(
216  loaders_nd.GetLoader(caf::kNEARDET, Loaders::kMC, ana::kBeam, Loaders::kNonSwap),
217  loaders_fd.GetLoader(caf::kFARDET, Loaders::kMC, ana::kBeam, Loaders::kFluxSwap),
218  loaders_fd.GetLoader(caf::kFARDET, Loaders::kMC, ana::kBeam, Loaders::kNonSwap),
219  loaders_fd.GetLoader(caf::kFARDET, Loaders::kMC, ana::kBeam, Loaders::kTauSwap),
220  *decompNC, *decompNumu, fAxis, fAxisNDNumu,
221  fCutFD, fCutNDNC, fCutNDNumu, shiftMC, fWei));
222  return std::make_unique<PredictionSterile>( std::move(extrap) );
223  }
Near Detector underground.
Definition: SREnums.h:10
Far Detector at Ash River.
Definition: SREnums.h:11
const SystShifts fShiftDataND
static ModularExtrapSterile NCDisappearance(Loaders &loaders, const IDecomp &NCSurvDecomp, const IDecomp &NumuOscDecomp, const HistAxis &axis, const HistAxis &axisNumuND, const Cut &fdcut, const Cut &NCNDcut, const Cut &NumuNDcut, const SystShifts &shiftMC=kNoShift, const Var &weight=kUnweighted)
Creates a NC disappearance extrapolation.

Member Data Documentation

const HistAxis ana::SterileGenerator::fAxis
private

Definition at line 252 of file PredictionGenerator.h.

Referenced by Generate().

const HistAxis ana::SterileGenerator::fAxisNDNumu
private

Definition at line 253 of file PredictionGenerator.h.

Referenced by Generate().

const Cut ana::SterileGenerator::fCutFD
private

Definition at line 254 of file PredictionGenerator.h.

Referenced by Generate().

const Cut ana::SterileGenerator::fCutNDNC
private

Definition at line 255 of file PredictionGenerator.h.

Referenced by Generate().

const Cut ana::SterileGenerator::fCutNDNumu
private

Definition at line 256 of file PredictionGenerator.h.

Referenced by Generate().

const SystShifts ana::SterileGenerator::fShiftDataND
private

Definition at line 257 of file PredictionGenerator.h.

Referenced by Generate().

const Var ana::SterileGenerator::fWei
private

Definition at line 258 of file PredictionGenerator.h.

Referenced by Generate().


The documentation for this class was generated from the following files: