Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
ana::FDPredictionSterile Class Reference

Take the output of an extrapolation and oscillate it as required. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-02-16/CAFAna/Prediction/FDPredictionSterile.h"

Inheritance diagram for ana::FDPredictionSterile:
ana::IPrediction

Public Member Functions

 FDPredictionSterile (FDExtrap *extrap)
 
virtual ~FDPredictionSterile ()
 
virtual Spectrum Predict (osc::IOscCalculator *calc) const override
 
virtual Spectrum PredictComponent (osc::IOscCalculator *calc, Flavors::Flavors_t flav, Current::Current_t curr, Sign::Sign_t sign) const override
 
virtual Spectrum FakeData (osc::IOscCalculator *calc, double POT)
 
virtual void SaveTo (TDirectory *dir) const override
 
 FDPredictionSterile ()=delete
 
virtual Spectrum PredictUnoscillated () const
 
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 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
 

Static Public Member Functions

static std::unique_ptr< FDPredictionSterileLoadFrom (TDirectory *dir)
 

Protected Attributes

FDExtrapfFDExtrap
 

Detailed Description

Take the output of an extrapolation and oscillate it as required.

Definition at line 13 of file FDPredictionSterile.h.

Constructor & Destructor Documentation

ana::FDPredictionSterile::FDPredictionSterile ( FDExtrap extrap)

Definition at line 21 of file FDPredictionSterile.cxx.

22  : fFDExtrap(extrap)
23  {
24  }
ana::FDPredictionSterile::~FDPredictionSterile ( )
virtual

Definition at line 27 of file FDPredictionSterile.cxx.

References fFDExtrap.

28  {
29  if (fFDExtrap) delete fFDExtrap;
30  }
ana::FDPredictionSterile::FDPredictionSterile ( )
delete

Referenced by LoadFrom().

Member Function Documentation

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

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
inlinevirtualinherited

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
inlinevirtualinherited

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
inlinevirtualinherited

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  }
Spectrum ana::FDPredictionSterile::FakeData ( osc::IOscCalculator calc,
double  POT 
)
virtual

Definition at line 167 of file FDPredictionSterile.cxx.

References ana::Spectrum::FakeData(), and Predict().

168  {
169  return Predict(calc).FakeData(POT);
170  }
virtual Spectrum Predict(osc::IOscCalculator *calc) const override
Spectrum FakeData(double pot) const
Fake data is a MC spectrum scaled to the POT expected in the data.
Definition: Spectrum.cxx:819
std::vector< double > POT
std::unique_ptr< FDPredictionSterile > ana::FDPredictionSterile::LoadFrom ( TDirectory *  dir)
static

Definition at line 183 of file FDPredictionSterile.cxx.

References FDPredictionSterile(), and runNovaSAM::release.

Referenced by ana::LoadFrom< IPrediction >(), ana::LoadMaps(), and LoadPrediction().

184  {
185  assert(dir->GetDirectory("fdextrap"));
186  FDExtrap* extrap = ana::LoadFrom<FDExtrap>(dir->GetDirectory("fdextrap")).release();
187  return std::unique_ptr<FDPredictionSterile>(new FDPredictionSterile(extrap));
188  }
TDirectory * dir
Definition: macro.C:5
Spectrum ana::FDPredictionSterile::Predict ( osc::IOscCalculator calc) const
overridevirtual

Implements ana::IPrediction.

Definition at line 33 of file FDPredictionSterile.cxx.

References ana::FDExtrap::AntiNueCCAppComponent(), ana::FDExtrap::AntiNueCCSurvComponent(), ana::FDExtrap::AntiNueNCComponent(), ana::FDExtrap::AntiNumuCCAppComponent(), ana::FDExtrap::AntiNumuCCSurvComponent(), ana::FDExtrap::AntiNumuNCComponent(), ana::FDExtrap::AntiTauCCAppComponent(), ana::FDExtrap::AntiTauNCComponent(), calc, osc::DowncastToSterile(), ana::FDExtrap::EAntiTauCCAppComponent(), ana::FDExtrap::ETauCCAppComponent(), fFDExtrap, noosc, ana::FDExtrap::NueCCAppComponent(), ana::FDExtrap::NueCCSurvComponent(), ana::FDExtrap::NueNCComponent(), ana::FDExtrap::NumuCCAppComponent(), ana::FDExtrap::NumuCCSurvComponent(), ana::FDExtrap::NumuNCComponent(), ana::OscillatableSpectrum::Oscillated(), runNovaSAM::ret, ana::FDExtrap::TauCCAppComponent(), and ana::FDExtrap::TauNCComponent().

