Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
ana::PredictionScaleComp Class Reference

Prediction broken down into arbitrary components whose scales can be varied independently. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-03/CAFAna/Prediction/PredictionScaleComp.h"

Inheritance diagram for ana::PredictionScaleComp:
ana::IPrediction

Public Member Functions

 PredictionScaleComp (SpectrumLoaderBase &loader, const HistAxis &axis, Cut cut, std::vector< Cut > truthcuts, const SystShifts &shift=kNoShift, const Var &wei=kUnweighted)
 
 PredictionScaleComp (SpectrumLoaderBase &loader, const HistAxis &axis1, const HistAxis &axis2, Cut cut, std::vector< Cut > truthcuts, const SystShifts &shift=kNoShift, const Var &wei=kUnweighted)
 Constructor to take two HistAxis's to weight 2D spectra. More...
 
 PredictionScaleComp (SpectrumLoaderBase &loader, const HistAxis &axis, Cut cut, std::vector< std::pair< Cut, bool > > truthcuts, const SystShifts &shift=kNoShift, const Var &wei=kUnweighted)
 
virtual ~PredictionScaleComp ()
 
Spectrum Predict (osc::IOscCalc *osc) const override
 
Spectrum PredictSyst (osc::IOscCalc *osc, const SystShifts &syst) const override
 
Spectrum PredictComponent (osc::IOscCalc *calc, Flavors::Flavors_t flav, Current::Current_t curr, Sign::Sign_t sign) const override
 
std::vector< const ISyst * > GetSysts () const
 
std::vector< Spectrum * > GetSpectra () const
 
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::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< PredictionScaleCompLoadFrom (TDirectory *dir, const std::string &name)
 

Private Member Functions

 PredictionScaleComp (Spectrum *complement, std::vector< Spectrum * > spectra, std::vector< bool > isfloated)
 

Private Attributes

std::vector< const ISyst * > fSysts
 
std::vector< Spectrum * > fSpectra
 
Cut fComplementCut
 
SpectrumfComplement
 
std::vector< bool > fIsComponentFloated
 

Detailed Description

Prediction broken down into arbitrary components whose scales can be varied independently.

Definition at line 12 of file PredictionScaleComp.h.

Constructor & Destructor Documentation

ana::PredictionScaleComp::PredictionScaleComp ( SpectrumLoaderBase loader,
const HistAxis axis,
Cut  cut,
std::vector< Cut truthcuts,
const SystShifts shift = kNoShift,
const Var wei = kUnweighted 
)
Parameters
cutCut applied to all histograms
truthcutsPrediction will be broken down into N components following these cuts.

Definition at line 67 of file PredictionScaleComp.cxx.

References ana::assert(), fComplement, fComplementCut, fIsComponentFloated, genie::utils::style::Format(), fSpectra, fSysts, MECModelEnuComparisons::i, makeTrainCVSamples::int, and string.

Referenced by GetSpectra(), and LoadFrom().

74  {
75  const std::string uniq = TString::Format("%p", (void*)this).Data();
76 
77  assert(truthcuts.size()>0 && "Please give at least one truth selection.");
78  for (int i = 0; i < int(truthcuts.size()); i++){
79  fSpectra.push_back(new Spectrum(loader, axis,
80  cut && truthcuts[i], shift, wei));
81  fSysts.push_back(new DummyScaleCompSyst(uniq, i));
82  fComplementCut = fComplementCut && !truthcuts[i];
83  fIsComponentFloated.push_back(true);
84  }
85 
86  // The idea is that if truthcuts are exhaustive, this Spectrum should wind
87  // up empty
89  cut && fComplementCut, shift, wei);
90  }
std::vector< Spectrum * > fSpectra
std::vector< const ISyst * > fSysts
loader
Definition: demo0.py:10
std::vector< float > Spectrum
Definition: Constants.h:610
const Cut cut
Definition: exporter_fd.C:30
assert(nhit_max >=nhit_nbins)
void Format(TGraph *gr, int lcol, int lsty, int lwid, int mcol, int msty, double msiz)
Definition: Style.cxx:154
std::vector< bool > fIsComponentFloated
const Cut kNoCut
The simplest possible cut: pass everything, used as a default.
Definition: Cut.h:109
enum BeamMode string
ana::PredictionScaleComp::PredictionScaleComp ( SpectrumLoaderBase loader,
const HistAxis axis1,
const HistAxis axis2,
Cut  cut,
std::vector< Cut truthcuts,
const SystShifts shift = kNoShift,
const Var wei = kUnweighted 
)

Constructor to take two HistAxis's to weight 2D spectra.

Definition at line 94 of file PredictionScaleComp.cxx.

References ana::assert(), fComplement, fComplementCut, fIsComponentFloated, genie::utils::style::Format(), fSpectra, fSysts, MECModelEnuComparisons::i, makeTrainCVSamples::int, and string.

102  {
103  const std::string uniq = TString::Format("%p", (void*)this).Data();
104 
105  assert(truthcuts.size()>0 && "Please give at least one truth selection.");
106  for (int i = 0; i < int(truthcuts.size()); i++){
107  fSpectra.push_back(new Spectrum(loader, axis1, axis2,
108  cut && truthcuts[i], shift, wei));
109  fSysts.push_back(new DummyScaleCompSyst(uniq, i));
110  fComplementCut = fComplementCut && !truthcuts[i];
111  fIsComponentFloated.push_back(true);
112  }
113 
114  // The idea is that if truthcuts are exhaustive, this Spectrum should wind
115  // up empty
116  fComplement = new Spectrum(loader, axis1, axis2,
117  cut && fComplementCut, shift, wei);
118  }
std::vector< Spectrum * > fSpectra
std::vector< const ISyst * > fSysts
loader
Definition: demo0.py:10
std::vector< float > Spectrum
Definition: Constants.h:610
const Cut cut
Definition: exporter_fd.C:30
assert(nhit_max >=nhit_nbins)
void Format(TGraph *gr, int lcol, int lsty, int lwid, int mcol, int msty, double msiz)
Definition: Style.cxx:154
std::vector< bool > fIsComponentFloated
const Cut kNoCut
The simplest possible cut: pass everything, used as a default.
Definition: Cut.h:109
enum BeamMode string
ana::PredictionScaleComp::PredictionScaleComp ( SpectrumLoaderBase loader,
const HistAxis axis,
Cut  cut,
std::vector< std::pair< Cut, bool > >  truthcuts,
const SystShifts shift = kNoShift,
const Var wei = kUnweighted 
)

Definition at line 39 of file PredictionScaleComp.cxx.

References ana::assert(), fComplement, fComplementCut, fIsComponentFloated, genie::utils::style::Format(), fSpectra, fSysts, MECModelEnuComparisons::i, makeTrainCVSamples::int, moon_position_table_new3::second, and string.

46  {
47  const std::string uniq = TString::Format("%p", (void*)this).Data();
48 
49  assert(truthcuts.size()>0 && "Please give at least one truth selection.");
50  for (int i = 0; i < int(truthcuts.size()); i++){
51  fSpectra.push_back(new Spectrum(loader, axis,
52  cut && truthcuts[i].first, shift, wei));
53  fSysts.push_back(new DummyScaleCompSyst(uniq, i));
54  fComplementCut = fComplementCut && !truthcuts[i].first;
55  fIsComponentFloated.push_back(truthcuts[i].second);
56  }
57 
58  // The idea is that if truthcuts are exhaustive, this Spectrum should wind
59  // up empty
61  cut && fComplementCut, shift, wei);
62 
63  }
std::vector< Spectrum * > fSpectra
std::vector< const ISyst * > fSysts
loader
Definition: demo0.py:10
std::vector< float > Spectrum
Definition: Constants.h:610
const Cut cut
Definition: exporter_fd.C:30
assert(nhit_max >=nhit_nbins)
void Format(TGraph *gr, int lcol, int lsty, int lwid, int mcol, int msty, double msiz)
Definition: Style.cxx:154
std::vector< bool > fIsComponentFloated
const Cut kNoCut
The simplest possible cut: pass everything, used as a default.
Definition: Cut.h:109
enum BeamMode string
virtual ana::PredictionScaleComp::~PredictionScaleComp ( )
inlinevirtual
ana::PredictionScaleComp::PredictionScaleComp ( Spectrum complement,
std::vector< Spectrum * >  spectra,
std::vector< bool >  isfloated 
)
private

Definition at line 121 of file PredictionScaleComp.cxx.

References fIsComponentFloated, genie::utils::style::Format(), fSysts, MECModelEnuComparisons::i, makeTrainCVSamples::int, and string.

125  : fSpectra(spectra),
127  fComplement(complement)
128  {
129  const std::string uniq = TString::Format("%p", (void*)this).Data();
130  fIsComponentFloated=isfloated;
131  for (int i = 0; i < int(spectra.size()); i++)
132  {
133  fSysts.push_back(new DummyScaleCompSyst(uniq, i));
134  }
135  }
std::vector< Spectrum * > fSpectra
std::vector< const ISyst * > fSysts
void Format(TGraph *gr, int lcol, int lsty, int lwid, int mcol, int msty, double msiz)
Definition: Style.cxx:154
std::vector< bool > fIsComponentFloated
const Cut kNoCut
The simplest possible cut: pass everything, used as a default.
Definition: Cut.h:109
enum BeamMode string

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
std::vector<Spectrum*> ana::PredictionScaleComp::GetSpectra ( ) const
inline

Definition at line 64 of file PredictionScaleComp.h.

References dir, fSpectra, LoadFrom(), PredictionScaleComp(), SaveTo(), and string.

Referenced by RunFitter().

64 { return fSpectra; }
std::vector< Spectrum * > fSpectra
std::vector<const ISyst*> ana::PredictionScaleComp::GetSysts ( ) const
inline

Use these systematics in PredictSyst to vary the corresponding components

Definition at line 62 of file PredictionScaleComp.h.

References fSysts.

Referenced by RunFitter().

62 { return fSysts; }
std::vector< const ISyst * > fSysts
std::unique_ptr< PredictionScaleComp > ana::PredictionScaleComp::LoadFrom ( TDirectory *  dir,
const std::string name 
)
static

Definition at line 194 of file PredictionScaleComp.cxx.

References ana::assert(), dir, MECModelEnuComparisons::i, PredictionScaleComp(), runNovaSAM::release, and art::to_string().

Referenced by GetSpectra().

195  {
196  dir = dir->GetDirectory(name.c_str()); // switch to subdir
197  assert(dir);
198 
199  Spectrum* complement = ana::LoadFrom<Spectrum>
200  (dir, "Complement").release();
201 
202  // Get number of spectra we expect
203  TVectorD* nspectra = (TVectorD*)dir->Get("NSpectra");
204  assert(nspectra->GetNoElements()==1 && "Vector of N MC Bkgds is not of size 1.");
205  // Load spectra
206  std::vector<Spectrum*> spectra;
207  std::vector<bool> isfloated;
208  for (int i = 0; i < (*nspectra)[0]; i++){
209  spectra.push_back(ana::LoadFrom<Spectrum>(
210  dir, "Spectrum_"+std::to_string(i)).release());
211  isfloated.push_back((bool)dir->Get(("IsComponentFloated_"+std::to_string(i)).c_str()));
212  }
213  delete nspectra;
214 
215  delete dir;
216 
217  return std::unique_ptr<PredictionScaleComp>(
218  new PredictionScaleComp(complement, spectra, isfloated));
219  }
const XML_Char * name
Definition: expat.h:151
std::vector< float > Spectrum
Definition: Constants.h:610
TDirectory * dir
Definition: macro.C:5
assert(nhit_max >=nhit_nbins)
std::string to_string(ModuleType mt)
Definition: ModuleType.h:32
PredictionScaleComp(SpectrumLoaderBase &loader, const HistAxis &axis, Cut cut, std::vector< Cut > truthcuts, const SystShifts &shift=kNoShift, const Var &wei=kUnweighted)
Spectrum ana::PredictionScaleComp::Predict ( osc::IOscCalc osc) const
overridevirtual

Implements ana::IPrediction.

Definition at line 138 of file PredictionScaleComp.cxx.

References fSpectra, MECModelEnuComparisons::i, makeTrainCVSamples::int, and runNovaSAM::ret.

Referenced by ~PredictionScaleComp().

139  {
140  Spectrum ret = *fSpectra[0];
141  for (int i = 1; i < int(fSpectra.size()); i++) ret += *fSpectra[i];
142  return ret;
143  }
std::vector< Spectrum * > fSpectra
std::vector< float > Spectrum
Definition: Constants.h:610
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::PredictionScaleComp::PredictComponent ( osc::IOscCalc calc,
Flavors::Flavors_t  flav,
Current::Current_t  curr,
Sign::Sign_t  sign 
) const
inlineoverridevirtual

Implements ana::IPrediction.

Definition at line 51 of file PredictionScaleComp.h.

References ana::assert().

55  {
56  assert(0 && "Please don't use PredictionScaleComp::PredictComponent");
57  abort();
58  }
assert(nhit_max >=nhit_nbins)
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::PredictionScaleComp::PredictSyst ( osc::IOscCalc osc,
const SystShifts syst 
) const
overridevirtual

Reimplemented from ana::IPrediction.

Definition at line 146 of file PredictionScaleComp.cxx.

References fIsComponentFloated, fSpectra, fSysts, ana::SystShifts::GetShift(), analysePickle::hist, MECModelEnuComparisons::i, makeTrainCVSamples::int, pot, and scale.

Referenced by ~PredictionScaleComp().

148  {
149  double pot = fSpectra[0]->POT();
150  Eigen::ArrayXd hist = fSpectra[0]->GetEigen(pot);
151  double scale = fIsComponentFloated[0] ? 1 + shift.GetShift(fSysts[0]) : 1;
152  hist *= scale;
153  for (int i = 1; i < int(fSpectra.size()); i++){
154  Eigen::ArrayXd curhist = fSpectra[i]->GetEigen(pot);
155  scale = fIsComponentFloated[i] ? 1 + shift.GetShift(fSysts[i]) : 1;
156  hist += curhist * scale;
157  }
158  return Spectrum(std::move(hist),
159  HistAxis(fSpectra[0]->GetLabels(),
160  fSpectra[0]->GetBinnings()),
161  pot, fSpectra[0]->Livetime());
162  }
_HistAxis< Var > HistAxis
Definition: HistAxis.h:103
std::vector< Spectrum * > fSpectra
std::vector< const ISyst * > fSysts
Double_t scale
Definition: plot.C:25
#define pot
std::vector< float > Spectrum
Definition: Constants.h:610
std::vector< bool > fIsComponentFloated
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(), plot_nd_data_mc(), 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::PredictionScaleComp::SaveTo ( TDirectory *  dir,
const std::string name 
) const
overridevirtual

Reimplemented from ana::IPrediction.

Definition at line 165 of file PredictionScaleComp.cxx.

References dir, fComplement, fIsComponentFloated, fSpectra, MECModelEnuComparisons::i, makeTrainCVSamples::int, ana::Spectrum::SaveTo(), tmp, and art::to_string().

Referenced by GetSpectra(), and test_predictionscalecomp().

166  {
167  TDirectory* tmp = gDirectory;
168 
169  dir = dir->mkdir(name.c_str()); // switch to subdir
170  dir->cd();
171 
172  TObjString("PredictionScaleComp").Write("type");
173 
174  // Save the number of MC spectra as an entry in a dummy histogram;
175  TVectorD nspectra(1);
176  nspectra[0] = fSpectra.size();
177  nspectra.Write("NSpectra");
178  // Save Vector of Spectrum*'s
179  for (int i = 0; i < int(fSpectra.size()); i++){
180  fSpectra[i]->SaveTo(dir, "Spectrum_"+std::to_string(i));
181  TParameter<bool> isfloated;
182  isfloated.SetVal(fIsComponentFloated[i]);
183  isfloated.Write(("IsComponentFloated_"+std::to_string(i)).c_str());
184  }
185  fComplement->SaveTo(dir, "Complement");
186 
187  dir->Write();
188  delete dir;
189 
190  tmp->cd();
191  }
const XML_Char * name
Definition: expat.h:151
std::vector< Spectrum * > fSpectra
Float_t tmp
Definition: plot.C:36
void SaveTo(TDirectory *dir, const std::string &name) const
Definition: Spectrum.cxx:506
TDirectory * dir
Definition: macro.C:5
std::string to_string(ModuleType mt)
Definition: ModuleType.h:32
std::vector< bool > fIsComponentFloated

Member Data Documentation

Spectrum* ana::PredictionScaleComp::fComplement
private

Definition at line 78 of file PredictionScaleComp.h.

Referenced by PredictionScaleComp(), and SaveTo().

Cut ana::PredictionScaleComp::fComplementCut
private

Definition at line 77 of file PredictionScaleComp.h.

Referenced by PredictionScaleComp().

std::vector<bool> ana::PredictionScaleComp::fIsComponentFloated
private

Definition at line 79 of file PredictionScaleComp.h.

Referenced by PredictionScaleComp(), PredictSyst(), and SaveTo().

std::vector<Spectrum*> ana::PredictionScaleComp::fSpectra
private

Definition at line 75 of file PredictionScaleComp.h.

Referenced by GetSpectra(), Predict(), PredictionScaleComp(), PredictSyst(), and SaveTo().

std::vector<const ISyst*> ana::PredictionScaleComp::fSysts
private

Definition at line 74 of file PredictionScaleComp.h.

Referenced by GetSysts(), PredictionScaleComp(), and PredictSyst().


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