All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
ana::IPrediction Class Referenceabstract

Standard interface to all prediction techniques. More...

#include <IPrediction.h>

Inheritance diagram for ana::IPrediction:
ana::PredictionExtrap ana::PredictionIncDirt ana::PredictionInterp ana::PredictionLinFit ana::PredictionNoOsc ana::PredictionSBNExtrap ana::PredictionScaleComp ana::PredictionNoExtrap

Public Member Functions

virtual ~IPrediction ()
 
virtual Spectrum PredictUnoscillated () const
 
virtual Spectrum Predict (osc::IOscCalc *calc) const =0
 
virtual Spectrum PredictSyst (osc::IOscCalc *calc, const SystShifts &syst) const
 
virtual Spectrum PredictComponent (osc::IOscCalc *calc, Flavors::Flavors_t flav, Current::Current_t curr, Sign::Sign_t sign) const =0
 
virtual Spectrum PredictComponentSyst (osc::IOscCalc *calc, const SystShifts &syst, Flavors::Flavors_t flav, Current::Current_t curr, Sign::Sign_t sign) const
 
virtual OscillatableSpectrum ComponentCC (int from, int to) const
 
virtual void SaveTo (TDirectory *dir) const
 

Detailed Description

Standard interface to all prediction techniques.

Definition at line 58 of file IPrediction.h.

Constructor & Destructor Documentation

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

Definition at line 61 of file IPrediction.h.

61 {}

Member Function Documentation

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

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

Definition at line 77 of file IPrediction.h.

78  {std::cout << "OscillatableSpectrum::ComponentCC() unimplemented" << std::endl; abort();}
BEGIN_PROLOG could also be cout
virtual Spectrum ana::IPrediction::Predict ( osc::IOscCalc calc) const
pure virtual
virtual Spectrum ana::IPrediction::PredictComponent ( osc::IOscCalc calc,
Flavors::Flavors_t  flav,
Current::Current_t  curr,
Sign::Sign_t  sign 
) const
pure virtual
Spectrum ana::IPrediction::PredictComponentSyst ( osc::IOscCalc calc,
const SystShifts syst,
Flavors::Flavors_t  flav,
Current::Current_t  curr,
Sign::Sign_t  sign 
) const
virtual

Reimplemented in ana::PredictionScaleComp, ana::PredictionInterp, and ana::PredictionLinFit.

Definition at line 72 of file IPrediction.cxx.

77  {
78  assert(syst.IsNominal() && "This Prediction doesn't support PredictSyst(). Did you just mean Predict()?");
79 
80  // Default implementation: no treatment of systematics
81  return PredictComponent(calc, flav, curr, sign);
82  }
int sign(double val)
Definition: UtilFunc.cxx:104
virtual Spectrum PredictComponent(osc::IOscCalc *calc, Flavors::Flavors_t flav, Current::Current_t curr, Sign::Sign_t sign) const =0
Spectrum ana::IPrediction::PredictSyst ( osc::IOscCalc calc,
const SystShifts syst 
) const
virtual

Reimplemented in ana::PredictionScaleComp, ana::PredictionInterp, and ana::PredictionLinFit.

Definition at line 62 of file IPrediction.cxx.

64  {
65  assert(syst.IsNominal() && "This Prediction doesn't support PredictSyst(). Did you just mean Predict()?");
66 
67  // Default implementation: no treatment of systematics
68  return Predict(calc);
69  }
virtual Spectrum Predict(osc::IOscCalc *calc) const =0
Spectrum ana::IPrediction::PredictUnoscillated ( ) const
virtual

Definition at line 54 of file IPrediction.cxx.

55  {
56  // Default implementation
57  osc::NoOscillations noosc;
58  return Predict(&noosc);
59  }
virtual Spectrum Predict(osc::IOscCalc *calc) const =0
void ana::IPrediction::SaveTo ( TDirectory *  dir) const
virtual

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