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/N20-07-07/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 311 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 259 of file PredictionGenerator.cxx.

267  : fAxis(axis), fAxisNDNumu(axisNDNumu), fCutFD(cutFD), fCutNDNC(cutNDNC),
268  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 270 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().

273  {
274  ProportionalDecomp* decompNumu = new ProportionalDecomp(
276  ProportionalDecomp* decompNC = new ProportionalDecomp(
277  loaders, fAxis, fCutNDNC, shiftMC, fShiftDataND, fWei );
278  auto extrap = std::make_unique<ModularExtrapSterile>(ModularExtrapSterile::NCDisappearance(
279  loaders, *decompNC, *decompNumu, fAxis, fAxisNDNumu,
280  fCutFD, fCutNDNC, fCutNDNumu, shiftMC, fWei ));
281  return std::make_unique<PredictionSterile>( std::move(extrap) );
282  }
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 284 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().

288  {
289  ProportionalDecomp* decompNumu = new ProportionalDecomp(
290  loaders_nd, fAxisNDNumu, fCutNDNumu, shiftMC, fShiftDataND, fWei );
291  ProportionalDecomp* decompNC = new ProportionalDecomp(
292  loaders_nd, fAxis, fCutNDNC, shiftMC, fShiftDataND, fWei );
293  auto extrap = std::make_unique<ModularExtrapSterile>(ModularExtrapSterile::NCDisappearance(
294  loaders_nd.GetLoader(caf::kNEARDET, Loaders::kMC, ana::kBeam, Loaders::kNonSwap),
295  loaders_fd.GetLoader(caf::kFARDET, Loaders::kMC, ana::kBeam, Loaders::kFluxSwap),
296  loaders_fd.GetLoader(caf::kFARDET, Loaders::kMC, ana::kBeam, Loaders::kNonSwap),
297  loaders_fd.GetLoader(caf::kFARDET, Loaders::kMC, ana::kBeam, Loaders::kTauSwap),
298  *decompNC, *decompNumu, fAxis, fAxisNDNumu,
299  fCutFD, fCutNDNC, fCutNDNumu, shiftMC, fWei));
300  return std::make_unique<PredictionSterile>( std::move(extrap) );
301  }
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 330 of file PredictionGenerator.h.

Referenced by Generate().

const HistAxis ana::SterileGenerator::fAxisNDNumu
private

Definition at line 331 of file PredictionGenerator.h.

Referenced by Generate().

const Cut ana::SterileGenerator::fCutFD
private

Definition at line 332 of file PredictionGenerator.h.

Referenced by Generate().

const Cut ana::SterileGenerator::fCutNDNC
private

Definition at line 333 of file PredictionGenerator.h.

Referenced by Generate().

const Cut ana::SterileGenerator::fCutNDNumu
private

Definition at line 334 of file PredictionGenerator.h.

Referenced by Generate().

const SystShifts ana::SterileGenerator::fShiftDataND
private

Definition at line 335 of file PredictionGenerator.h.

Referenced by Generate().

const Var ana::SterileGenerator::fWei
private

Definition at line 336 of file PredictionGenerator.h.

Referenced by Generate().


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