Public Member Functions | List of all members
ana::IPrediction Class Referenceabstract

Standard interface to all prediction techniques. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-01-22/CAFAna/Prediction/IPrediction.h"

Inheritance diagram for ana::IPrediction:
ana::FDPredictionSterile ana::NDPredictionSterile ana::PredictionAddRock ana::PredictionCombinePeriods ana::PredictionExtendToPeripheral ana::PredictionExtrap ana::PredictionInterp ana::PredictionNoOsc ana::PredictionNueRebinSA ana::PredictionNumuFAHadE ana::PredictionScaleComp ana::PredictionTemplateShift ana::PredictionXSecTuning ana::TrivialPrediction jw::TrivialPrediction

Public Member Functions

virtual ~IPrediction ()
 
virtual Spectrum PredictUnoscillated () const
 
virtual Spectrum Predict (osc::IOscCalculator *calc) const =0
 
virtual SpectrumStan Predict (osc::IOscCalculatorStan *calc) const
 
virtual Spectrum PredictSyst (osc::IOscCalculator *calc, const SystShifts &syst) const
 
virtual SpectrumStan PredictSyst (osc::IOscCalculatorStan *calc, const SystShifts &syst) const
 
virtual Spectrum PredictComponent (osc::IOscCalculator *calc, Flavors::Flavors_t flav, Current::Current_t curr, Sign::Sign_t sign) const =0
 
virtual SpectrumStan PredictComponent (osc::IOscCalculatorStan *calc, Flavors::Flavors_t flav, Current::Current_t curr, Sign::Sign_t sign) const
 
virtual Spectrum PredictComponentSyst (osc::IOscCalculator *calc, const SystShifts &syst, Flavors::Flavors_t flav, Current::Current_t curr, Sign::Sign_t sign) const
 
virtual SpectrumStan PredictComponentSyst (osc::IOscCalculatorStan *calc, const SystShifts &syst, Flavors::Flavors_t flav, Current::Current_t curr, Sign::Sign_t sign) const
 
virtual void Derivative (osc::IOscCalculator *calc, const SystShifts &shift, double pot, std::unordered_map< const ISyst *, std::vector< double >> &dchi) const
 
virtual OscillatableSpectrum ComponentCC (int from, int to) const
 
virtual Spectrum ComponentNCTotal () const
 
virtual Spectrum ComponentNC () const
 
virtual Spectrum ComponentNCAnti () const
 
virtual void SaveTo (TDirectory *dir) const
 

Detailed Description

Standard interface to all prediction techniques.

Definition at line 57 of file IPrediction.h.

Constructor & Destructor Documentation

virtual ana::IPrediction::~IPrediction ( )
inlinevirtual

Definition at line 60 of file IPrediction.h.

References calc, febshutoff_auto::curr, canMan::sign(), and plotSysts::syst.

60 {}

Member Function Documentation

virtual OscillatableSpectrum ana::IPrediction::ComponentCC ( int  from,
int  to 
) const
inlinevirtual
virtual Spectrum ana::IPrediction::ComponentNC ( ) const
inlinevirtual

Reimplemented in ana::PredictionExtendToPeripheral, ana::PredictionAddRock, ana::PredictionCombinePeriods, and ana::PredictionExtrap.

Definition at line 111 of file IPrediction.h.

References om::cout, and allTimeWatchdog::endl.

Referenced by ana::PredictionAddRock::ComponentNC(), and ana::PredictionExtendToPeripheral::PredictionExtendToPeripheral().

112  {std::cout << "WARNING! ComponentNC is unimplemented in IPrediction" << std::endl; abort();}
OStream cout
Definition: OStream.cxx:6
virtual Spectrum ana::IPrediction::ComponentNCAnti ( ) const
inlinevirtual

Reimplemented in ana::PredictionExtendToPeripheral, ana::PredictionAddRock, ana::PredictionCombinePeriods, and ana::PredictionExtrap.

Definition at line 113 of file IPrediction.h.

References om::cout, dir, allTimeWatchdog::endl, and ana::SaveTo().

Referenced by ana::PredictionAddRock::ComponentNCAnti(), and ana::PredictionExtendToPeripheral::PredictionExtendToPeripheral().

114  {std::cout << "WARNING! ComponentNCAnti is unimplemented in IPrediction" << std::endl; abort();}
OStream cout
Definition: OStream.cxx:6
virtual Spectrum ana::IPrediction::ComponentNCTotal ( ) const
inlinevirtual

Reimplemented in ana::PredictionExtendToPeripheral, ana::PredictionAddRock, ana::PredictionCombinePeriods, and ana::PredictionExtrap.

Definition at line 109 of file IPrediction.h.

References om::cout, and allTimeWatchdog::endl.

Referenced by ana::PredictionAddRock::ComponentNCTotal(), and ana::PredictionExtendToPeripheral::PredictionExtendToPeripheral().

110  {std::cout << "WARNING! ComponentNCTotal is unimplemented in IPrediction" << std::endl; abort();}
OStream cout
Definition: OStream.cxx:6
virtual void ana::IPrediction::Derivative ( osc::IOscCalculator calc,
const SystShifts shift,
double  pot,
std::unordered_map< const ISyst *, std::vector< double >> &  dchi 
) const
inlinevirtual

Reimplemented in ana::PredictionInterp, and ana::PredictionAddRock.

Definition at line 92 of file IPrediction.h.

Referenced by ana::PredictionAddRock::Derivative(), and ana::SingleSampleExperiment::Derivative().

96  {
97  // Implementing this function is optional. If you don't implement it,
98  // this default implementation will be used, which signals to callers
99  // that your Prediction doesn't implement this feature.
100  dchi.clear();
101  }
virtual Spectrum ana::IPrediction::Predict ( osc::IOscCalculator calc) const
pure virtual

Implemented in ana::PredictionInterp, ana::PredictionScaleComp, ana::TrivialPrediction, ana::PredictionExtendToPeripheral, ana::PredictionNoOsc, ana::PredictionNumuFAHadE, jw::TrivialPrediction, ana::NDPredictionSterile, ana::PredictionCombinePeriods, ana::PredictionAddRock, ana::PredictionTemplateShift, ana::PredictionXSecTuning, ana::FDPredictionSterile, ana::PredictionExtrap, and ana::PredictionNueRebinSA.

Referenced by AnalyzeNus18Pred(), BicountEllipse_dCP(), bin_composition_pie_chart(), ana::CovMxExperiment::ChiSq(), cpv(), ana::DataMCAreaNormalizedRatio(), ana::DataMCComparison(), ana::DataMCComparisonAreaNormalized(), ana::DataMCComparisonComponents(), ana::DataMCRatio(), delta_precision(), delta_slices(), demo_nueNumuSysts(), fd_plot(), fd_plot_bless(), first_ana_proj(), ana2019::fakedata::Get2019Prediction(), GetFakeData(), GetMockData(), GetQuantilePredictionHist(), hierarchy(), ana::BinnedLkhdExperiment::LogLikelihood(), make_fc_nus_surfs_nersc_2018(), make_fc_nus_surfs_nersc_2019(), MakeCovMx(), MakeExtrapSurface(), myPlotWithSystErrorBand(), nd_plot_bless(), nhits(), nhits2D(), octant(), plot_3NDvsFD(), plot_3NDvsFD_FHC(), plot_3NDvsFD_RHC(), plot_datamc_ND_numu(), plot_datamc_ND_numu_REW(), plot_nd_data_mc(), plot_ND_numu_NOMvsREW(), plot_NDvsFD_REW(), plot_NDvsFD_weights(), plot_NDvsFD_weights_FHC(), plot_NDvsFD_weights_RHC(), PlotNuePredictionFourBins(), PlotNumuPredData(), PlotPurEff(), plots(), ana::PlotSpectra(), PlotStack(), PlotSysts(), ana::PlotWithAreaSystErrorBand(), ana::PlotWithSystErrorBand(), ana::PlotWithSystErrorBand_Quant(), ana::PredictionNumuFAHadE::Predict(), ana::PredictionTemplateShift::PredictionTemplateShift(), PredictSyst(), PredictUnoscillated(), PrintCount(), PrintEventCounts(), ratio(), selection_story_plots(), spects(), TableNuePredictionFourBins(), th23_delta_contour(), and ana::PredictionScaleComp::~PredictionScaleComp().