Referenced by FakeData().

34  {
35 
37  if (noosc) {
38  Spectrum ret = fFDExtrap->NueCCSurvComponent() .Oscillated(noosc, +12, +12);
39  ret += fFDExtrap->AntiNueCCSurvComponent() .Oscillated(noosc, -12, -12);
40  ret += fFDExtrap->NumuCCAppComponent() .Oscillated(noosc, +12, +14);
41  ret += fFDExtrap->AntiNumuCCAppComponent() .Oscillated(noosc, -12, -14);
42  ret += fFDExtrap->NumuCCSurvComponent() .Oscillated(noosc, +14, +14);
43  ret += fFDExtrap->AntiNumuCCSurvComponent().Oscillated(noosc, -14, -14);
44  ret += fFDExtrap->NueCCAppComponent() .Oscillated(noosc, +14, +12);
45  ret += fFDExtrap->AntiNueCCAppComponent() .Oscillated(noosc, -14, -12);
46  ret += fFDExtrap->TauCCAppComponent() .Oscillated(noosc, +14, +16);
47  ret += fFDExtrap->AntiTauCCAppComponent() .Oscillated(noosc, -14, -16);
48  ret += fFDExtrap->ETauCCAppComponent() .Oscillated(noosc, +12, +16);
49  ret += fFDExtrap->EAntiTauCCAppComponent() .Oscillated(noosc, -12, -16);
50  ret += fFDExtrap->NueNCComponent() .Oscillated(noosc, +12, 0);
51  ret += fFDExtrap->NumuNCComponent() .Oscillated(noosc, +14, 0);
52  ret += fFDExtrap->TauNCComponent() .Oscillated(noosc, +16, 0);
53  ret += fFDExtrap->AntiNueNCComponent() .Oscillated(noosc, -12, 0);
54  ret += fFDExtrap->AntiNumuNCComponent() .Oscillated(noosc, -14, 0);
55  ret += fFDExtrap->AntiTauNCComponent() .Oscillated(noosc, -16, 0);
56 
57  return ret;
58  }
59 
61 
62  Spectrum ret = fFDExtrap->NueCCSurvComponent() .Oscillated(scalc, +12, +12);
63  ret += fFDExtrap->AntiNueCCSurvComponent() .Oscillated(scalc, -12, -12);
64  ret += fFDExtrap->NumuCCAppComponent() .Oscillated(scalc, +12, +14);
65  ret += fFDExtrap->AntiNumuCCAppComponent() .Oscillated(scalc, -12, -14);
66  ret += fFDExtrap->NumuCCSurvComponent() .Oscillated(scalc, +14, +14);
67  ret += fFDExtrap->AntiNumuCCSurvComponent().Oscillated(scalc, -14, -14);
68  ret += fFDExtrap->NueCCAppComponent() .Oscillated(scalc, +14, +12);
69  ret += fFDExtrap->AntiNueCCAppComponent() .Oscillated(scalc, -14, -12);
70  ret += fFDExtrap->TauCCAppComponent() .Oscillated(scalc, +14, +16);
71  ret += fFDExtrap->AntiTauCCAppComponent() .Oscillated(scalc, -14, -16);
72  ret += fFDExtrap->ETauCCAppComponent() .Oscillated(scalc, +12, +16);
73  ret += fFDExtrap->EAntiTauCCAppComponent() .Oscillated(scalc, -12, -16);
74  ret += fFDExtrap->NueNCComponent() .Oscillated(scalc, +12, 0);
75  ret += fFDExtrap->NumuNCComponent() .Oscillated(scalc, +14, 0);
76  ret += fFDExtrap->TauNCComponent() .Oscillated(scalc, +16, 0);
77  ret += fFDExtrap->AntiNueNCComponent() .Oscillated(scalc, -12, 0);
78  ret += fFDExtrap->AntiNumuNCComponent() .Oscillated(scalc, -14, 0);
79  ret += fFDExtrap->AntiTauNCComponent() .Oscillated(scalc, -16, 0);
80 
81  return ret;
82  }
Spectrum Oscillated(osc::IOscCalculator *calc, int from, int to) const
Pass neutrinos through unchanged.
OscillatableSpectrum TauNCComponent()
Definition: FDExtrap.cxx:141
osc::OscCalculatorDumb calc
OscillatableSpectrum AntiTauCCAppComponent()
Definition: FDExtrap.cxx:111
Adapt the PMNS_Sterile calculator to standard interface.
OscillatableSpectrum NueCCSurvComponent()
Definition: FDExtrap.cxx:65
OscillatableSpectrum AntiNumuCCAppComponent()
Definition: FDExtrap.cxx:83
OscillatableSpectrum EAntiTauCCAppComponent()
Definition: FDExtrap.cxx:121
OscillatableSpectrum AntiNumuCCSurvComponent()
Definition: FDExtrap.cxx:95
OscillatableSpectrum AntiNumuNCComponent()
Definition: FDExtrap.cxx:151
OscillatableSpectrum NumuCCSurvComponent()
Definition: FDExtrap.cxx:89
OscillatableSpectrum TauCCAppComponent()
Definition: FDExtrap.cxx:106
OscillatableSpectrum NumuCCAppComponent()
Definition: FDExtrap.cxx:77
OscillatableSpectrum AntiNueNCComponent()
Definition: FDExtrap.cxx:146
OscillatableSpectrum AntiNueCCSurvComponent()
Definition: FDExtrap.cxx:71
const OscCalculatorSterile * DowncastToSterile(const IOscCalculator *calc)
osc::NoOscillations noosc
Definition: NueSystFuncs.h:44
OscillatableSpectrum NueNCComponent()
Definition: FDExtrap.cxx:131
OscillatableSpectrum ETauCCAppComponent()
Definition: FDExtrap.cxx:116
OscillatableSpectrum AntiNueCCAppComponent()
Definition: FDExtrap.cxx:126
OscillatableSpectrum NueCCAppComponent()
Definition: FDExtrap.cxx:101
OscillatableSpectrum NumuNCComponent()
Definition: FDExtrap.cxx:136
OscillatableSpectrum AntiTauNCComponent()
Definition: FDExtrap.cxx:156
SpectrumStan ana::IPrediction::Predict ( osc::IOscCalculatorStan calc) const
virtualinherited

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  }
Spectrum ana::FDPredictionSterile::PredictComponent ( osc::IOscCalculator calc,
Flavors::Flavors_t  flav,
Current::Current_t  curr,
Sign::Sign_t  sign 
) const
overridevirtual

