Splits Data proportionally according to MC. More...
Static Public Member Functions | |
static std::unique_ptr< ProportionalDecomp > | LoadFrom (TDirectory *dir, const std::string &name) |
Protected Member Functions | |
ProportionalDecomp () | |
Protected Attributes | |
Spectrum | fData |
Spectrum | fNCTot |
Spectrum | fNC |
Spectrum | fNCAnti |
Spectrum | fNue |
Spectrum | fAntiNue |
Spectrum | fNumu |
Spectrum | fAntiNumu |
Spectrum | fTotal |
Splits Data proportionally according to MC.
Definition at line 20 of file ProportionalDecomp.h.
ana::ProportionalDecomp::ProportionalDecomp | ( | SpectrumLoaderBase & | loaderMC, |
SpectrumLoaderBase & | loaderData, | ||
const std::string & | label, | ||
const Binning & | bins, | ||
const Var & | var, | ||
const Cut & | cut, | ||
const SystShifts & | shiftMC = kNoShift , |
||
const SystShifts & | shiftData = kNoShift , |
||
const Var & | wei = kUnweighted |
||
) |
Definition at line 17 of file ProportionalDecomp.cxx.
ana::ProportionalDecomp::ProportionalDecomp | ( | SpectrumLoaderBase & | loaderMC, |
SpectrumLoaderBase & | loaderData, | ||
const HistAxis & | axis, | ||
const Cut & | cut, | ||
const SystShifts & | shiftMC = kNoShift , |
||
const SystShifts & | shiftData = kNoShift , |
||
const Var & | wei = kUnweighted |
||
) |
Definition at line 36 of file ProportionalDecomp.cxx.
ana::ProportionalDecomp::ProportionalDecomp | ( | Loaders & | loaders, |
const HistAxis & | axis, | ||
const Cut & | cut, | ||
const SystShifts & | shiftMC = kNoShift , |
||
const SystShifts & | shiftData = kNoShift , |
||
const Var & | wei = kUnweighted |
||
) |
Definition at line 57 of file ProportionalDecomp.cxx.
|
inlineprotected |
Definition at line 72 of file ProportionalDecomp.h.
|
overridevirtual |
Implements ana::IDecomp.
Definition at line 108 of file ProportionalDecomp.cxx.
References fAntiNue, fData, and fTotal.
Referenced by nue_decomp_scales_for_make_decomp().
|
overridevirtual |
Implements ana::IDecomp.
Definition at line 79 of file ProportionalDecomp.cxx.
References fAntiNumu, fData, and fTotal.
Referenced by nue_decomp_scales_for_make_decomp().
|
inlineoverridevirtual |
Reimplemented from ana::IDecomp.
Definition at line 65 of file ProportionalDecomp.h.
References dir, fData, LoadFrom(), SaveTo(), and string.
Referenced by nue_decomp_scales_for_make_decomp().
|
static |
Definition at line 143 of file ProportionalDecomp.cxx.
References ana::assert(), dir, ana::Spectrum::LoadFrom(), and runNovaSAM::ret.
Referenced by BlessedPlotsAna(), BlessedPlotsAnaByPeriod(), CutTableAna(), Data_Component(), plot_nominal_spectra(), and PlotNus17Prediction().
|
inlineoverridevirtual |
Reimplemented from ana::IDecomp.
Definition at line 60 of file ProportionalDecomp.h.
References fAntiNue.
Referenced by nue_decomp_scales_for_make_decomp().
|
inlineoverridevirtual |
Reimplemented from ana::IDecomp.
Definition at line 58 of file ProportionalDecomp.h.
References fAntiNumu.
Referenced by nue_decomp_scales_for_make_decomp().
|
inlineoverridevirtual |
Reimplemented from ana::IDecomp.
Definition at line 63 of file ProportionalDecomp.h.
References fNCAnti.
|
inlineoverridevirtual |
Reimplemented from ana::IDecomp.
Definition at line 62 of file ProportionalDecomp.h.
References fNC.
Referenced by nue_decomp_scales_for_make_decomp().
|
inlineoverridevirtual |
Reimplemented from ana::IDecomp.
Definition at line 61 of file ProportionalDecomp.h.
References fNCTot.
|
inlineoverridevirtual |
Reimplemented from ana::IDecomp.
Definition at line 59 of file ProportionalDecomp.h.
References fNue.
Referenced by nue_decomp_scales_for_make_decomp().
|
inlineoverridevirtual |
Reimplemented from ana::IDecomp.
Definition at line 57 of file ProportionalDecomp.h.
References fNumu.
Referenced by nue_decomp_scales_for_make_decomp().
|
overridevirtual |
Implements ana::IDecomp.
Definition at line 96 of file ProportionalDecomp.cxx.
References fData, fNCAnti, and fTotal.
|
overridevirtual |
Implements ana::IDecomp.
Definition at line 91 of file ProportionalDecomp.cxx.
References fData, fNC, and fTotal.
Referenced by nue_decomp_scales_for_make_decomp().
|
overridevirtual |
Reimplemented from ana::IDecomp.
Definition at line 86 of file ProportionalDecomp.cxx.
References fData, fNCTot, and fTotal.
|
overridevirtual |
Implements ana::IDecomp.
Definition at line 102 of file ProportionalDecomp.cxx.
References fData, fNue, and fTotal.
Referenced by nue_decomp_scales_for_make_decomp().
|
overridevirtual |
Implements ana::IDecomp.
Definition at line 73 of file ProportionalDecomp.cxx.
References fData, fNumu, and fTotal.
Referenced by nue_decomp_scales_for_make_decomp().
|
overridevirtual |
Implements ana::IDecomp.
Definition at line 114 of file ProportionalDecomp.cxx.
References dir, fAntiNue, fAntiNumu, fData, fNC, fNCAnti, fNCTot, fNue, fNumu, fTotal, ana::Spectrum::SaveTo(), and tmp.
Referenced by BlessedPlotsLoad(), CutTableLoad(), Data_Component(), make_decomp(), make_michel(), MakeNus17Prediction(), MakeNusPrediction(), and nue_decomp_scales().
|
protected |
Definition at line 93 of file ProportionalDecomp.h.
Referenced by AntiNueComponent(), MC_AntiNueComponent(), and SaveTo().
|
protected |
Definition at line 95 of file ProportionalDecomp.h.
Referenced by AntiNumuComponent(), MC_AntiNumuComponent(), and SaveTo().
|
protected |
Definition at line 84 of file ProportionalDecomp.h.
Referenced by AntiNueComponent(), AntiNumuComponent(), Data_Component(), NCAntiComponent(), NCComponent(), NCTotalComponent(), NueComponent(), NumuComponent(), and SaveTo().
|
protected |
Definition at line 89 of file ProportionalDecomp.h.
Referenced by MC_NCComponent(), NCComponent(), and SaveTo().
|
protected |
Definition at line 90 of file ProportionalDecomp.h.
Referenced by MC_NCAntiComponent(), NCAntiComponent(), and SaveTo().
|
protected |
Definition at line 88 of file ProportionalDecomp.h.
Referenced by MC_NCTotalComponent(), NCTotalComponent(), and SaveTo().
|
protected |
Definition at line 92 of file ProportionalDecomp.h.
Referenced by MC_NueComponent(), NueComponent(), and SaveTo().
|
protected |
Definition at line 94 of file ProportionalDecomp.h.
Referenced by MC_NumuComponent(), NumuComponent(), and SaveTo().
|
protected |
Definition at line 96 of file ProportionalDecomp.h.
Referenced by AntiNueComponent(), AntiNumuComponent(), NCAntiComponent(), NCComponent(), NCTotalComponent(), NueComponent(), NumuComponent(), and SaveTo().