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-09-26/NuXAna/Prediction/FDPredictionSterile.h"

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

Public Member Functions

 FDPredictionSterile (FDExtrap *extrap)
 
virtual ~FDPredictionSterile ()
 
virtual Spectrum Predict (osc::IOscCalc *calc) const override
 
virtual Spectrum PredictComponent (osc::IOscCalc *calc, Flavors::Flavors_t flav, Current::Current_t curr, Sign::Sign_t sign) const override
 
virtual Spectrum FakeData (osc::IOscCalc *calc, double POT)
 
virtual void SaveTo (TDirectory *dir, const std::string &name) const override
 
 FDPredictionSterile ()=delete
 
virtual Spectrum PredictUnoscillated () const
 
virtual Spectrum Predict (osc::IOscCalcStan *calc) const
 
virtual Spectrum PredictSyst (osc::IOscCalc *calc, const SystShifts &syst) const
 
virtual Spectrum PredictSyst (osc::IOscCalcStan *calc, const SystShifts &syst) const
 
virtual Spectrum PredictComponent (osc::IOscCalcStan *calc, Flavors::Flavors_t flav, Current::Current_t curr, Sign::Sign_t sign) const
 
virtual Spectrum PredictComponentSyst (osc::IOscCalc *calc, const SystShifts &syst, Flavors::Flavors_t flav, Current::Current_t curr, Sign::Sign_t sign) const
 
