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

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

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-05-06/NuXAna/Prediction/NDPredictionNoOsc.h"

Inheritance diagram for ana::NDPredictionNoOsc:
ana::IPrediction

Public Member Functions

 NDPredictionNoOsc (std::vector< std::unique_ptr< Spectrum >> &spectra)
 
virtual ~NDPredictionNoOsc ()
 
 NDPredictionNoOsc (const NDPredictionNoOsc &)=delete
 
NDPredictionNoOscoperator= (const NDPredictionNoOsc &)=delete
 
 NDPredictionNoOsc (NDPredictionNoOsc &&)=default
 
NDPredictionNoOscoperator= (NDPredictionNoOsc &&)=default
 
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
 
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 NDPredictionNoOsc NDPredictionNoOsc_c (Loaders &loaders, const HistAxis &axis, const Cut &selection, const SystShifts &shiftMC=kNoShift, const Var &weight=kUnweighted)
 
static NDPredictionNoOsc NDPredictionNoOsc_c (SpectrumLoaderBase &nonswap, const HistAxis &axis, const Cut &selection, const SystShifts &shiftMC=kNoShift, const Var &weight=kUnweighted)
 
static std::unique_ptr< NDPredictionNoOscLoadFrom (TDirectory *dir, const std::string &name)
 

Public Attributes

double fPOT
 

Protected Member Functions

 NDPredictionNoOsc ()
 
 NDPredictionNoOsc (SpectrumLoaderBase &nonswap, const HistAxis &axis, const Cut &selection, const SystShifts &shiftMC=kNoShift, const Var &weight=kUnweighted)
 

Protected Attributes

std::unique_ptr< SpectrumfSpecCCNuMu
 
std::unique_ptr< SpectrumfSpecCCNuE
 
std::unique_ptr< SpectrumfSpecCCAntiNuMu
 
std::unique_ptr< SpectrumfSpecCCAntiNuE
 
std::unique_ptr< SpectrumfSpecNCNuMu
 
std::unique_ptr< SpectrumfSpecNCNuE
 
std::unique_ptr< SpectrumfSpecNCAntiNuMu
 
std::unique_ptr< SpectrumfSpecNCAntiNuE
 
std::unique_ptr< SpectrumfNCCompSpec
 
SpectrumLoaderBasefSpecLoad
 

Detailed Description

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

Definition at line 17 of file NDPredictionNoOsc.h.

Constructor & Destructor Documentation

ana::NDPredictionNoOsc::NDPredictionNoOsc ( std::vector< std::unique_ptr< Spectrum >> &  spectra)
virtual ana::NDPredictionNoOsc::~NDPredictionNoOsc ( )
inlinevirtual
ana::NDPredictionNoOsc::NDPredictionNoOsc ( const NDPredictionNoOsc )
delete
ana::NDPredictionNoOsc::NDPredictionNoOsc ( NDPredictionNoOsc &&  )
default
ana::NDPredictionNoOsc::NDPredictionNoOsc ( )
inlineprotected

Definition at line 68 of file NDPredictionNoOsc.h.

References fSpecCCNuMu.

Referenced by NDPredictionNoOsc_c(), and ~NDPredictionNoOsc().

68 {};
ana::NDPredictionNoOsc::NDPredictionNoOsc ( SpectrumLoaderBase nonswap,
const HistAxis axis,
const Cut selection,
const SystShifts shiftMC = kNoShift,
const Var weight = kUnweighted 
)
protected

Definition at line 135 of file NDPredictionNoOsc.cxx.

141  : fPOT(0),
142  fSpecCCNuMu( new Spectrum(nonswap, axis, selection && kIsNumuCC && !kIsAntiNu, shiftMC, weight)),
143  fSpecCCNuE(new Spectrum(nonswap, axis, selection && kIsBeamNue && !kIsAntiNu, shiftMC, weight)),
144  fSpecCCAntiNuMu( new Spectrum(nonswap, axis, selection && kIsNumuCC && kIsAntiNu, shiftMC, weight)),
145  fSpecCCAntiNuE(new Spectrum(nonswap, axis, selection && kIsBeamNue && kIsAntiNu, shiftMC, weight)),
146  fSpecNCNuMu( new Spectrum(nonswap, axis, selection && kIsNumu && !kIsAntiNu && kIsNC, shiftMC, weight)),
147  fSpecNCNuE( new Spectrum(nonswap, axis, selection && kIsNue && !kIsAntiNu && kIsNC, shiftMC, weight)),
148  fSpecNCAntiNuMu( new Spectrum(nonswap, axis, selection && kIsNumu && kIsAntiNu && kIsNC , shiftMC, weight)),
149  fSpecNCAntiNuE( new Spectrum(nonswap, axis, selection && kIsNue && kIsAntiNu && kIsNC , shiftMC, weight)),
150  fNCCompSpec( new Spectrum(nonswap, axis, selection && kIsNC, shiftMC, weight)),
151  fSpecLoad(&nonswap)
152 
153  {
154  }
SpectrumLoaderBase * fSpecLoad
std::unique_ptr< Spectrum > fSpecNCAntiNuE
const Cut kIsNumuCC(CCFlavSel(14, 14))
Select CC .
std::unique_ptr< Spectrum > fSpecCCAntiNuE
std::unique_ptr< Spectrum > fSpecNCAntiNuMu
const Var weight
const Cut kIsNumu([](const caf::SRProxy *sr){return(sr->mc.nnu==1 &&abs(sr->mc.nu[0].pdg)==14);})
Definition: TruthCuts.h:10
std::vector< double > Spectrum
Definition: Constants.h:746
const Cut kIsAntiNu([](const caf::SRProxy *sr){if(sr->mc.nnu==0) return false;assert(sr->mc.nnu==1);return sr->mc.nu[0].pdg< 0;})
Is this truly an antineutrino?
Definition: TruthCuts.h:53
const Cut kIsBeamNue(CCFlavSel(12, 12))
Select CC .
std::unique_ptr< Spectrum > fNCCompSpec
std::unique_ptr< Spectrum > fSpecCCNuE
std::unique_ptr< Spectrum > fSpecNCNuMu
std::unique_ptr< Spectrum > fSpecNCNuE
std::unique_ptr< Spectrum > fSpecCCAntiNuMu
const Cut kIsNC([](const caf::SRProxy *sr){if(sr->mc.nnu==0) return false;assert(sr->mc.nnu==1);return!sr->mc.nu[0].iscc;})
Is this a Neutral Current event?
Definition: TruthCuts.h:8
const Cut kIsNue([](const caf::SRProxy *sr){return(sr->mc.nnu==1 &&abs(sr->mc.nu[0].pdg)==12);})
Definition: TruthCuts.h:9
std::unique_ptr< Spectrum > fSpecCCNuMu

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 105 of file IPrediction.cxx.

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

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

106  {
107  std::cout << "WARNING! ComponentCC is unimplemented in IPrediction" << std::endl; abort();
108  }
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 115 of file IPrediction.cxx.

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

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

116  {
117  std::cout << "WARNING! ComponentNC is unimplemented in IPrediction" << std::endl; abort();
118  }
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 120 of file IPrediction.cxx.

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

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

121  {
122  std::cout << "WARNING! ComponentNCAnti is unimplemented in IPrediction" << std::endl; abort();
123  }
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 110 of file IPrediction.cxx.

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

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

111  {
112  std::cout << "WARNING! ComponentNCTotal is unimplemented in IPrediction" << std::endl; abort();
113  }
OStream cout
Definition: OStream.cxx:6
Spectrum ana::NDPredictionNoOsc::FakeData ( osc::IOscCalc calc,
double  POT 
)
virtual

Definition at line 129 of file NDPredictionNoOsc.cxx.

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

Referenced by ~NDPredictionNoOsc().

130  {
131  return Predict(calc).FakeData(POT);
132  }
Spectrum FakeData(double pot) const
Synonymous with AsimovData(). Retained for compatibility.
Definition: Spectrum.cxx:377
std::vector< double > POT
virtual Spectrum Predict(osc::IOscCalc *calc) const override
unique_ptr< NDPredictionNoOsc > ana::NDPredictionNoOsc::LoadFrom ( TDirectory *  dir,
const std::string name 
)
static

Definition at line 178 of file NDPredictionNoOsc.cxx.

References ana::assert(), and getGoodRuns4SAM::tag.

Referenced by ~NDPredictionNoOsc().

179  {
180 
181  dir = dir->GetDirectory(name.c_str()); // switch to subdir
182  TObjString* tag = (TObjString*)dir->Get("type");
183  assert(tag);
184  assert(tag->GetString() == "NDPredictionNoOsc");
185 
186  vector<unique_ptr<Spectrum>> spectra;
187 
188  for (string current : { "cc", "nc" }) {
189  for (string flav : { "numu", "nue", "anti_numu", "anti_nue" }) {
190  string name = "spec_" + current + "_" + flav;
191  TDirectory* specDir = dir->GetDirectory(name.c_str());
192  spectra.push_back(move(ana::LoadFrom<Spectrum>(specDir, name)));
193  }
194  }
195 
196  return make_unique<NDPredictionNoOsc>(spectra);
197  }
const XML_Char * name
Definition: expat.h:151
TDirectory * dir
Definition: macro.C:5
assert(nhit_max >=nhit_nbins)
NDPredictionNoOsc ana::NDPredictionNoOsc::NDPredictionNoOsc_c ( Loaders loaders,
const HistAxis axis,
const Cut selection,
const SystShifts shiftMC = kNoShift,
const Var weight = kUnweighted 
)
static

Definition at line 32 of file NDPredictionNoOsc.cxx.

References allInOneTrainingPlots::axis, ana::Loaders::GetLoader(), ana::kBeam, ana::Loaders::kMC, caf::kNEARDET, ana::Loaders::kNonSwap, and ana::weight.

39  {
41  loaders.GetLoader(
43  //loaders.GetLoader(
44  // caf::kNEARDET, Loaders::kMC, ana::kBeam, Loaders::kFluxSwap),
45  axis,
46  selection,
47  shiftMC,
48  weight
49  );
50  }
Near Detector underground.
Definition: SREnums.h:10
const Var weight
static NDPredictionNoOsc NDPredictionNoOsc_c(Loaders &loaders, const HistAxis &axis, const Cut &selection, const SystShifts &shiftMC=kNoShift, const Var &weight=kUnweighted)
std::vector< Loaders * > loaders
Definition: syst_header.h:386
NDPredictionNoOsc ana::NDPredictionNoOsc::NDPredictionNoOsc_c ( SpectrumLoaderBase nonswap,
const HistAxis axis,
const Cut selection,
const SystShifts shiftMC = kNoShift,
const Var weight = kUnweighted 
)
static

Definition at line 52 of file NDPredictionNoOsc.cxx.

References fSpecCCAntiNuE, fSpecCCAntiNuMu, fSpecCCNuE, fSpecCCNuMu, fSpecNCAntiNuE, fSpecNCAntiNuMu, fSpecNCNuE, fSpecNCNuMu, and NDPredictionNoOsc().

59  {
60  NDPredictionNoOsc extrap(nonswap, axis, selection, shiftMC, weight);
61  return extrap;
62  }
const Var weight
NDPredictionNoOsc& ana::NDPredictionNoOsc::operator= ( const NDPredictionNoOsc )
delete

Referenced by ~NDPredictionNoOsc().

NDPredictionNoOsc& ana::NDPredictionNoOsc::operator= ( NDPredictionNoOsc &&  )
default
Spectrum ana::NDPredictionNoOsc::Predict ( osc::IOscCalc calc) const
overridevirtual

Implements ana::IPrediction.

Definition at line 79 of file NDPredictionNoOsc.cxx.

References fSpecCCAntiNuE, fSpecCCAntiNuMu, fSpecCCNuE, fSpecCCNuMu, fSpecNCAntiNuE, fSpecNCAntiNuMu, fSpecNCNuE, fSpecNCNuMu, and runNovaSAM::ret.

Referenced by FakeData(), and ~NDPredictionNoOsc().

80  {
81 
82  Spectrum ret = *(fSpecCCNuMu.get());
83 
84  // Adding up the other components
85  ret += *(fSpecCCNuE.get());
86  ret += *(fSpecCCAntiNuMu.get());
87  ret += *(fSpecCCAntiNuE.get());
88 
89  ret += *(fSpecNCNuMu.get());
90  ret += *(fSpecNCNuE.get());
91  ret += *(fSpecNCAntiNuMu.get());
92  ret += *(fSpecNCAntiNuE.get());
93 
94  return ret;
95  }
std::unique_ptr< Spectrum > fSpecNCAntiNuE
std::unique_ptr< Spectrum > fSpecCCAntiNuE
std::unique_ptr< Spectrum > fSpecNCAntiNuMu
std::vector< double > Spectrum
Definition: Constants.h:746
std::unique_ptr< Spectrum > fSpecCCNuE
std::unique_ptr< Spectrum > fSpecNCNuMu
std::unique_ptr< Spectrum > fSpecNCNuE
std::unique_ptr< Spectrum > fSpecCCAntiNuMu
std::unique_ptr< Spectrum > fSpecCCNuMu
Spectrum ana::IPrediction::Predict ( osc::IOscCalcStan calc) const
virtualinherited

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

Definition at line 43 of file IPrediction.cxx.

References ana::assert().

44  {
45  assert(0 && "This Prediction hasn't implemented a Stan-aware Predict()!");
46  }
assert(nhit_max >=nhit_nbins)
Spectrum ana::NDPredictionNoOsc::PredictComponent ( osc::IOscCalc calc,
Flavors::Flavors_t  flav,
Current::Current_t  curr,
Sign::Sign_t  sign 
) const
overridevirtual

Implements ana::IPrediction.

Definition at line 98 of file NDPredictionNoOsc.cxx.

References ana::Spectrum::Clear(), fSpecCCAntiNuE, fSpecCCAntiNuMu, fSpecCCNuE, fSpecCCNuMu, fSpecNCAntiNuE, fSpecNCAntiNuMu, fSpecNCNuE, fSpecNCNuMu, ana::Sign::kAntiNu, ana::Current::kCC, ana::Current::kNC, ana::Sign::kNu, ana::Flavors::kNuEToNuE, ana::Flavors::kNuMuToNuMu, and runNovaSAM::ret.

Referenced by ~NDPredictionNoOsc().