SpectrumStan ana::IPrediction::Predict ( osc::IOscCalculatorStan calc) const
virtual

Reimplemented in ana::PredictionInterp, and ana::PredictionExtrap.

Definition at line 92 of file IPrediction.cxx.

93  {
94  assert(0 && "This Prediction hasn't implemented a Stan-aware Predict()!");
95  }
virtual Spectrum ana::IPrediction::PredictComponent ( osc::IOscCalculator calc,
Flavors::Flavors_t  flav,
Current::Current_t  curr,
Sign::Sign_t  sign 
) const
pure virtual

Implemented in ana::PredictionInterp, ana::PredictionScaleComp, ana::TrivialPrediction, ana::PredictionExtendToPeripheral, ana::PredictionNoOsc, ana::PredictionNumuFAHadE, ana::PredictionCombinePeriods, ana::PredictionXSecTuning, ana::PredictionAddRock, jw::TrivialPrediction, ana::NDPredictionSterile, ana::PredictionExtrap, ana::FDPredictionSterile, ana::PredictionNueRebinSA, ana::PredictionSterile, and ana::PredictionTemplateShift.

Referenced by ana::AddErrorInQuadrature(), AnalyzeNus18Pred(), bin_composition_pie_chart(), ana::CovMxExperiment::ChiSq(), ana::ComparePredictions(), ana::ComparisonTable(), ana::DataMCComparisonComponents(), ana::PredictionInterp::DebugPlot(), fd_plot_bless(), first_ana_proj(), ana::PredictionInterp::FitComponent(), ana::PredictionInterp::FitSumComponent(), GetBG(), ana::GetBG(), GetBkgd(), GetNC(), ana::GetNC(), GetSig(), GetSpectra(), GetSpectra2D(), ana::GetSpectrum(), MakeHBar(), MakeTable(), nd_plot_bless(), nue_pid_effs(), nue_pid_effs_miniprod(), nue_pid_effs_paper_numu_neweff(), plot_datamc_ND_numu(), plot_datamc_ND_numu_REW(), plot_fd_datamc(), plot_ND_numu_NOMvsREW(), PlotComp(), PlotNuePredictionFourBins(), PlotNus18Sideband(), ana::PlotSpectra(), PlotStack(), PlotSysts(), ana::PredictionTemplateShift::PredictComponent(), ana::PredictionNumuFAHadE::PredictComponent(), PredictComponentSyst(), ana::PredictionTemplateShift::PredictionTemplateShift(), PrintEventCounts(), printline(), ratio(), ratio2D(), SaveOscPrediction(), systematics_extrap_comp_from_pred_interp(), systematics_summary_from_pred_interp(), systematics_table_from_pred_interp(), TableNuePredictionFourBins(), and ana::PredictionScaleComp::~PredictionScaleComp().

SpectrumStan ana::IPrediction::PredictComponent ( osc::IOscCalculatorStan calc,
Flavors::Flavors_t  flav,
Current::Current_t  curr,
Sign::Sign_t  sign 
) const
virtual

Reimplemented in ana::PredictionInterp, and ana::PredictionExtrap.

Definition at line 119 of file IPrediction.cxx.

