Sum MC predictions from different periods scaled according to data POT targets. More...
Static Public Member Functions | |
static std::unique_ptr< PredictionCombinePeriods > | LoadFrom (TDirectory *dir, const std::string &name) |
Protected Attributes | |
std::vector< std::pair< const IPrediction *, double > > | fPreds |
Sum MC predictions from different periods scaled according to data POT targets.
Be sure you understand how putting one of these in a SingleSampleExperiment differs from putting regular predictions for the different periods into a MultiExperiment. This calculates chisq(data1+data2|mc1+mc2), whereas the MultiExperiment is chisq(data1|mc1)+chisq(data2+mc2).
Definition at line 14 of file PredictionCombinePeriods.h.
ana::PredictionCombinePeriods::PredictionCombinePeriods | ( | const std::vector< std::pair< const IPrediction *, double >> & | preds | ) |
preds | List of predictions to combine, along with the POT target for that period. Should be like: {{pred1, data1.POT()}, {pred2, data2.POT()}} |
Definition at line 18 of file PredictionCombinePeriods.cxx.
References ana::assert(), and fPreds.
Referenced by LoadFrom().
ana::PredictionCombinePeriods::~PredictionCombinePeriods | ( | ) |
Definition at line 25 of file PredictionCombinePeriods.cxx.
|
overridevirtual |
Reimplemented from ana::IPrediction.
Definition at line 105 of file PredictionCombinePeriods.cxx.
References ana::bins, ana::IPrediction::ComponentCC(), fPreds, ana::ReweightableSpectrum::GetBinnings(), ana::ReweightableSpectrum::GetEigen(), ana::ReweightableSpectrum::GetLabels(), make_syst_table_plots::h, it, PandAna.Demos.pi0_spectra::labels, and plot_validation_datamc::pred.
|
overridevirtual |
Reimplemented from ana::IPrediction.
Definition at line 150 of file PredictionCombinePeriods.cxx.
References ana::Flavors::kAll, ana::Current::kNC, ana::Sign::kNu, noosc, and PredictComponent().
|
overridevirtual |
Reimplemented from ana::IPrediction.
Definition at line 155 of file PredictionCombinePeriods.cxx.
References ana::Flavors::kAll, ana::Sign::kAntiNu, ana::Current::kNC, noosc, and PredictComponent().
|
overridevirtual |
Reimplemented from ana::IPrediction.
Definition at line 145 of file PredictionCombinePeriods.cxx.
References ana::Flavors::kAll, ana::Sign::kBoth, ana::Current::kNC, noosc, and PredictComponent().
|
inline |
Definition at line 57 of file PredictionCombinePeriods.h.
References fPreds, and MECModelEnuComparisons::i.
|
inline |
Definition at line 56 of file PredictionCombinePeriods.h.
References fPreds, and MECModelEnuComparisons::i.
Referenced by PlotSysts().
|
static |
Definition at line 191 of file PredictionCombinePeriods.cxx.
References ana::assert(), dir, genie::utils::style::Format(), MECModelEnuComparisons::i, ana::LoadFrom< IPrediction >(), pots, plot_validation_datamc::pred, PredictionCombinePeriods(), runNovaSAM::release, and getGoodRuns4SAM::tag.
Referenced by BlessedPlotsAnaByPeriod(), CalcRWithSysts(), FDDataMCSystBandAna(), FitParamEffectsAna(), FitSystEffectsAna(), LoadMaps(), SaveTo(), SpectrumParamEffectsAna(), and SystsOscParamAna().
|
inline |
Definition at line 55 of file PredictionCombinePeriods.h.
References fPreds.
|
overridevirtual |
Implements ana::IPrediction.
Definition at line 32 of file PredictionCombinePeriods.cxx.
References ana::Flavors::kAll, ana::Current::kBoth, ana::Sign::kBoth, and PredictComponent().
Referenced by drawSystsShiftingNDdata(), futureSig_reach_singlePOTcombo_syst(), MakeNusPrediction(), PlotStack(), PlotSysts(), saveContours_complete(), and SpectrumParamEffectsAna().
|
virtualinherited |
Reimplemented in ana::PredictionInterp, ana::PredictionExtendToPeripheral, ana::PredictionNoOsc, ana::PredictionExtrapSum, ana::PredictionExtrap, and ana::PredictionAddRock.
Definition at line 43 of file IPrediction.cxx.
References ana::assert().
|
overridevirtual |
Implements ana::IPrediction.
Definition at line 52 of file PredictionCombinePeriods.cxx.
References ana::SystShifts::Nominal(), and PredictComponentSyst().
Referenced by CalcRWithSysts(), ComponentNC(), ComponentNCAnti(), ComponentNCTotal(), PlotStack(), PlotSysts(), Predict(), and PredictSyst().
|
virtualinherited |
Reimplemented in ana::PredictionInterp, ana::PredictionNoOsc, ana::PredictionExtendToPeripheral, ana::PredictionExtrapSum, ana::PredictionAddRock, and ana::PredictionExtrap.
Definition at line 70 of file IPrediction.cxx.
References ana::assert().
|
overridevirtual |
Reimplemented from ana::IPrediction.
Definition at line 63 of file PredictionCombinePeriods.cxx.
References ana::bins, fPreds, ana::Spectrum::GetBinnings(), ana::Spectrum::GetEigen(), ana::Spectrum::GetLabels(), make_syst_table_plots::h, it, PandAna.Demos.pi0_spectra::labels, plot_validation_datamc::pred, and ana::IPrediction::PredictComponentSyst().
Referenced by CalcRWithSysts(), PredictComponent(), and PredictSyst().
|
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().
|
overridevirtual |
Reimplemented from ana::IPrediction.
Definition at line 41 of file PredictionCombinePeriods.cxx.
References ana::Flavors::kAll, ana::Current::kBoth, ana::Sign::kBoth, PredictComponent(), and PredictComponentSyst().
Referenced by PlotSysts().
|
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().
|
overridevirtual |
Reimplemented from ana::IPrediction.
Definition at line 164 of file PredictionCombinePeriods.cxx.
References dir, genie::utils::style::Format(), fPreds, MECModelEnuComparisons::i, compare_h5_caf::idx, it, LoadFrom(), pots, moon_position_table_new3::second, and tmp.
Referenced by MakeNusPrediction().
|
protected |
Definition at line 60 of file PredictionCombinePeriods.h.
Referenced by ComponentCC(), GetPOT(), GetPrediction(), NPredictions(), PredictComponentSyst(), PredictionCombinePeriods(), and SaveTo().