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-08-04/CAFAna/Prediction/IPrediction.h"

Inheritance diagram for ana::IPrediction:
ana::FDPredictionSterile ana::NDPredictionSterile ana::PredictionAddRock ana::PredictionCombinePeriods ana::PredictionExtendToPeripheral ana::PredictionExtrap ana::PredictionExtrapSum ana::PredictionInterp ana::PredictionNoOsc ana::PredictionScaleComp 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, and canMan::sign().

60 {}

Member Function Documentation

virtual OscillatableSpectrum ana::IPrediction::ComponentCC ( int  from,
int  to 
) const
inlinevirtual
virtual Spectrum ana::IPrediction::ComponentNC ( ) const
inlinevirtual
virtual Spectrum ana::IPrediction::ComponentNCAnti ( ) const
inlinevirtual
virtual Spectrum ana::IPrediction::ComponentNCTotal ( ) const
inlinevirtual
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, jw::TrivialPrediction, ana::NDPredictionSterile, ana::PredictionCombinePeriods, ana::PredictionExtrapSum, ana::PredictionXSecTuning, ana::PredictionAddRock, ana::FDPredictionSterile, and ana::PredictionExtrap.

Referenced by AnalyzeNus18Pred(), BicountEllipse_dCP(), bin_composition_pie_chart(), ana::CovMxExperiment::ChiSq(), ana::DataMCAreaNormalizedRatio(), ana::DataMCComparison(), ana::DataMCComparisonAreaNormalized(), ana::DataMCComparisonComponents(), ana::DataMCRatio(), demo_nueNumuSysts(), fd_plot(), GenerateFutureData(), ana2019::fakedata::Get2019Prediction(), GetFakeData(), GetMockData(), GetNuePredictionFuture(), GetQuantilePredictionHist(), ana::SingleSampleExperiment::LogLikelihood(), make_fc_nus_surfs_nersc_2018(), make_fc_nus_surfs_nersc_2019(), MakeCovMx(), MakeExtrapSurface(), 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(), PredictSyst(), PredictUnoscillated(), selection_story_plots(), TableNuePredictionFourBins(), and ana::PredictionScaleComp::~PredictionScaleComp().

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

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

Definition at line 80 of file IPrediction.cxx.

References ana::assert().

81  {
82  assert(0 && "This Prediction hasn't implemented a Stan-aware Predict()!");
83  }
assert(nhit_max >=nhit_nbins)
virtual Spectrum ana::IPrediction::PredictComponent ( osc::IOscCalculator calc,
Flavors::Flavors_t  flav,
Current::Current_t  curr,
Sign::Sign_t  sign 
) const
pure virtual
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 107 of file IPrediction.cxx.

References ana::assert().

111  {
112  assert(0 && "This Prediction hasn't implemented a Stan-aware PredictComponent()!");
113  }
assert(nhit_max >=nhit_nbins)
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::PredictionCombinePeriods, and ana::PredictionAddRock.

Definition at line 116 of file IPrediction.cxx.

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

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

121  {
122  assert(syst.IsNominal() && "This Prediction doesn't support PredictSyst(). Did you just mean Predict()?");
123 
124  // Default implementation: no treatment of systematics
125  return PredictComponent(calc, flav, curr, sign);
126  }
virtual Spectrum PredictComponent(osc::IOscCalculator *calc, Flavors::Flavors_t flav, Current::Current_t curr, Sign::Sign_t sign) const =0
assert(nhit_max >=nhit_nbins)
def sign(x)
Definition: canMan.py:197
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 130 of file IPrediction.cxx.

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

135  {
136  assert(syst.IsNominal() && "This Prediction doesn't support PredictSyst(). Did you just mean Predict()?");
137 
138  // Default implementation: no treatment of systematics
139  return PredictComponent(calc, flav, curr, sign);
140  }
virtual Spectrum PredictComponent(osc::IOscCalculator *calc, Flavors::Flavors_t flav, Current::Current_t curr, Sign::Sign_t sign) const =0
assert(nhit_max >=nhit_nbins)
def sign(x)
Definition: canMan.py:197
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 96 of file IPrediction.cxx.

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

98  {
99  assert(syst.IsNominal() && "This Prediction doesn't support PredictSyst(). Did you just mean Predict()?");
100 
101  // Default implementation: no treatment of systematics
102  return Predict(calc);
103  }
virtual Spectrum Predict(osc::IOscCalculator *calc) const =0
assert(nhit_max >=nhit_nbins)
Spectrum ana::IPrediction::PredictUnoscillated ( ) const
virtual

Reimplemented in ana::PredictionSterile.

Definition at line 70 of file IPrediction.cxx.

References noosc, and Predict().

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

71  {
72  // Default implementation
74  return Predict(&noosc);
75  }
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: