PredictionInterpTemplates.h
Go to the documentation of this file.
1 #pragma once
2 
4 
6 
7 namespace ana
8 {
9  /// Helper for \ref PredictionInterpTemplates
11  {
12  public:
14  const NueSystFromHist* syst,
15  double sigma)
16  : fPred(pred), fSyst(syst), fSigma(sigma) {}
17 
18  // un-hide inherited method stubs so we don't get warnings from the compiler
22 
24  Flavors::Flavors_t flav,
26  Sign::Sign_t sign) const override;
27 
28  Spectrum Predict(osc::IOscCalculator* calc) const override
29  {
31  }
32 
33  void SaveTo(TDirectory* dir) const override;
34 
35  static std::unique_ptr<PredictionTemplateShift> LoadFrom(TDirectory* dir);
36 
37  protected:
38  Spectrum Weight(const Spectrum& s, OscChannel chan) const;
39 
42  double fSigma;
43  };
44 
45  /// Specifically for the nue Second Analysis
47  {
48  public:
49  PredictionInterpTemplates(std::vector<const NueSystFromHist*> systs,
51  IPrediction* nom);
52 
53  virtual ~PredictionInterpTemplates();
54 
55  };
56 
57 }
Implements systematic errors by interpolation between shifted templates.
osc::OscCalculatorDumb calc
Oscillation analysis framework, runs over CAF files outside of ART.
std::vector< SystGroupDef > systs
Definition: syst_header.h:384
General interface to oscillation calculators.
Definition: FwdDeclare.h:15
virtual Spectrum PredictComponent(osc::IOscCalculator *calc, Flavors::Flavors_t flav, Current::Current_t curr, Sign::Sign_t sign) const =0
void SaveTo(TDirectory *dir) const override
Spectrum Weight(const Spectrum &s, OscChannel chan) const
Spectrum PredictComponent(osc::IOscCalculator *calc, Flavors::Flavors_t flav, Current::Current_t curr, Sign::Sign_t sign) const override
virtual Spectrum Predict(osc::IOscCalculator *calc) const =0
Representation of a spectrum in any variable, with associated POT.
Definition: Spectrum.h:37
virtual Spectrum PredictSyst(osc::IOscCalculator *calc, const SystShifts &syst) const
Definition: IPrediction.cxx:98
const XML_Char * s
Definition: expat.h:262
Interactions of both types.
Definition: IPrediction.h:42
Spectrum Predict(osc::IOscCalculator *calc) const override
Specifically for the nue Second Analysis.
Oscillation probability calculators.
Definition: Calcs.h:5
def sign(x)
Definition: canMan.py:204
PredictionTemplateShift(IPrediction *pred, const NueSystFromHist *syst, double sigma)
TDirectory * dir
Definition: macro.C:5
string syst
Definition: plotSysts.py:176
Both neutrinos and antineutrinos.
Definition: IPrediction.h:52
static std::unique_ptr< PredictionTemplateShift > LoadFrom(TDirectory *dir)
Standard interface to all prediction techniques.
Definition: IPrediction.h:57
All neutrinos, any flavor.
Definition: IPrediction.h:26
Helper for PredictionInterpTemplates.