virtual Spectrum PredictComponentSyst (osc::IOscCalcStan *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 Spectrum ComponentNCTotal () const
 
virtual Spectrum ComponentNC () const
 
virtual Spectrum ComponentNCAnti () const
 

Static Public Member Functions

static std::unique_ptr< FDPredictionSterileLoadFrom (TDirectory *dir, const std::string &name)
 

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

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

Reimplemented in ana::PredictionExtendToPeripheral, ana::PredictionAddRock, ana::PredictionCombinePeriods, ana::PredictionExtrapSum, and ana::PredictionExtrap.

Definition at line 128 of file IPrediction.cxx.

References om::cout, and allTimeWatchdog::endl.

Referenced by ana::PredictionCombinePeriods::ComponentCC(), ana::PredictionAddRock::ComponentCC(), and ND_DataMC().

129  {
130  std::cout << "WARNING! ComponentCC is unimplemented in IPrediction" << std::endl; abort();
131  }
OStream cout
Definition: OStream.cxx:6
Spectrum ana::IPrediction::ComponentNC ( ) const
virtualinherited

Reimplemented in ana::PredictionExtendToPeripheral, ana::PredictionAddRock, ana::PredictionCombinePeriods, ana::PredictionExtrapSum, and ana::PredictionExtrap.

Definition at line 138 of file IPrediction.cxx.

References om::cout, and allTimeWatchdog::endl.

Referenced by ana::PredictionAddRock::ComponentNC().

139  {
140  std::cout << "WARNING! ComponentNC is unimplemented in IPrediction" << std::endl; abort();
141  }
OStream cout
Definition: OStream.cxx:6
Spectrum ana::IPrediction::ComponentNCAnti ( ) const
virtualinherited

Reimplemented in ana::PredictionExtendToPeripheral, ana::PredictionAddRock, ana::PredictionCombinePeriods, ana::PredictionExtrapSum, and ana::PredictionExtrap.

Definition at line 143 of file IPrediction.cxx.

References om::cout, and allTimeWatchdog::endl.

Referenced by ana::PredictionAddRock::ComponentNCAnti().

144  {
145  std::cout << "WARNING! ComponentNCAnti is unimplemented in IPrediction" << std::endl; abort();
146  }
OStream cout
Definition: OStream.cxx:6
Spectrum ana::IPrediction::ComponentNCTotal ( ) const
virtualinherited

Reimplemented in ana::PredictionExtendToPeripheral, ana::PredictionAddRock, ana::PredictionCombinePeriods, ana::PredictionExtrapSum, and ana::PredictionExtrap.

Definition at line 133 of file IPrediction.cxx.

References om::cout, and allTimeWatchdog::endl.

Referenced by ana::PredictionAddRock::ComponentNCTotal(), and ND_DataMC().

134  {
135  std::cout << "WARNING! ComponentNCTotal is unimplemented in IPrediction" << std::endl; abort();
136  }
OStream cout
Definition: OStream.cxx:6
Spectrum ana::FDPredictionSterile::FakeData ( osc::IOscCalc 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  }
Spectrum FakeData(double pot) const
Fake data is a MC spectrum scaled to the POT expected in the data.
Definition: Spectrum.cxx:402
std::vector< double > POT
virtual Spectrum Predict(osc::IOscCalc *calc) const override
std::unique_ptr< FDPredictionSterile > ana::FDPredictionSterile::LoadFrom ( TDirectory *  dir,
const std::string &  name 
)
static

Definition at line 190 of file FDPredictionSterile.cxx.

References ana::assert(), dir, FDPredictionSterile(), and runNovaSAM::release.

Referenced by ana::SystMakerShiftSigma::LoadFrom(), ana::SystMaker::LoadFrom(), ana::LoadMaps(), and LoadPrediction().

191  {
192  dir = dir->GetDirectory(name.c_str()); // switch to subdir
193  assert(dir);
194 
195  FDExtrap* extrap = ana::LoadFrom<FDExtrap>(dir, "fdextrap").release();
196 
197  delete dir;
198 
199  return std::unique_ptr<FDPredictionSterile>(new FDPredictionSterile(extrap));
200  }
const XML_Char * name
Definition: expat.h:151
TDirectory * dir
Definition: macro.C:5
assert(nhit_max >=nhit_nbins)
Spectrum ana::FDPredictionSterile::Predict ( osc::IOscCalc 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  }
Pass neutrinos through unchanged.
Definition: IOscCalc.h:40
OscillatableSpectrum TauNCComponent()
Definition: FDExtrap.cxx:141
OscillatableSpectrum AntiTauCCAppComponent()
Definition: FDExtrap.cxx:111
OscillatableSpectrum NueCCSurvComponent()
Definition: FDExtrap.cxx:65
OscillatableSpectrum AntiNumuCCAppComponent()
Definition: FDExtrap.cxx:83
OscillatableSpectrum EAntiTauCCAppComponent()
Definition: FDExtrap.cxx:121
Adapt the PMNS_Sterile calculator to standard interface.
OscillatableSpectrum AntiNumuCCSurvComponent()
Definition: FDExtrap.cxx:95
osc::OscCalcDumb calc
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
osc::NoOscillations noosc
Definition: NueSystFuncs.h:44
std::vector< float > Spectrum
Definition: Constants.h:527
OscillatableSpectrum NueNCComponent()
Definition: FDExtrap.cxx:131
const OscCalcSterile * DowncastToSterile(const IOscCalc *calc)
Spectrum Oscillated(osc::IOscCalc *calc, int from, int to) const
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
Spectrum ana::IPrediction::Predict ( osc::IOscCalcStan calc) const
virtualinherited

Reimplemented in ana::PredictionInterp, ana::PredictionExtendToPeripheral, ana::PredictionExtrapSum, ana::PredictionExtrap, and ana::PredictionAddRock.

Definition at line 66 of file IPrediction.cxx.

References ana::assert().

67  {
68  assert(0 && "This Prediction hasn't implemented a Stan-aware Predict()!");
69  }
assert(nhit_max >=nhit_nbins)
Spectrum ana::FDPredictionSterile::PredictComponent ( osc::IOscCalc 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 
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 OscCalcSterile." << std::endl;
160 
161  }
162 
163  return ret;
164  }
Pass neutrinos through unchanged.
Definition: IOscCalc.h:40
OscillatableSpectrum TauNCComponent()
Definition: FDExtrap.cxx:141
Spectrum NCComponent()
Definition: FDExtrap.cxx:59
Antineutrinos-only.
Definition: IPrediction.h:50
OscillatableSpectrum AntiTauCCAppComponent()
Definition: FDExtrap.cxx:111
(&#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
Adapt the PMNS_Sterile calculator to standard interface.
OStream cerr
Definition: OStream.cxx:7
void Clear()
Definition: Spectrum.cxx:433
OscillatableSpectrum AntiNumuCCSurvComponent()
Definition: FDExtrap.cxx:95
osc::OscCalcDumb calc
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
osc::NoOscillations noosc
Definition: NueSystFuncs.h:44
std::vector< float > Spectrum
Definition: Constants.h:527
OscillatableSpectrum NueNCComponent()
Definition: FDExtrap.cxx:131
Neutrinos-only.
Definition: IPrediction.h:49
const OscCalcSterile * DowncastToSterile(const IOscCalc *calc)
(&#39; survival&#39;)
Definition: IPrediction.h:19
Spectrum Oscillated(osc::IOscCalc *calc, int from, int to) const
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
def sign(x)
Definition: canMan.py:197
OscillatableSpectrum AntiTauNCComponent()
Definition: FDExtrap.cxx:156
Spectrum ana::IPrediction::PredictComponent ( osc::IOscCalcStan calc,
Flavors::Flavors_t  flav,
Current::Current_t  curr,
Sign::Sign_t  sign 
) const
virtualinherited

Reimplemented in ana::PredictionInterp, ana::PredictionExtendToPeripheral, ana::PredictionExtrapSum, ana::PredictionAddRock, and ana::PredictionExtrap.

Definition at line 93 of file IPrediction.cxx.

References ana::assert().

97  {
98  assert(0 && "This Prediction hasn't implemented a Stan-aware PredictComponent()!");
99  }
assert(nhit_max >=nhit_nbins)
Spectrum ana::IPrediction::PredictComponentSyst ( osc::IOscCalc calc,
const SystShifts syst,
Flavors::Flavors_t  flav,
Current::Current_t  curr,
Sign::Sign_t  sign 
) const
virtualinherited

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

Definition at line 102 of file IPrediction.cxx.

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

Referenced by ana::PredictionAddRock::_PredictComponentSyst(), ana::CovMxManager::AddSystematic(), ana::GetBFSystBands(), ana::GetSystBands(), PlotSysts(), ana::PredictionCombinePeriods::PredictComponentSyst(), systematics_extrap_comp_from_pred_interp(), systematics_summary_from_pred_interp(), and systematics_table_from_pred_interp().

107  {
108  assert(syst.IsNominal() && "This Prediction doesn't support PredictSyst(). Did you just mean Predict()?");
109 
110  // Default implementation: no treatment of systematics
111  return PredictComponent(calc, flav, curr, sign);
112  }
virtual Spectrum PredictComponent(osc::IOscCalc *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::PredictComponentSyst ( osc::IOscCalcStan calc,
const SystShifts syst,
Flavors::Flavors_t  flav,
Current::Current_t  curr,
Sign::Sign_t  sign 
) const
virtualinherited

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

Definition at line 116 of file IPrediction.cxx.

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

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::IOscCalc *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::IOscCalc calc,
const SystShifts syst 
) const
virtualinherited

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

Definition at line 72 of file IPrediction.cxx.

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

Referenced by BicountEllipse_dCP(), ana::CountingExperiment::ChiSq(), ana::DataMCComparison(), demo_nueNumuSysts(), DrawBins(), DrawPulls(), fill_col(), joint_fit_2017_make_fc_slice(), joint_fit_2017_make_fc_surf(), MakeFakeData(), ana::PlotWithAreaSystErrorBand(), ana::PlotWithSystErrorBand(), ana::PlotWithSystErrorBand_Quant(), ana::SingleSampleExperiment::PredHistIncCosmics(), and ana::PredictionScaleComp::~PredictionScaleComp().

74  {
75  assert(syst.IsNominal() && "This Prediction doesn't support PredictSyst(). Did you just mean Predict()?");
76 
77  // Default implementation: no treatment of systematics
78  return Predict(calc);
79  }
virtual Spectrum Predict(osc::IOscCalc *calc) const =0
assert(nhit_max >=nhit_nbins)
Spectrum ana::IPrediction::PredictSyst ( osc::IOscCalcStan calc,
const SystShifts syst 
) const
virtualinherited

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

Definition at line 82 of file IPrediction.cxx.

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

84  {
85  assert(syst.IsNominal() && "This Prediction doesn't support PredictSyst(). Did you just mean Predict()?");
86 
87  // Default implementation: no treatment of systematics
88  return Predict(calc);
89  }
virtual Spectrum Predict(osc::IOscCalc *calc) const =0
assert(nhit_max >=nhit_nbins)
Spectrum ana::IPrediction::PredictUnoscillated ( ) const
virtualinherited

Reimplemented in ana::PredictionSterile.

Definition at line 56 of file IPrediction.cxx.

References noosc, and ana::IPrediction::Predict().

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

57  {
58  // Default implementation
60  return Predict(&noosc);
61  }
Pass neutrinos through unchanged.
Definition: IOscCalc.h:40
virtual Spectrum Predict(osc::IOscCalc *calc) const =0
osc::NoOscillations noosc
Definition: NueSystFuncs.h:44
void ana::FDPredictionSterile::SaveTo ( TDirectory *  dir,
const std::string &  name 
) const
overridevirtual

Reimplemented from ana::IPrediction.

Definition at line 173 of file FDPredictionSterile.cxx.

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

Referenced by MakeNus18CovarSim().

174  {
175  TDirectory* tmp = gDirectory;
176 
177  dir = dir->mkdir(name.c_str()); // switch to subdir
178  dir->cd();
179 
180  TObjString("FDPredictionSterile").Write("type");
181  fFDExtrap->SaveTo(dir, "fdextrap");
182 
183  dir->Write();
184  delete dir;
185 
186  tmp->cd();
187  }
const XML_Char * name
Definition: expat.h:151
Float_t tmp
Definition: plot.C:36
virtual void SaveTo(TDirectory *dir, const std::string &name) 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: