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

Generates extrapolated Nue background-only predictions using Michel+BEN decomposition. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-11-28/3FlavorAna/Prediction/PredictionGenerator3Flavor.h"

Inheritance diagram for ana::NueBkgdComboExtrapGenerator:
ana::IPredictionGenerator

Public Types

enum  EBENAnaStyle { kSAKaScale, k2017KaScale }
 

Public Member Functions

 NueBkgdComboExtrapGenerator (const bool isRHC, const HistAxis axis, const Cut cutFD, const Cut cutNDNue, const SystShifts shiftDataND=kNoShift, const Var wei=kUnweighted, const EBENAnaStyle benStyle=k2017KaScale)
 
std::unique_ptr< IPredictionGenerate (Loaders &loaders, const SystShifts &shiftMC=kNoShift) const override
 

Private Attributes

const bool fIsRHC
 
const HistAxis fAxis
 
const Cut fCutFD
 
const Cut fCutNDNue
 
const SystShifts fShiftDataND
 
const Var fWei
 
const EBENAnaStyle fBenStyle
 

Detailed Description

Generates extrapolated Nue background-only predictions using Michel+BEN decomposition.

Definition at line 157 of file PredictionGenerator3Flavor.h.

Member Enumeration Documentation

Constructor & Destructor Documentation

ana::NueBkgdComboExtrapGenerator::NueBkgdComboExtrapGenerator ( const bool  isRHC,
const HistAxis  axis,
const Cut  cutFD,
const Cut  cutNDNue,
const SystShifts  shiftDataND = kNoShift,
const Var  wei = kUnweighted,
const EBENAnaStyle  benStyle = k2017KaScale 
)

Member Function Documentation

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

Implements ana::IPredictionGenerator.

Definition at line 118 of file PredictionGenerator3Flavor.cxx.

References fAxis, fBenStyle, fCutFD, fCutNDNue, fIsRHC, fShiftDataND, fWei, ana::BENDecomp::kCalcKaonScale, kSAKaScale, and loaders.

122  {
123  BENDecomp *benDecomp = new BENDecomp(BENDecomp::kCalcKaonScale,
124  loaders, fAxis, fCutNDNue, shiftMC, fShiftDataND, fWei);
125  if (fBenStyle == kSAKaScale)
126  {
127  delete benDecomp;
128  benDecomp = new BENDecomp(
129  loaders, fAxis, fCutNDNue, shiftMC, fShiftDataND, fWei);
130  }
131  MichelDecomp *nueDecomp = new MichelDecomp(
132  loaders, fAxis, fCutNDNue, benDecomp, shiftMC, fShiftDataND, fWei);
133  auto extrap = std::make_unique<NueBkgdOnlyExtrap>(
134  fIsRHC, loaders, *nueDecomp, fAxis, fCutFD, fCutNDNue, shiftMC, fWei);
135  return std::make_unique<PredictionExtrap>(std::move(extrap));
136  }
std::vector< Loaders * > loaders
Definition: syst_header.h:386

Member Data Documentation

const HistAxis ana::NueBkgdComboExtrapGenerator::fAxis
private

Definition at line 175 of file PredictionGenerator3Flavor.h.

Referenced by Generate().

const EBENAnaStyle ana::NueBkgdComboExtrapGenerator::fBenStyle
private

Definition at line 180 of file PredictionGenerator3Flavor.h.

Referenced by Generate().

const Cut ana::NueBkgdComboExtrapGenerator::fCutFD
private

Definition at line 176 of file PredictionGenerator3Flavor.h.

Referenced by Generate().

const Cut ana::NueBkgdComboExtrapGenerator::fCutNDNue
private

Definition at line 177 of file PredictionGenerator3Flavor.h.

Referenced by Generate().

const bool ana::NueBkgdComboExtrapGenerator::fIsRHC
private

Definition at line 174 of file PredictionGenerator3Flavor.h.

Referenced by Generate().

const SystShifts ana::NueBkgdComboExtrapGenerator::fShiftDataND
private

Definition at line 178 of file PredictionGenerator3Flavor.h.

Referenced by Generate().

const Var ana::NueBkgdComboExtrapGenerator::fWei
private

Definition at line 179 of file PredictionGenerator3Flavor.h.

Referenced by Generate().


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