Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
ana::NDPredictionSterile 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/NDPredictionSterile.h"

Inheritance diagram for ana::NDPredictionSterile:
ana::IPrediction

Public Member Functions

 NDPredictionSterile (NDExtrap *extrap)
 
virtual ~NDPredictionSterile ()
 
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
 
 NDPredictionSterile ()=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< NDPredictionSterileLoadFrom (TDirectory *dir, const std::string &name)
 

Protected Attributes

NDExtrapfNDExtrap
 

Detailed Description

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

Definition at line 18 of file NDPredictionSterile.h.

Constructor & Destructor Documentation

ana::NDPredictionSterile::NDPredictionSterile ( NDExtrap extrap)

Definition at line 21 of file NDPredictionSterile.cxx.

22  : fNDExtrap(extrap)
23  {
24  }
ana::NDPredictionSterile::~NDPredictionSterile ( )
virtual

Definition at line 27 of file NDPredictionSterile.cxx.

References fNDExtrap.

28  {
29  if (fNDExtrap) delete fNDExtrap;
30  }
ana::NDPredictionSterile::NDPredictionSterile ( )
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::NDPredictionSterile::FakeData ( osc::IOscCalc calc,
double  POT 
)
virtual

Definition at line 180 of file NDPredictionSterile.cxx.

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