102  {
103 
104  Spectrum ret = *(fSpecCCNuMu.get());
105  ret.Clear();
106 
107  // Here we also add up predictions - BUT we should check whether the
108  // user requested them first!
109  if(curr & Current::kCC) {
110  if(flav & Flavors::kNuEToNuE && sign & Sign::kNu) ret += *(fSpecCCNuE.get());
111  if(flav & Flavors::kNuEToNuE && sign & Sign::kAntiNu) ret += *(fSpecCCAntiNuE.get());
112 
113  if(flav & Flavors::kNuMuToNuMu && sign & Sign::kNu) ret += *(fSpecCCNuMu.get());
114  if(flav & Flavors::kNuMuToNuMu && sign & Sign::kAntiNu) ret += *(fSpecCCAntiNuMu.get());
115 
116  }
117 
118  if(curr & Current::kNC) {
119  ret += *(fSpecNCNuMu.get());
120  ret += *(fSpecNCAntiNuMu.get());
121  ret += *(fSpecNCNuE.get());
122  ret += *(fSpecNCAntiNuE.get());
123  }
124 
125  return ret;
126  }
std::unique_ptr< Spectrum > fSpecNCAntiNuE
std::unique_ptr< Spectrum > fSpecCCAntiNuE
std::unique_ptr< Spectrum > fSpecNCAntiNuMu
Antineutrinos-only.
Definition: IPrediction.h:50
(&#39;beam &#39;)
Definition: IPrediction.h:15
std::vector< double > Spectrum
Definition: Constants.h:746
std::unique_ptr< Spectrum > fSpecCCNuE
std::unique_ptr< Spectrum > fSpecNCNuMu
Charged-current interactions.
Definition: IPrediction.h:39
std::unique_ptr< Spectrum > fSpecNCNuE
std::unique_ptr< Spectrum > fSpecCCAntiNuMu
Neutrinos-only.
Definition: IPrediction.h:49
(&#39; survival&#39;)
Definition: IPrediction.h:19
std::unique_ptr< Spectrum > fSpecCCNuMu
Neutral-current interactions.
Definition: IPrediction.h:40
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::PredictionNoOsc, ana::PredictionExtendToPeripheral, ana::PredictionExtrapSum, ana::PredictionAddRock, and ana::PredictionExtrap.

Definition at line 70 of file IPrediction.cxx.

References ana::assert().

74  {
75  assert(0 && "This Prediction hasn't implemented a Stan-aware PredictComponent()!");
76  }
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 79 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().

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 PredictComponent(calc, flav, curr, sign);
89  }
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 93 of file IPrediction.cxx.

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

98  {
99  assert(syst.IsNominal() && "This Prediction doesn't support PredictSyst(). Did you just mean Predict()?");
100 
101  // Default implementation: no treatment of systematics
102  return PredictComponent(calc, flav, curr, sign);
103  }
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
Spectrum ana::IPrediction::PredictSyst ( osc::IOscCalcStan calc,
const SystShifts syst 
) const
virtualinherited

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

Definition at line 59 of file IPrediction.cxx.

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

61  {
62  assert(syst.IsNominal() && "This Prediction doesn't support PredictSyst(). Did you just mean Predict()?");
63 
64  // Default implementation: no treatment of systematics
65  return Predict(calc);
66  }
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 33 of file IPrediction.cxx.

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

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

34  {
35  // Default implementation
37  return Predict(&noosc);
38  }
Pass neutrinos through unchanged.
Definition: IOscCalc.h:45
virtual Spectrum Predict(osc::IOscCalc *calc) const =0
osc::NoOscillations noosc
Definition: NueSystFuncs.h:44
void ana::NDPredictionNoOsc::SaveTo ( TDirectory *  dir,
const std::string name 
) const
overridevirtual

Reimplemented from ana::IPrediction.

Definition at line 157 of file NDPredictionNoOsc.cxx.

References fSpecCCAntiNuE, fSpecCCAntiNuMu, fSpecCCNuE, fSpecCCNuMu, fSpecNCAntiNuE, fSpecNCAntiNuMu, fSpecNCNuE, fSpecNCNuMu, and tmp.

Referenced by ~NDPredictionNoOsc().

158  {
159  TDirectory* tmp = gDirectory;
160  dir = dir->mkdir(name.c_str()); // switch to subdir
161  dir->cd();
162  TObjString("NDPredictionNoOsc").Write("type");
163 
164  fSpecCCNuMu->SaveTo(dir->mkdir("spec_cc_numu"), "spec_cc_numu");
165  fSpecCCNuE->SaveTo(dir->mkdir("spec_cc_nue"), "spec_cc_nue");
166  fSpecCCAntiNuMu->SaveTo(dir->mkdir("spec_cc_anti_numu"), "spec_cc_anti_numu");
167  fSpecCCAntiNuE->SaveTo(dir->mkdir("spec_cc_anti_nue"), "spec_cc_anti_nue");
168 
169  fSpecNCNuMu->SaveTo(dir->mkdir("spec_nc_numu"), "spec_nc_numu");
170  fSpecNCNuE->SaveTo(dir->mkdir("spec_nc_nue"), "spec_nc_nue");
171  fSpecNCAntiNuMu->SaveTo(dir->mkdir("spec_nc_anti_numu"), "spec_nc_nue");
172  fSpecNCAntiNuE->SaveTo(dir->mkdir("spec_nc_anti_nue"), "spec_nc_anti_nue");
173 
174  tmp->cd();
175  }
const XML_Char * name
Definition: expat.h:151
std::unique_ptr< Spectrum > fSpecNCAntiNuE
std::unique_ptr< Spectrum > fSpecCCAntiNuE
std::unique_ptr< Spectrum > fSpecNCAntiNuMu
Float_t tmp
Definition: plot.C:36
std::unique_ptr< Spectrum > fSpecCCNuE
std::unique_ptr< Spectrum > fSpecNCNuMu
std::unique_ptr< Spectrum > fSpecNCNuE
std::unique_ptr< Spectrum > fSpecCCAntiNuMu
std::unique_ptr< Spectrum > fSpecCCNuMu
TDirectory * dir
Definition: macro.C:5

Member Data Documentation

std::unique_ptr<Spectrum> ana::NDPredictionNoOsc::fNCCompSpec
protected

Definition at line 79 of file NDPredictionNoOsc.h.

double ana::NDPredictionNoOsc::fPOT

Definition at line 63 of file NDPredictionNoOsc.h.

std::unique_ptr<Spectrum> ana::NDPredictionNoOsc::fSpecCCAntiNuE
protected

Definition at line 73 of file NDPredictionNoOsc.h.

Referenced by NDPredictionNoOsc_c(), Predict(), PredictComponent(), and SaveTo().

std::unique_ptr<Spectrum> ana::NDPredictionNoOsc::fSpecCCAntiNuMu
protected

Definition at line 72 of file NDPredictionNoOsc.h.

Referenced by NDPredictionNoOsc_c(), Predict(), PredictComponent(), and SaveTo().

std::unique_ptr<Spectrum> ana::NDPredictionNoOsc::fSpecCCNuE
protected

Definition at line 71 of file NDPredictionNoOsc.h.

Referenced by NDPredictionNoOsc_c(), Predict(), PredictComponent(), and SaveTo().

std::unique_ptr<Spectrum> ana::NDPredictionNoOsc::fSpecCCNuMu
protected
SpectrumLoaderBase* ana::NDPredictionNoOsc::fSpecLoad
protected

Definition at line 96 of file NDPredictionNoOsc.h.

std::unique_ptr<Spectrum> ana::NDPredictionNoOsc::fSpecNCAntiNuE
protected

Definition at line 78 of file NDPredictionNoOsc.h.

Referenced by NDPredictionNoOsc_c(), Predict(), PredictComponent(), and SaveTo().

std::unique_ptr<Spectrum> ana::NDPredictionNoOsc::fSpecNCAntiNuMu
protected

Definition at line 77 of file NDPredictionNoOsc.h.

Referenced by NDPredictionNoOsc_c(), Predict(), PredictComponent(), and SaveTo().

std::unique_ptr<Spectrum> ana::NDPredictionNoOsc::fSpecNCNuE
protected

Definition at line 76 of file NDPredictionNoOsc.h.

Referenced by NDPredictionNoOsc_c(), Predict(), PredictComponent(), and SaveTo().

std::unique_ptr<Spectrum> ana::NDPredictionNoOsc::fSpecNCNuMu
protected

Definition at line 75 of file NDPredictionNoOsc.h.

Referenced by NDPredictionNoOsc_c(), Predict(), PredictComponent(), and SaveTo().


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