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-12-02/NuXAna/Prediction/PredictionGeneratorNuX.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 9 of file PredictionGeneratorNuX.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 15 of file PredictionGeneratorNuX.cxx.

Member Function Documentation

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

Implements ana::IPredictionGenerator.

Definition at line 26 of file PredictionGeneratorNuX.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().

29  {
30  ProportionalDecomp* decompNumu = new ProportionalDecomp(
32  ProportionalDecomp* decompNC = new ProportionalDecomp(
33  loaders, fAxis, fCutNDNC, shiftMC, fShiftDataND, fWei );
34  auto extrap = std::make_unique<ModularExtrapSterile>(ModularExtrapSterile::NCDisappearance(
35  loaders, *decompNC, *decompNumu, fAxis, fAxisNDNumu,
36  fCutFD, fCutNDNC, fCutNDNumu, shiftMC, fWei ));
37  return std::make_unique<PredictionSterile>( std::move(extrap) );
38  }
std::vector< Loaders * > loaders
Definition: syst_header.h:386
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 40 of file PredictionGeneratorNuX.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().

44  {
45  ProportionalDecomp* decompNumu = new ProportionalDecomp(
46  loaders_nd, fAxisNDNumu, fCutNDNumu, shiftMC, fShiftDataND, fWei );
47  ProportionalDecomp* decompNC = new ProportionalDecomp(
48  loaders_nd, fAxis, fCutNDNC, shiftMC, fShiftDataND, fWei );
49  auto extrap = std::make_unique<ModularExtrapSterile>(ModularExtrapSterile::NCDisappearance(
50  loaders_nd.GetLoader(caf::kNEARDET, Loaders::kMC, kBeam, Loaders::kNonSwap),
51  loaders_fd.GetLoader(caf::kFARDET, Loaders::kMC, kBeam, Loaders::kFluxSwap),
52  loaders_fd.GetLoader(caf::kFARDET, Loaders::kMC, kBeam, Loaders::kNonSwap),
53  loaders_fd.GetLoader(caf::kFARDET, Loaders::kMC, kBeam, Loaders::kTauSwap),
54  *decompNC, *decompNumu, fAxis, fAxisNDNumu,
55  fCutFD, fCutNDNC, fCutNDNumu, shiftMC, fWei));
56  return std::make_unique<PredictionSterile>( std::move(extrap) );
57  }
Near Detector underground.
Definition: SREnums.h:10
Far Detector at Ash River.
Definition: SREnums.h:11
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 28 of file PredictionGeneratorNuX.h.

Referenced by Generate().

const HistAxis ana::SterileGenerator::fAxisNDNumu
private

Definition at line 29 of file PredictionGeneratorNuX.h.

Referenced by Generate().

const Cut ana::SterileGenerator::fCutFD
private

Definition at line 30 of file PredictionGeneratorNuX.h.

Referenced by Generate().

const Cut ana::SterileGenerator::fCutNDNC
private

Definition at line 31 of file PredictionGeneratorNuX.h.

Referenced by Generate().

const Cut ana::SterileGenerator::fCutNDNumu
private

Definition at line 32 of file PredictionGeneratorNuX.h.

Referenced by Generate().

const SystShifts ana::SterileGenerator::fShiftDataND
private

Definition at line 33 of file PredictionGeneratorNuX.h.

Referenced by Generate().

const Var ana::SterileGenerator::fWei
private

Definition at line 34 of file PredictionGeneratorNuX.h.

Referenced by Generate().


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