181  {
182  return Predict(calc).FakeData(POT);
183  }
virtual Spectrum Predict(osc::IOscCalc *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:402
std::vector< double > POT
std::unique_ptr< NDPredictionSterile > ana::NDPredictionSterile::LoadFrom ( TDirectory *  dir,
const std::string &  name 
)
static

Definition at line 203 of file NDPredictionSterile.cxx.

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

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

204  {
205  dir = dir->GetDirectory(name.c_str()); // switch to subdir
206  assert(dir);
207 
208  NDExtrap* extrap = ana::LoadFrom<NDExtrap>(dir, "ndextrap").release();
209 
210  delete dir;
211 
212  return std::unique_ptr<NDPredictionSterile>(new NDPredictionSterile(extrap));
213  }
const XML_Char * name
Definition: expat.h:151
TDirectory * dir
Definition: macro.C:5
assert(nhit_max >=nhit_nbins)
Spectrum ana::NDPredictionSterile::Predict ( osc::IOscCalc calc) const
overridevirtual

Implements ana::IPrediction.

Definition at line 33 of file NDPredictionSterile.cxx.

References ana::NDExtrap::AntiNueCCAppComponent(), ana::NDExtrap::AntiNueCCSurvComponent(), ana::NDExtrap::AntiNueNCComponent(), ana::NDExtrap::AntiNumuCCAppComponent(), ana::NDExtrap::AntiNumuCCSurvComponent(), ana::NDExtrap::AntiNumuNCComponent(), calc, osc::DowncastToSterile(), fNDExtrap, noosc, ana::NDExtrap::NueCCAppComponent(), ana::NDExtrap::NueCCSurvComponent(), ana::NDExtrap::NueNCComponent(), ana::NDExtrap::NumuCCAppComponent(), ana::NDExtrap::NumuCCSurvComponent(), ana::NDExtrap::NumuNCComponent(), ana::NDOscillatableSpectrum::Oscillated(), ana::Spectrum::POT(), runNovaSAM::ret, and APDHVSetting::temp.

Referenced by FakeData().

34  {
35 
37  if (noosc) {
38  Spectrum ret = fNDExtrap->NueCCSurvComponent().Oscillated(noosc, +12, +12);
39  ret += fNDExtrap->AntiNueCCSurvComponent() .Oscillated(noosc, -12, -12);
40  Spectrum temp = ((NDOscillatableSpectrum)fNDExtrap->NumuCCAppComponent()).Oscillated(noosc, +12, +14);
41  if (temp.POT() > 0) ret += temp;
42  temp = ((NDOscillatableSpectrum)fNDExtrap->AntiNumuCCAppComponent()).Oscillated(noosc, -12, -14);
43  if (temp.POT() > 0) ret += temp;
44  ret += fNDExtrap->NumuCCSurvComponent() .Oscillated(noosc, +14, +14);
45  ret += fNDExtrap->AntiNumuCCSurvComponent() .Oscillated(noosc, -14, -14);
46  temp = ((NDOscillatableSpectrum)fNDExtrap->NueCCAppComponent()).Oscillated(noosc, +14, +12);
47  if (temp.POT() > 0) ret += temp;
48  temp = ((NDOscillatableSpectrum)fNDExtrap->AntiNueCCAppComponent()).Oscillated(noosc, -14, -12);
49  if (temp.POT() > 0) ret += temp;
50 
51  ret += fNDExtrap->NueNCComponent() .Oscillated(noosc, +12, 0);
52  ret += fNDExtrap->NumuNCComponent() .Oscillated(noosc, +14, 0);
53  ret += fNDExtrap->AntiNueNCComponent() .Oscillated(noosc, -12, 0);
54  ret += fNDExtrap->AntiNumuNCComponent().Oscillated(noosc, -14, 0);
55 
56  return ret;
57  }
58 
60 
61  Spectrum ret = fNDExtrap->NueCCSurvComponent().Oscillated(scalc, +12, +12);
62  ret += fNDExtrap->AntiNueCCSurvComponent() .Oscillated(scalc, -12, -12);
63 
64  Spectrum temp = ((NDOscillatableSpectrum)fNDExtrap->NumuCCAppComponent()).Oscillated(scalc, +12, +14);
65  if (temp.POT() > 0) ret += temp;
66 
67  temp = ((NDOscillatableSpectrum)fNDExtrap->AntiNumuCCAppComponent()).Oscillated(scalc, -12, -14);
68  if (temp.POT() > 0) ret += temp;
69 
70  ret += fNDExtrap->NumuCCSurvComponent() .Oscillated(scalc, +14, +14);
71  ret += fNDExtrap->AntiNumuCCSurvComponent() .Oscillated(scalc, -14, -14);
72 
73  temp = ((NDOscillatableSpectrum)fNDExtrap->NueCCAppComponent()).Oscillated(scalc, +14, +12);
74  if (temp.POT() > 0) ret += temp;
75 
76  temp = ((NDOscillatableSpectrum)fNDExtrap->AntiNueCCAppComponent()).Oscillated(scalc, -14, -12);
77  if (temp.POT() > 0) ret += temp;
78 
79  ret += fNDExtrap->NueNCComponent() .Oscillated(scalc, +12, 0);
80  ret += fNDExtrap->NumuNCComponent() .Oscillated(scalc, +14, 0);
81  ret += fNDExtrap->AntiNueNCComponent() .Oscillated(scalc, -12, 0);
82  ret += fNDExtrap->AntiNumuNCComponent().Oscillated(scalc, -14, 0);
83 
84  return ret;
85  }
Pass neutrinos through unchanged.
Definition: IOscCalc.h:40
NDOscillatableSpectrum AntiNueCCSurvComponent()
Definition: NDExtrap.cxx:80
NDOscillatableSpectrum NueCCSurvComponent()
Definition: NDExtrap.cxx:74
Adapt the PMNS_Sterile calculator to standard interface.
NDOscillatableSpectrum AntiNumuNCComponent()
Definition: NDExtrap.cxx:140
osc::OscCalcDumb calc
Spectrum Oscillated(osc::IOscCalc *calc, int from, int to) const
osc::NoOscillations noosc
Definition: NueSystFuncs.h:44
std::vector< float > Spectrum
Definition: Constants.h:527
NDOscillatableSpectrum NueCCAppComponent()
Definition: NDExtrap.cxx:110
NDOscillatableSpectrum AntiNueNCComponent()
Definition: NDExtrap.cxx:134
NDOscillatableSpectrum AntiNumuCCSurvComponent()
Definition: NDExtrap.cxx:104
const OscCalcSterile * DowncastToSterile(const IOscCalc *calc)
NDOscillatableSpectrum AntiNueCCAppComponent()
Definition: NDExtrap.cxx:116
NDOscillatableSpectrum NumuCCAppComponent()
Definition: NDExtrap.cxx:86
NDOscillatableSpectrum AntiNumuCCAppComponent()
Definition: NDExtrap.cxx:92
NDOscillatableSpectrum NumuCCSurvComponent()
Definition: NDExtrap.cxx:98
NDOscillatableSpectrum NueNCComponent()
Definition: NDExtrap.cxx:122
NDOscillatableSpectrum NumuNCComponent()
Definition: NDExtrap.cxx:128
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::NDPredictionSterile::PredictComponent ( osc::IOscCalc calc,
Flavors::Flavors_t  flav,
Current::Current_t  curr,
Sign::Sign_t  sign 
) const
overridevirtual

Implements ana::IPrediction.

Definition at line 88 of file NDPredictionSterile.cxx.

References ana::NDExtrap::AntiNueCCAppComponent(), ana::NDExtrap::AntiNueCCSurvComponent(), ana::NDExtrap::AntiNueNCComponent(), ana::NDExtrap::AntiNumuCCAppComponent(), ana::NDExtrap::AntiNumuCCSurvComponent(), ana::NDExtrap::AntiNumuNCComponent(), calc, om::cerr, ana::Spectrum::Clear(), osc::DowncastToSterile(), allTimeWatchdog::endl, fNDExtrap, ana::Sign::kAntiNu, ana::Current::kCC, ana::Current::kNC, ana::Sign::kNu, ana::Flavors::kNuEToNuE, ana::Flavors::kNuEToNuMu, ana::Flavors::kNuMuToNuE, ana::Flavors::kNuMuToNuMu, ana::NDExtrap::NCComponent(), noosc, ana::NDExtrap::NueCCAppComponent(), ana::NDExtrap::NueCCSurvComponent(), ana::NDExtrap::NueNCComponent(), ana::NDExtrap::NumuCCAppComponent(), ana::NDExtrap::NumuCCSurvComponent(), ana::NDExtrap::NumuNCComponent(), ana::NDOscillatableSpectrum::Oscillated(), ana::Spectrum::POT(), runNovaSAM::ret, and APDHVSetting::temp.

92  {
93 
95  ret.Clear();
96 
98  if (noosc) {
99  if(curr & Current::kCC){
100  if(flav & Flavors::kNuEToNuE && sign & Sign::kNu) ret += fNDExtrap->NueCCSurvComponent() .Oscillated(noosc, +12, +12);
101  if(flav & Flavors::kNuEToNuE && sign & Sign::kAntiNu) ret += fNDExtrap->AntiNueCCSurvComponent() .Oscillated(noosc, -12, -12);
102 
103  if(flav & Flavors::kNuEToNuMu && sign & Sign::kNu) {
104  Spectrum temp = ((NDOscillatableSpectrum)fNDExtrap->NumuCCAppComponent()).Oscillated(noosc, +12, +14);
105  if (temp.POT() > 0) ret += temp;
106  }
107  if(flav & Flavors::kNuEToNuMu && sign & Sign::kAntiNu) {
108  Spectrum temp = ((NDOscillatableSpectrum)fNDExtrap->AntiNumuCCAppComponent()).Oscillated(noosc, -12, -14);
109  if (temp.POT() > 0) ret += temp;
110  }
111 
112  if(flav & Flavors::kNuMuToNuE && sign & Sign::kNu) {
113  Spectrum temp = ((NDOscillatableSpectrum)fNDExtrap->NueCCAppComponent()).Oscillated(noosc, +14, +12);
114  if (temp.POT() > 0) ret += temp;
115  }
116  if(flav & Flavors::kNuMuToNuE && sign & Sign::kAntiNu) {
117  Spectrum temp = ((NDOscillatableSpectrum)fNDExtrap->AntiNueCCAppComponent()).Oscillated(noosc, -14, -12);
118  if (temp.POT() > 0) ret += temp;
119  }
120 
121  if(flav & Flavors::kNuMuToNuMu && sign & Sign::kNu) ret += fNDExtrap->NumuCCSurvComponent() .Oscillated(noosc, +14, +14);
122  if(flav & Flavors::kNuMuToNuMu && sign & Sign::kAntiNu) ret += fNDExtrap->AntiNumuCCSurvComponent().Oscillated(noosc, -14, -14);
123  }
124 
125  if(curr & Current::kNC) {
126  ret += fNDExtrap->NueNCComponent() .Oscillated(noosc, +12, 0);
127  ret += fNDExtrap->AntiNueNCComponent() .Oscillated(noosc, -12, 0);
128  ret += fNDExtrap->NumuNCComponent() .Oscillated(noosc, +14, 0);
129  ret += fNDExtrap->AntiNumuNCComponent().Oscillated(noosc, -14, 0);
130  }
131  return ret;
132  }
133 
135  if(scalc) {
136  if(curr & Current::kCC){
137 
138  if(flav & Flavors::kNuEToNuE && sign & Sign::kNu) ret += fNDExtrap->NueCCSurvComponent() .Oscillated(scalc, +12, +12);
139  if(flav & Flavors::kNuEToNuE && sign & Sign::kAntiNu) ret += fNDExtrap->AntiNueCCSurvComponent() .Oscillated(scalc, -12, -12);
140 
141  if(flav & Flavors::kNuEToNuMu && sign & Sign::kNu) {
142  Spectrum temp = ((NDOscillatableSpectrum)fNDExtrap->NumuCCAppComponent()).Oscillated(scalc, +12, +14);
143  if (temp.POT() > 0) ret += temp;
144  }
145  if(flav & Flavors::kNuEToNuMu && sign & Sign::kAntiNu) {
146  Spectrum temp = ((NDOscillatableSpectrum)fNDExtrap->AntiNumuCCAppComponent()).Oscillated(scalc, -12, -14);
147  if (temp.POT() > 0) ret += temp;
148  }
149 
150  if(flav & Flavors::kNuMuToNuE && sign & Sign::kNu) {
151  Spectrum temp = ((NDOscillatableSpectrum)fNDExtrap->NueCCAppComponent()).Oscillated(scalc, +14, +12);
152  if (temp.POT() > 0) ret += temp;
153  }
154  if(flav & Flavors::kNuMuToNuE && sign & Sign::kAntiNu) {
155  Spectrum temp = ((NDOscillatableSpectrum)fNDExtrap->AntiNueCCAppComponent()).Oscillated(scalc, -14, -12);
156  if (temp.POT() > 0) ret += temp;
157  }
158 
159  if(flav & Flavors::kNuMuToNuMu && sign & Sign::kNu) ret += fNDExtrap->NumuCCSurvComponent() .Oscillated(scalc, +14, +14);
160  if(flav & Flavors::kNuMuToNuMu && sign & Sign::kAntiNu) ret += fNDExtrap->AntiNumuCCSurvComponent() .Oscillated(scalc, -14, -14);
161  }
162 
163  if(curr & Current::kNC) {
164 
165  if(flav & Flavors::kNuEToNuE && sign & Sign::kNu) ret += fNDExtrap->NueNCComponent() .Oscillated(scalc, +12, 0);
166  if(flav & Flavors::kNuEToNuE && sign & Sign::kAntiNu) ret += fNDExtrap->AntiNueNCComponent() .Oscillated(scalc, -12, 0);
167 
168  if(flav & Flavors::kNuMuToNuMu && sign & Sign::kNu) ret += fNDExtrap->NumuNCComponent() .Oscillated(scalc, +14, 0);
169  if(flav & Flavors::kNuMuToNuMu && sign & Sign::kAntiNu) ret += fNDExtrap->AntiNumuNCComponent().Oscillated(scalc, -14, 0);
170  }
171  }
172  else {
173  std::cerr << "NDPredExtrap: Input calculator was not of type OscCalcSterile." << std::endl;
174  }
175 
176  return ret;
177  }
Pass neutrinos through unchanged.
Definition: IOscCalc.h:40
NDOscillatableSpectrum AntiNueCCSurvComponent()
Definition: NDExtrap.cxx:80
NDOscillatableSpectrum NueCCSurvComponent()
Definition: NDExtrap.cxx:74
Antineutrinos-only.
Definition: IPrediction.h:50
(&#39; appearance&#39;)
Definition: IPrediction.h:18
(&#39;beam &#39;)
Definition: IPrediction.h:15
Adapt the PMNS_Sterile calculator to standard interface.
OStream cerr
Definition: OStream.cxx:7
void Clear()
Definition: Spectrum.cxx:433
NDOscillatableSpectrum AntiNumuNCComponent()
Definition: NDExtrap.cxx:140
Spectrum NCComponent()
Definition: NDExtrap.cxx:68
osc::OscCalcDumb calc
Spectrum Oscillated(osc::IOscCalc *calc, int from, int to) const
Charged-current interactions.
Definition: IPrediction.h:39
osc::NoOscillations noosc
Definition: NueSystFuncs.h:44
std::vector< float > Spectrum
Definition: Constants.h:527
NDOscillatableSpectrum NueCCAppComponent()
Definition: NDExtrap.cxx:110
NDOscillatableSpectrum AntiNueNCComponent()
Definition: NDExtrap.cxx:134
NDOscillatableSpectrum AntiNumuCCSurvComponent()
Definition: NDExtrap.cxx:104
Neutrinos-only.
Definition: IPrediction.h:49
const OscCalcSterile * DowncastToSterile(const IOscCalc *calc)
(&#39; survival&#39;)
Definition: IPrediction.h:19
NDOscillatableSpectrum AntiNueCCAppComponent()
Definition: NDExtrap.cxx:116
Neutral-current interactions.
Definition: IPrediction.h:40
NDOscillatableSpectrum NumuCCAppComponent()
Definition: NDExtrap.cxx:86
NDOscillatableSpectrum AntiNumuCCAppComponent()
Definition: NDExtrap.cxx:92
NDOscillatableSpectrum NumuCCSurvComponent()
Definition: NDExtrap.cxx:98
(&#39; appearance&#39;)
Definition: IPrediction.h:16
NDOscillatableSpectrum NueNCComponent()
Definition: NDExtrap.cxx:122
NDOscillatableSpectrum NumuNCComponent()
Definition: NDExtrap.cxx:128
def sign(x)
Definition: canMan.py:197
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::NDPredictionSterile::SaveTo ( TDirectory *  dir,
const std::string &  name 
) const
overridevirtual

Reimplemented from ana::IPrediction.

Definition at line 186 of file NDPredictionSterile.cxx.

References dir, fNDExtrap, ana::NDExtrap::SaveTo(), and tmp.

Referenced by MakeNus18CovarSim().

187  {
188  TDirectory* tmp = gDirectory;
189 
190  dir = dir->mkdir(name.c_str()); // switch to subdir
191  dir->cd();
192 
193  TObjString("NDPredictionSterile").Write("type");
194  fNDExtrap->SaveTo(dir, "ndextrap");
195 
196  dir->Write();
197  delete dir;
198 
199  tmp->cd();
200  }
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: NDExtrap.cxx:172
TDirectory * dir
Definition: macro.C:5

Member Data Documentation

NDExtrap* ana::NDPredictionSterile::fNDExtrap
protected

Definition at line 46 of file NDPredictionSterile.h.

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


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