Implements ana::IPrediction.

Definition at line 85 of file FDPredictionSterile.cxx.

References ana::FDExtrap::AntiNueCCAppComponent(), ana::FDExtrap::AntiNueCCSurvComponent(), ana::FDExtrap::AntiNueNCComponent(), ana::FDExtrap::AntiNumuCCAppComponent(), ana::FDExtrap::AntiNumuCCSurvComponent(), ana::FDExtrap::AntiNumuNCComponent(), ana::FDExtrap::AntiTauCCAppComponent(), ana::FDExtrap::AntiTauNCComponent(), calc, om::cerr, ana::Spectrum::Clear(), osc::DowncastToSterile(), ana::FDExtrap::EAntiTauCCAppComponent(), allTimeWatchdog::endl, ana::FDExtrap::ETauCCAppComponent(), fFDExtrap, ana::Flavors::kAllNuTau, ana::Sign::kAntiNu, ana::Current::kCC, ana::Current::kNC, ana::Sign::kNu, ana::Flavors::kNuEToNuE, ana::Flavors::kNuEToNuMu, ana::Flavors::kNuEToNuTau, ana::Flavors::kNuMuToNuE, ana::Flavors::kNuMuToNuMu, ana::Flavors::kNuMuToNuTau, ana::FDExtrap::NCComponent(), noosc, ana::FDExtrap::NueCCAppComponent(), ana::FDExtrap::NueCCSurvComponent(), ana::FDExtrap::NueNCComponent(), ana::FDExtrap::NumuCCAppComponent(), ana::FDExtrap::NumuCCSurvComponent(), ana::FDExtrap::NumuNCComponent(), ana::OscillatableSpectrum::Oscillated(), runNovaSAM::ret, ana::FDExtrap::TauCCAppComponent(), and ana::FDExtrap::TauNCComponent().

