Static Public Member Functions | |
static std::unique_ptr< PredictionExtendToPeripheral > | LoadFrom (TDirectory *dir, const std::string &name) |
Protected Member Functions | |
OscillatableSpectrum | ReduceHelper (const OscillatableSpectrum &s) const |
template<typename T > | |
Spectrum | _PredictComponent (osc::_IOscCalc< T > *calc, Flavors::Flavors_t flav, Current::Current_t curr, Sign::Sign_t sign) const |
Spectrum | ReduceHelperNC (const Spectrum &s) const |
Spectrum | MergePeripheral (const Spectrum &s) const |
OscillatableSpectrum | MergePeripheralOsc (const OscillatableSpectrum &s) const |
Spectrum | ExtendRecoWeight (const Spectrum &Core, const Spectrum &NoExtrap) const |
OscillatableSpectrum | ExtendRecoWeightOscillatable (const OscillatableSpectrum &Core, OscillatableSpectrum NoExtrap) const |
Combines two extrapolations, one with extrapolated predictions of the core bins (and nominal peripheral) and one with all nominal predictions, to apply the correct weights to the peripheral sample (copying the high PID bin).
Definition at line 14 of file PredictionExtendToPeripheral.h.
ana::PredictionExtendToPeripheral::PredictionExtendToPeripheral | ( | IPrediction * | predCore, |
PredictionNoExtrap * | predNoExtrap, | ||
bool | mergePeripheral = true , |
||
int | nbins = 3 |
||
) |
Takes ownership of predCore and predNoExtrap.
Definition at line 24 of file PredictionExtendToPeripheral.cxx.
ana::PredictionExtendToPeripheral::PredictionExtendToPeripheral | ( | IPrediction * | predCore, |
PredictionNoExtrap * | predNoExtrap, | ||
const ana::Binning & | bins, | ||
bool | mergePeripheral = true , |
||
int | nbins = 3 |
||
) |
Definition at line 30 of file PredictionExtendToPeripheral.cxx.
References om::cout, allTimeWatchdog::endl, and fMergePeripheral.
|
virtual |
Definition at line 58 of file PredictionExtendToPeripheral.cxx.
|
delete |
Referenced by LoadFrom().
|
protected |
Definition at line 298 of file PredictionExtendToPeripheral.cxx.
References ana::assert(), calc, ana::Spectrum::Clear(), ComponentNC(), ComponentNCAnti(), febshutoff_auto::curr, fAntiNuEToAntiNuE, fAntiNuEToAntiNuMu, fAntiNuEToAntiNuTau, fAntiNuMuToAntiNuE, fAntiNuMuToAntiNuMu, fAntiNuMuToAntiNuTau, fNCTot, fNuEToNuE, fNuEToNuMu, fNuEToNuTau, fNuMuToNuE, fNuMuToNuMu, fNuMuToNuTau, ana::Flavors::kAll, ana::Sign::kAntiNu, ana::Current::kCC, ana::Current::kNC, ana::Sign::kNu, ana::Flavors::kNuEToNuE, ana::Flavors::kNuEToNuMu, ana::Flavors::kNuEToNuTau, ana::Flavors::kNuMuToNuE, ana::Flavors::kNuMuToNuMu, ana::Flavors::kNuMuToNuTau, ana::OscillatableSpectrum::Oscillated(), runNovaSAM::ret, and canMan::sign().
Referenced by GetCore(), and PredictComponent().
|
overridevirtual |
Reimplemented from ana::IPrediction.
Definition at line 381 of file PredictionExtendToPeripheral.cxx.
References ana::assert(), fAntiNuEToAntiNuE, fAntiNuEToAntiNuMu, fAntiNuEToAntiNuTau, fAntiNuMuToAntiNuE, fAntiNuMuToAntiNuMu, fAntiNuMuToAntiNuTau, fNuEToNuE, fNuEToNuMu, fNuEToNuTau, fNuMuToNuE, fNuMuToNuMu, and fNuMuToNuTau.
|
overridevirtual |
Reimplemented from ana::IPrediction.
Definition at line 410 of file PredictionExtendToPeripheral.cxx.
References fNC.
Referenced by _PredictComponent().
|
overridevirtual |
Reimplemented from ana::IPrediction.
Definition at line 414 of file PredictionExtendToPeripheral.cxx.
References fNCAnti.
Referenced by _PredictComponent().
|
overridevirtual |
Reimplemented from ana::IPrediction.
Definition at line 406 of file PredictionExtendToPeripheral.cxx.
References fNCTot.
|
protected |
Definition at line 232 of file PredictionExtendToPeripheral.cxx.
References bin, fEnergyBins, fMergePeripheral, fNBinsI, fNCore, ana::Spectrum::GetBinnings(), ana::Ratio::GetEigen(), ana::Spectrum::GetLabels(), and MergePeripheral().
Referenced by GetCore().
|
protected |
Definition at line 263 of file PredictionExtendToPeripheral.cxx.
References bin, fEnergyBins, fMergePeripheral, fNBinsO, fNCore, ana::Spectrum::GetBinnings(), ana::Ratio::GetEigen(), ana::Spectrum::GetLabels(), MergePeripheralOsc(), NoExtrap(), ana::ReweightableSpectrum::ReweightToRecoSpectrum(), and ana::OscillatableSpectrum::Unoscillated().
Referenced by GetCore().
|
inline |
Definition at line 65 of file PredictionExtendToPeripheral.h.
References _PredictComponent(), ExtendRecoWeight(), ExtendRecoWeightOscillatable(), fPredCore, MergePeripheral(), MergePeripheralOsc(), NoExtrap(), ReduceHelper(), and ReduceHelperNC().
|
static |
Definition at line 445 of file PredictionExtendToPeripheral.cxx.
References ana::assert(), ana::bins, dir, ana::Binning::LoadFrom(), ana::LoadFrom< IPrediction >(), PredictionExtendToPeripheral(), and runNovaSAM::release.
Definition at line 187 of file PredictionExtendToPeripheral.cxx.
References a, fNBinsI, fNBinsO, fNCore, fPeriBin, ana::Spectrum::GetEigen(), ana::Spectrum::GetLabels(), MECModelEnuComparisons::i, ana::Spectrum::Livetime(), ana::Spectrum::POT(), and ana::Binning::Simple().
Referenced by ExtendRecoWeight(), and GetCore().
|
protected |
Definition at line 206 of file PredictionExtendToPeripheral.cxx.
References fNBinsI, fNBinsO, fNCore, fPeriBin, ana::ReweightableSpectrum::GetEigen(), ana::ReweightableSpectrum::GetLabels(), ana::kTrueEnergyBins, ana::ReweightableSpectrum::Livetime(), ana::Binning::NBins(), ana::ReweightableSpectrum::POT(), and ana::Binning::Simple().
Referenced by ExtendRecoWeightOscillatable(), and GetCore().
|
overridevirtual |
Implements ana::IPrediction.
Definition at line 169 of file PredictionExtendToPeripheral.cxx.
References ana::Flavors::kAll, ana::Current::kBoth, ana::Sign::kBoth, and PredictComponent().
Referenced by test_nue2017Prediction().
|
overridevirtual |
Reimplemented from ana::IPrediction.
Definition at line 178 of file PredictionExtendToPeripheral.cxx.
References ana::Flavors::kAll, ana::Current::kBoth, ana::Sign::kBoth, and PredictComponent().
|
overridevirtual |
Implements ana::IPrediction.
Definition at line 361 of file PredictionExtendToPeripheral.cxx.
References _PredictComponent().
Referenced by Predict(), and test_nue2017Prediction().
|
overridevirtual |
Reimplemented from ana::IPrediction.
Definition at line 371 of file PredictionExtendToPeripheral.cxx.
References _PredictComponent().
|
virtualinherited |
Reimplemented in ana::PredictionInterp, ana::PredictionCombinePeriods, and ana::PredictionAddRock.
Definition at line 79 of file IPrediction.cxx.
References ana::assert(), ana::SystShifts::IsNominal(), and ana::IPrediction::PredictComponent().
Referenced by ana::PredictionAddRock::_PredictComponentSyst(), ana::CovMxManager::AddSystematic(), ana::GetBFSystBands(), ana::GetSystBands(), PlotSysts(), ana::PredictionCombinePeriods::PredictComponentSyst(), systematics_extrap_comp_from_pred_interp(), systematics_summary_from_pred_interp(), and systematics_table_from_pred_interp().
|
virtualinherited |
Reimplemented in ana::PredictionInterp, and ana::PredictionAddRock.
Definition at line 93 of file IPrediction.cxx.
References ana::assert(), ana::SystShifts::IsNominal(), and ana::IPrediction::PredictComponent().
|
virtualinherited |
Reimplemented in ana::PredictionInterp, ana::PredictionScaleComp, ana::PredictionCombinePeriods, and ana::PredictionAddRock.
Definition at line 49 of file IPrediction.cxx.
References ana::assert(), ana::SystShifts::IsNominal(), and ana::IPrediction::Predict().
Referenced by BicountEllipse_dCP(), ana::CountingExperiment::ChiSq(), ana::DataMCComparison(), demo_nueNumuSysts(), DrawBins(), DrawPulls(), fill_col(), joint_fit_2017_make_fc_slice(), joint_fit_2017_make_fc_surf(), MakeFakeData(), ana::PlotWithAreaSystErrorBand(), ana::PlotWithSystErrorBand(), ana::PlotWithSystErrorBand_Quant(), ana::SingleSampleExperiment::PredHistIncCosmics(), ana::NDPredictionNoOsc::~NDPredictionNoOsc(), and ana::PredictionScaleComp::~PredictionScaleComp().
|
virtualinherited |
Reimplemented in ana::PredictionInterp, and ana::PredictionAddRock.
Definition at line 59 of file IPrediction.cxx.
References ana::assert(), ana::SystShifts::IsNominal(), and ana::IPrediction::Predict().
|
virtualinherited |
Reimplemented in ana::PredictionSterile.
Definition at line 33 of file IPrediction.cxx.
References noosc, and ana::IPrediction::Predict().
Referenced by cc(), demo5(), demo::DrawUpDownRatioCanvas(), efficiency(), efficiencySA(), plot_nd_data_mc(), template_basic(), and test_ana().
void ana::PredictionExtendToPeripheral::Reduce | ( | ) |
Definition at line 146 of file PredictionExtendToPeripheral.cxx.
References ana::assert(), fAntiNuEToAntiNuE, fAntiNuEToAntiNuMu, fAntiNuEToAntiNuTau, fAntiNuMuToAntiNuE, fAntiNuMuToAntiNuMu, fAntiNuMuToAntiNuTau, fIsMerged, fNC, fNCAnti, fNCTot, fNuEToNuE, fNuEToNuMu, fNuEToNuTau, fNuMuToNuE, fNuMuToNuMu, fNuMuToNuTau, ReduceHelper(), and ReduceHelperNC().
|
protected |
Definition at line 65 of file PredictionExtendToPeripheral.cxx.
References ana::assert(), ana::bins, fNBinsO, fNCore, fNPIDBin, ana::ReweightableSpectrum::GetBinnings(), ana::ReweightableSpectrum::GetEigen(), ana::ReweightableSpectrum::GetLabels(), MECModelEnuComparisons::i, calib::j, ana::kTrueEnergyBins, PandAna.Demos.pi0_spectra::labels, livetime, ana::ReweightableSpectrum::Livetime(), ana::Binning::NBins(), pot, ana::ReweightableSpectrum::POT(), ReduceBinning, and submit_syst::x.
Referenced by GetCore(), and Reduce().
Definition at line 108 of file PredictionExtendToPeripheral.cxx.
References ana::assert(), ana::bins, fNBinsO, fNCore, fNPIDBin, fReduceBin, ana::Spectrum::GetBinnings(), ana::Spectrum::GetEigen(), ana::Spectrum::GetLabels(), MECModelEnuComparisons::i, calib::j, PandAna.Demos.pi0_spectra::labels, ana::Spectrum::Livetime(), ana::Binning::NBins(), pot, ana::Spectrum::POT(), ReduceBinning, and submit_syst::x.
Referenced by GetCore(), and Reduce().
|
overridevirtual |
Reimplemented from ana::IPrediction.
Definition at line 420 of file PredictionExtendToPeripheral.cxx.
References dir, fBins, fMergePeripheral, fPredCore, fPredNoExtrap, ana::Binning::SaveTo(), ana::PredictionNoExtrap::SaveTo(), ana::IPrediction::SaveTo(), and tmp.
Referenced by make_nueFDprediction_kinematics_FHC(), make_nueFDprediction_kinematics_FHC_REW(), make_nueFDprediction_kinematics_RHC(), and make_nueFDprediction_kinematics_RHC_REW().
|
protected |
Definition at line 112 of file PredictionExtendToPeripheral.h.
Referenced by _PredictComponent(), ComponentCC(), and Reduce().
|
protected |
Definition at line 114 of file PredictionExtendToPeripheral.h.
Referenced by _PredictComponent(), ComponentCC(), and Reduce().
|
protected |
Definition at line 116 of file PredictionExtendToPeripheral.h.
Referenced by _PredictComponent(), ComponentCC(), and Reduce().
|
protected |
Definition at line 119 of file PredictionExtendToPeripheral.h.
Referenced by _PredictComponent(), ComponentCC(), and Reduce().
|
protected |
Definition at line 121 of file PredictionExtendToPeripheral.h.
Referenced by _PredictComponent(), ComponentCC(), and Reduce().
|
protected |
Definition at line 123 of file PredictionExtendToPeripheral.h.
Referenced by _PredictComponent(), ComponentCC(), and Reduce().
|
protected |
Definition at line 90 of file PredictionExtendToPeripheral.h.
Referenced by SaveTo().
Definition at line 96 of file PredictionExtendToPeripheral.h.
Referenced by ExtendRecoWeight(), and ExtendRecoWeightOscillatable().
|
protected |
Definition at line 130 of file PredictionExtendToPeripheral.h.
Referenced by Reduce().
|
protected |
Definition at line 91 of file PredictionExtendToPeripheral.h.
Referenced by ExtendRecoWeight(), ExtendRecoWeightOscillatable(), PredictionExtendToPeripheral(), and SaveTo().
|
protected |
Definition at line 95 of file PredictionExtendToPeripheral.h.
Referenced by ExtendRecoWeight(), MergePeripheral(), and MergePeripheralOsc().
Definition at line 98 of file PredictionExtendToPeripheral.h.
Referenced by ExtendRecoWeightOscillatable(), MergePeripheral(), MergePeripheralOsc(), ReduceHelper(), and ReduceHelperNC().
|
protected |
Definition at line 126 of file PredictionExtendToPeripheral.h.
Referenced by ComponentNC(), and Reduce().
|
protected |
Definition at line 127 of file PredictionExtendToPeripheral.h.
Referenced by ComponentNCAnti(), and Reduce().
|
protected |
Definition at line 100 of file PredictionExtendToPeripheral.h.
Referenced by ExtendRecoWeight(), ExtendRecoWeightOscillatable(), MergePeripheral(), MergePeripheralOsc(), ReduceHelper(), and ReduceHelperNC().
|
protected |
Definition at line 125 of file PredictionExtendToPeripheral.h.
Referenced by _PredictComponent(), ComponentNCTotal(), and Reduce().
|
protected |
Definition at line 92 of file PredictionExtendToPeripheral.h.
Referenced by ReduceHelper(), and ReduceHelperNC().
|
protected |
Definition at line 111 of file PredictionExtendToPeripheral.h.
Referenced by _PredictComponent(), ComponentCC(), and Reduce().
|
protected |
Definition at line 113 of file PredictionExtendToPeripheral.h.
Referenced by _PredictComponent(), ComponentCC(), and Reduce().
|
protected |
Definition at line 115 of file PredictionExtendToPeripheral.h.
Referenced by _PredictComponent(), ComponentCC(), and Reduce().
|
protected |
Definition at line 118 of file PredictionExtendToPeripheral.h.
Referenced by _PredictComponent(), ComponentCC(), and Reduce().
|
protected |
Definition at line 120 of file PredictionExtendToPeripheral.h.
Referenced by _PredictComponent(), ComponentCC(), and Reduce().
|
protected |
Definition at line 122 of file PredictionExtendToPeripheral.h.
Referenced by _PredictComponent(), ComponentCC(), and Reduce().
|
protected |
Definition at line 101 of file PredictionExtendToPeripheral.h.
Referenced by MergePeripheral(), and MergePeripheralOsc().
|
protected |
Definition at line 97 of file PredictionExtendToPeripheral.h.
|
protected |
Definition at line 88 of file PredictionExtendToPeripheral.h.
Referenced by GetCore(), SaveTo(), and ana::PredictExtendOwning::~PredictExtendOwning().
|
protected |
Definition at line 89 of file PredictionExtendToPeripheral.h.
Referenced by SaveTo(), and ana::PredictExtendOwning::~PredictExtendOwning().
|
protected |
Definition at line 108 of file PredictionExtendToPeripheral.h.
Referenced by ReduceHelperNC().
|
protected |
Definition at line 109 of file PredictionExtendToPeripheral.h.
Referenced by ReduceHelper(), and ReduceHelperNC().