All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrivialExtrap.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 namespace ana
6 {
7  class Loaders;
8 
9  /// "Extrapolation" that simply returns the MC prediction
10  class TrivialExtrap: public IExtrap
11  {
12  public:
13  TrivialExtrap(SpectrumLoaderBase& loaderNonswap,
14  SpectrumLoaderBase& loaderNue,
15  SpectrumLoaderBase& loaderNuTau,
16  SpectrumLoaderBase& loaderIntrinsic,
17  const HistAxis& axis,
18  const SpillCut& spillcut,
19  const Cut& cut,
20  const SystShifts& shift,
21  const Var& wei);
22 
23  TrivialExtrap(SpectrumLoaderBase& loaderNonswap,
24  SpectrumLoaderBase& loaderNue,
25  SpectrumLoaderBase& loaderNuTau,
26  SpectrumLoaderBase& loaderIntrinsic,
27  std::string label,
28  const Binning& bins,
29  const Var& var,
30  const SpillCut& spillcut,
31  const Cut& cut,
32  const SystShifts& shift,
33  const Var& wei);
34 
35  TrivialExtrap(Loaders& loaders,
36  std::string label,
37  const Binning& bins,
38  const Var& var,
39  const SpillCut& spillcut,
40  const Cut& cut,
41  const SystShifts& shift = kNoShift,
42  const Var& wei = kUnweighted);
43 
44  TrivialExtrap(Loaders& loaders,
45  const HistAxis& axis,
46  const SpillCut& spillcut,
47  const Cut& cut,
48  const SystShifts& shift = kNoShift,
49  const Var& wei = kUnweighted);
50 
53 
56 
59 
62 
65 
68 
71 
72  virtual void SaveTo(TDirectory* dir) const;
73  static std::unique_ptr<TrivialExtrap> LoadFrom(TDirectory* dir);
74 
75  protected:
77  : fNueApp(0, {}, {}, 0, 0), fNueAppAnti(0, {}, {}, 0, 0),
78  fNumuSurv(0, {}, {}, 0, 0), fNumuSurvAnti(0, {}, {}, 0, 0),
79  fNumuApp(0, {}, {}, 0, 0), fNumuAppAnti(0, {}, {}, 0, 0),
80  fNueSurv(0, {}, {}, 0, 0), fNueSurvAnti(0, {}, {}, 0, 0),
81  fTauFromE(0, {}, {}, 0, 0), fTauFromEAnti(0, {}, {}, 0, 0),
82  fTauFromMu(0, {}, {}, 0, 0), fTauFromMuAnti(0, {}, {}, 0, 0),
83  fNCFromNumu(0, {}, {}, 0, 0), fNCFromNue(0, {}, {}, 0, 0)
84  {}
85 
93  };
94 }
virtual OscillatableSpectrum NumuSurvComponent()
Charged current muon neutrino survival ( )
Definition: TrivialExtrap.h:54
OscillatableSpectrum fTauFromMuAnti
Definition: TrivialExtrap.h:91
virtual OscillatableSpectrum AntiNueSurvComponent()
Charged current electron antineutrino survival ( )
Definition: TrivialExtrap.h:52
OscillatableSpectrum fNueAppAnti
Definition: TrivialExtrap.h:86
OscillatableSpectrum fNueSurvAnti
Definition: TrivialExtrap.h:89
Represent the binning of a Spectrum&#39;s x-axis.
Definition: Binning.h:18
OscillatableSpectrum fNCFromNue
Definition: TrivialExtrap.h:92
Simple record of shifts applied to systematic parameters.
Definition: SystShifts.h:16
OscillatableSpectrum fTauFromE
Definition: TrivialExtrap.h:90
Collection of SpectrumLoaders for many configurations.
Definition: Loaders.h:12
virtual OscillatableSpectrum TauFromMuComponent()
Charged current tau neutrino appearance from muon neutrino ( )
Definition: TrivialExtrap.h:66
OscillatableSpectrum fNCFromNumu
Definition: TrivialExtrap.h:92
virtual OscillatableSpectrum NumuAppComponent()
Charged current muon neutrino appearance ( )
Definition: TrivialExtrap.h:60
OscillatableSpectrum fNueApp
Definition: TrivialExtrap.h:86
virtual OscillatableSpectrum AntiNueAppComponent()
Charged current electron antineutrino appearance ( )
Definition: TrivialExtrap.h:58
OscillatableSpectrum fNumuAppAnti
Definition: TrivialExtrap.h:88
process_name opflashCryoW ana
shift
Definition: fcl_checks.sh:26
OscillatableSpectrum fNumuSurvAnti
Definition: TrivialExtrap.h:87
virtual void SaveTo(TDirectory *dir) const
&quot;Extrapolation&quot; that simply returns the MC prediction
Definition: TrivialExtrap.h:10
virtual OscillatableSpectrum NCComponentFromNue()
Definition: TrivialExtrap.h:70
virtual OscillatableSpectrum NCComponentFromNumu()
Neutral currents.
Definition: TrivialExtrap.h:69
static std::unique_ptr< TrivialExtrap > LoadFrom(TDirectory *dir)
OscillatableSpectrum fTauFromMu
Definition: TrivialExtrap.h:91
OscillatableSpectrum fNueSurv
Definition: TrivialExtrap.h:89
virtual OscillatableSpectrum AntiTauFromEComponent()
Charged current tau antineutrino appearance from electron antineutrino ( )
Definition: TrivialExtrap.h:64
OscillatableSpectrum fNumuApp
Definition: TrivialExtrap.h:88
OscillatableSpectrum fTauFromEAnti
Definition: TrivialExtrap.h:90
virtual OscillatableSpectrum AntiTauFromMuComponent()
Charged current tau antineutrino appearance from muon antineutrino ( )
Definition: TrivialExtrap.h:67
virtual OscillatableSpectrum NueSurvComponent()
Charged current electron neutrino survival ( )
Definition: TrivialExtrap.h:51
const SystShifts kNoShift
Definition: SystShifts.h:61
tuple dir
Definition: dropbox.py:28
Base class for the various types of spectrum loader.
virtual OscillatableSpectrum NueAppComponent()
Charged current electron neutrino appearance ( )
Definition: TrivialExtrap.h:57
OscillatableSpectrum fNumuSurv
Definition: TrivialExtrap.h:87
Interface to extrapolation procedures.
Definition: IExtrap.h:8
const Var kUnweighted([](const caf::SRSliceProxy *){return 1;})
The simplest possible Var, always 1. Used as a default weight.
virtual OscillatableSpectrum TauFromEComponent()
Charged current tau neutrino appearance from electron neutrino ( )
Definition: TrivialExtrap.h:63
Spectrum with true energy information, allowing it to be oscillated
virtual OscillatableSpectrum AntiNumuSurvComponent()
Charged current muon antineutrino survival ( )
Definition: TrivialExtrap.h:55
virtual OscillatableSpectrum AntiNumuAppComponent()
Charged current muon antineutrino appearance ( )
Definition: TrivialExtrap.h:61