89  {
90 
91  Spectrum ret = fFDExtrap->NCComponent();
92  ret.Clear();
93 
95  if (noosc) {
96  if(curr & Current::kCC){
97  if(flav & Flavors::kNuEToNuE && sign & Sign::kNu) ret += fFDExtrap->NueCCSurvComponent() .Oscillated(noosc, +12, +12);
98  if(flav & Flavors::kNuEToNuE && sign & Sign::kAntiNu) ret += fFDExtrap->AntiNueCCSurvComponent() .Oscillated(noosc, -12, -12);
99 
100  if(flav & Flavors::kNuEToNuMu && sign & Sign::kNu) ret += fFDExtrap->NumuCCAppComponent() .Oscillated(noosc, +12, +14);
101  if(flav & Flavors::kNuEToNuMu && sign & Sign::kAntiNu) ret += fFDExtrap->AntiNumuCCAppComponent() .Oscillated(noosc, -12, -14);
102 
103  if(flav & Flavors::kNuMuToNuE && sign & Sign::kNu) ret += fFDExtrap->NueCCAppComponent() .Oscillated(noosc, +14, +12);
104  if(flav & Flavors::kNuMuToNuE && sign & Sign::kAntiNu) ret += fFDExtrap->AntiNueCCAppComponent() .Oscillated(noosc, -14, -12);
105 
106  if(flav & Flavors::kNuMuToNuMu && sign & Sign::kNu) ret += fFDExtrap->NumuCCSurvComponent() .Oscillated(noosc, +14, +14);
107  if(flav & Flavors::kNuMuToNuMu && sign & Sign::kAntiNu) ret += fFDExtrap->AntiNumuCCSurvComponent().Oscillated(noosc, -14, -14);
108 
109  if(flav & Flavors::kNuMuToNuTau && sign & Sign::kNu) ret += fFDExtrap->TauCCAppComponent() .Oscillated(noosc, +14, +16);
110  if(flav & Flavors::kNuMuToNuTau && sign & Sign::kAntiNu) ret += fFDExtrap->AntiTauCCAppComponent() .Oscillated(noosc, -14, -16);
111 
112  if(flav & Flavors::kNuEToNuTau && sign & Sign::kNu) ret += fFDExtrap->ETauCCAppComponent() .Oscillated(noosc, +12, +16);
113  if(flav & Flavors::kNuEToNuTau && sign & Sign::kAntiNu) ret += fFDExtrap->EAntiTauCCAppComponent() .Oscillated(noosc, -12, -16);
114  }
115 
116  if(curr & Current::kNC) {
117  ret += fFDExtrap->NueNCComponent() .Oscillated(noosc, +12, 0);
118  ret += fFDExtrap->AntiNueNCComponent() .Oscillated(noosc, -12, 0);
119  ret += fFDExtrap->NumuNCComponent() .Oscillated(noosc, +14, 0);
120  ret += fFDExtrap->AntiNumuNCComponent().Oscillated(noosc, -14, 0);
121  ret += fFDExtrap->TauNCComponent() .Oscillated(noosc, +16, 0);
122  ret += fFDExtrap->AntiTauNCComponent() .Oscillated(noosc, -16, 0);
123  }
124  return ret;
125  }
126 
128  if(scalc) {
129  if(curr & Current::kCC){
130  if(flav & Flavors::kNuEToNuE && sign & Sign::kNu) ret += fFDExtrap->NueCCSurvComponent() .Oscillated(scalc, +12, +12);
131  if(flav & Flavors::kNuEToNuE && sign & Sign::kAntiNu) ret += fFDExtrap->AntiNueCCSurvComponent() .Oscillated(scalc, -12, -12);
132 
133  if(flav & Flavors::kNuEToNuMu && sign & Sign::kNu) ret += fFDExtrap->NumuCCAppComponent() .Oscillated(scalc, +12, +14);
134  if(flav & Flavors::kNuEToNuMu && sign & Sign::kAntiNu) ret += fFDExtrap->AntiNumuCCAppComponent() .Oscillated(scalc, -12, -14);
135 
136  if(flav & Flavors::kNuMuToNuE && sign & Sign::kNu) ret += fFDExtrap->NueCCAppComponent() .Oscillated(scalc, +14, +12);
137  if(flav & Flavors::kNuMuToNuE && sign & Sign::kAntiNu) ret += fFDExtrap->AntiNueCCAppComponent() .Oscillated(scalc, -14, -12);
138 
139  if(flav & Flavors::kNuMuToNuMu && sign & Sign::kNu) ret += fFDExtrap->NumuCCSurvComponent() .Oscillated(scalc, +14, +14);
140  if(flav & Flavors::kNuMuToNuMu && sign & Sign::kAntiNu) ret += fFDExtrap->AntiNumuCCSurvComponent().Oscillated(scalc, -14, -14);
141 
142  if(flav & Flavors::kNuEToNuTau && sign & Sign::kNu) ret += fFDExtrap->ETauCCAppComponent() .Oscillated(scalc, +12, +16);
143  if(flav & Flavors::kNuEToNuTau && sign & Sign::kAntiNu) ret += fFDExtrap->EAntiTauCCAppComponent() .Oscillated(scalc, -12, -16);
144 
145  if(flav & Flavors::kNuMuToNuTau && sign & Sign::kNu) ret += fFDExtrap->TauCCAppComponent() .Oscillated(scalc, +14, +16);
146  if(flav & Flavors::kNuMuToNuTau && sign & Sign::kAntiNu) ret += fFDExtrap->AntiTauCCAppComponent() .Oscillated(scalc, -14, -16);
147  }
148 
149  if(curr & Current::kNC) {
150  if(flav & Flavors::kNuEToNuE && sign & Sign::kNu) ret += fFDExtrap->NueNCComponent() .Oscillated(scalc, +12, 0);
151  if(flav & Flavors::kNuEToNuE && sign & Sign::kAntiNu) ret += fFDExtrap->AntiNueNCComponent() .Oscillated(scalc, -12, 0);
152  if(flav & Flavors::kNuMuToNuMu && sign & Sign::kNu) ret += fFDExtrap->NumuNCComponent() .Oscillated(scalc, +14, 0);
153  if(flav & Flavors::kNuMuToNuMu && sign & Sign::kAntiNu) ret += fFDExtrap->AntiNumuNCComponent().Oscillated(scalc, -14, 0);
154  if(flav & Flavors::kAllNuTau && sign & Sign::kNu) ret += fFDExtrap->TauNCComponent() .Oscillated(scalc, +16, 0);
155  if(flav & Flavors::kAllNuTau && sign & Sign::kAntiNu) ret += fFDExtrap->AntiTauNCComponent() .Oscillated(scalc, -16, 0);
156  }
157  }
158  else {
159  std::cerr << "NDPredExtrap: Input calculator was not of type OscCalculatorSterile." << std::endl;
160 
161  }
162 
163  return ret;
164  }
Spectrum Oscillated(osc::IOscCalculator *calc, int from, int to) const
Pass neutrinos through unchanged.
OscillatableSpectrum TauNCComponent()
Definition: FDExtrap.cxx:141
osc::OscCalculatorDumb calc
Spectrum NCComponent()
Definition: FDExtrap.cxx:59
Antineutrinos-only.
Definition: IPrediction.h:50
OscillatableSpectrum AntiTauCCAppComponent()
Definition: FDExtrap.cxx:111
Adapt the PMNS_Sterile calculator to standard interface.
(&#39; appearance&#39;)
Definition: IPrediction.h:18
OscillatableSpectrum NueCCSurvComponent()
Definition: FDExtrap.cxx:65
OscillatableSpectrum AntiNumuCCAppComponent()
Definition: FDExtrap.cxx:83
(&#39;beam &#39;)
Definition: IPrediction.h:15
OscillatableSpectrum EAntiTauCCAppComponent()
Definition: FDExtrap.cxx:121
OStream cerr
Definition: OStream.cxx:7
void Clear()
Definition: Spectrum.cxx:878
OscillatableSpectrum AntiNumuCCSurvComponent()
Definition: FDExtrap.cxx:95
OscillatableSpectrum AntiNumuNCComponent()
Definition: FDExtrap.cxx:151
Charged-current interactions.
Definition: IPrediction.h:39
OscillatableSpectrum NumuCCSurvComponent()
Definition: FDExtrap.cxx:89
OscillatableSpectrum TauCCAppComponent()
Definition: FDExtrap.cxx:106
OscillatableSpectrum NumuCCAppComponent()
Definition: FDExtrap.cxx:77
OscillatableSpectrum AntiNueNCComponent()
Definition: FDExtrap.cxx:146
OscillatableSpectrum AntiNueCCSurvComponent()
Definition: FDExtrap.cxx:71
const OscCalculatorSterile * DowncastToSterile(const IOscCalculator *calc)
osc::NoOscillations noosc
Definition: NueSystFuncs.h:44
OscillatableSpectrum NueNCComponent()
Definition: FDExtrap.cxx:131
Neutrinos-only.
Definition: IPrediction.h:49
def sign(x)
Definition: canMan.py:204
(&#39; survival&#39;)
Definition: IPrediction.h:19
OscillatableSpectrum ETauCCAppComponent()
Definition: FDExtrap.cxx:116
OscillatableSpectrum AntiNueCCAppComponent()
Definition: FDExtrap.cxx:126
Neutral-current interactions.
Definition: IPrediction.h:40
OscillatableSpectrum NueCCAppComponent()
Definition: FDExtrap.cxx:101
(&#39; appearance&#39;)
Definition: IPrediction.h:16
OscillatableSpectrum NumuNCComponent()
Definition: FDExtrap.cxx:136
OscillatableSpectrum AntiTauNCComponent()
Definition: FDExtrap.cxx:156
SpectrumStan ana::IPrediction::PredictComponent ( osc::IOscCalculatorStan calc,
Flavors::Flavors_t  flav,
Current::Current_t  curr,
Sign::Sign_t  sign 
) const
virtualinherited

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
virtualinherited

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

Definition at line 128 of file IPrediction.cxx.

References ana::SystShifts::IsNominal(), and ana::IPrediction::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
virtualinherited

Reimplemented in ana::PredictionInterp.

Definition at line 142 of file IPrediction.cxx.

References ana::SystShifts::IsNominal(), and ana::IPrediction::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
virtualinherited
SpectrumStan ana::IPrediction::PredictSyst ( osc::IOscCalculatorStan calc,
const SystShifts syst 
) const
virtualinherited

Reimplemented in ana::PredictionInterp.

Definition at line 108 of file IPrediction.cxx.

References ana::SystShifts::IsNominal(), and ana::IPrediction::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
virtualinherited

Reimplemented in ana::PredictionSterile.

Definition at line 82 of file IPrediction.cxx.

References noosc, and ana::IPrediction::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::FDPredictionSterile::SaveTo ( TDirectory *  dir) const
overridevirtual

Reimplemented from ana::IPrediction.

Definition at line 173 of file FDPredictionSterile.cxx.

References fFDExtrap, ana::FDExtrap::SaveTo(), and tmp.

Referenced by MakeNus18CovarSim().

174  {
175  TDirectory* tmp = gDirectory;
176  dir->cd();
177  TObjString("FDPredictionSterile").Write("type");
178  fFDExtrap->SaveTo(dir->mkdir("fdextrap"));
179  tmp->cd();
180  }
Float_t tmp
Definition: plot.C:36
virtual void SaveTo(TDirectory *dir) const
Definition: FDExtrap.cxx:196
TDirectory * dir
Definition: macro.C:5

Member Data Documentation

FDExtrap* ana::FDPredictionSterile::fFDExtrap
protected

Definition at line 41 of file FDPredictionSterile.h.

Referenced by Predict(), PredictComponent(), SaveTo(), and ~FDPredictionSterile().


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