123  {
124  assert(0 && "This Prediction hasn't implemented a Stan-aware PredictComponent()!");
125  }
Spectrum ana::IPrediction::PredictComponentSyst ( osc::IOscCalculator calc,
const SystShifts syst,
Flavors::Flavors_t  flav,
Current::Current_t  curr,
Sign::Sign_t  sign 
) const
virtual

Reimplemented in ana::PredictionInterp, ana::PredictionNumuFAHadE, ana::PredictionCombinePeriods, and ana::PredictionAddRock.

Definition at line 128 of file IPrediction.cxx.

References ana::SystShifts::IsNominal(), and PredictComponent().

Referenced by PlotSysts(), ana::PredictionAddRock::PredictComponentSyst(), ana::PredictionCombinePeriods::PredictComponentSyst(), ana::PredictionNumuFAHadE::PredictComponentSyst(), systematics_extrap_comp_from_pred_interp(), systematics_summary_from_pred_interp(), and systematics_table_from_pred_interp().

133  {
134  assert(syst.IsNominal() && "This Prediction doesn't support PredictSyst(). Did you just mean Predict()?");
135 
136  // Default implementation: no treatment of systematics
137  return PredictComponent(calc, flav, curr, sign);
138  }
virtual Spectrum PredictComponent(osc::IOscCalculator *calc, Flavors::Flavors_t flav, Current::Current_t curr, Sign::Sign_t sign) const =0
def sign(x)
Definition: canMan.py:204
string syst
Definition: plotSysts.py:176
SpectrumStan ana::IPrediction::PredictComponentSyst ( osc::IOscCalculatorStan calc,
const SystShifts syst,
Flavors::Flavors_t  flav,
Current::Current_t  curr,
Sign::Sign_t  sign 
) const
virtual

Reimplemented in ana::PredictionInterp.

Definition at line 142 of file IPrediction.cxx.

References ana::SystShifts::IsNominal(), and PredictComponent().

147  {
148  assert(syst.IsNominal() && "This Prediction doesn't support PredictSyst(). Did you just mean Predict()?");
149 
150  // Default implementation: no treatment of systematics
151  return PredictComponent(calc, flav, curr, sign);
152  }
virtual Spectrum PredictComponent(osc::IOscCalculator *calc, Flavors::Flavors_t flav, Current::Current_t curr, Sign::Sign_t sign) const =0
def sign(x)
Definition: canMan.py:204
string syst
Definition: plotSysts.py:176
Spectrum ana::IPrediction::PredictSyst ( osc::IOscCalculator calc,
const SystShifts syst 
) const
virtual
SpectrumStan ana::IPrediction::PredictSyst ( osc::IOscCalculatorStan calc,
const SystShifts syst 
) const
virtual

Reimplemented in ana::PredictionInterp.

Definition at line 108 of file IPrediction.cxx.

References ana::SystShifts::IsNominal(), and Predict().

110  {
111  assert(syst.IsNominal() && "This Prediction doesn't support PredictSyst(). Did you just mean Predict()?");
112 
113  // Default implementation: no treatment of systematics
114  return Predict(calc);
115  }
virtual Spectrum Predict(osc::IOscCalculator *calc) const =0
string syst
Definition: plotSysts.py:176
Spectrum ana::IPrediction::PredictUnoscillated ( ) const
virtual

Reimplemented in ana::PredictionSterile.

Definition at line 82 of file IPrediction.cxx.

References noosc, and Predict().

Referenced by cc(), demo5(), demo::DrawUpDownRatioCanvas(), Efficiency(), efficiency(), efficiencySA(), fa_fd_data_mc_systs(), GetSpectra(), numu_demo_split_plot(), plot_nd_data_mc(), template_basic(), and test_ana().

83  {
84  // Default implementation
86  return Predict(&noosc);
87  }
Pass neutrinos through unchanged.
virtual Spectrum Predict(osc::IOscCalculator *calc) const =0
osc::NoOscillations noosc
Definition: NueSystFuncs.h:44
void ana::IPrediction::SaveTo ( TDirectory *  dir) const
virtual

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