All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
ana::PredictionNoExtrap Class Reference

Prediction that just uses one detector's MC, with no extrapolation. More...

#include <PredictionNoExtrap.h>

Inheritance diagram for ana::PredictionNoExtrap:
ana::PredictionExtrap ana::IPrediction

Public Member Functions

 PredictionNoExtrap (PredictionExtrap *pred)
 
 PredictionNoExtrap (SpectrumLoaderBase &loaderNonswap, SpectrumLoaderBase &loaderNue, SpectrumLoaderBase &loaderNuTau, SpectrumLoaderBase &loaderIntrinsic, const std::string &label, const Binning &bins, const Var &var, const SpillCut &spillcut, const Cut &cut, const SystShifts &shift=kNoShift, const Var &wei=kUnweighted)
 
 PredictionNoExtrap (SpectrumLoaderBase &loaderNonswap, SpectrumLoaderBase &loaderNue, SpectrumLoaderBase &loaderNuTau, SpectrumLoaderBase &loaderIntrinsic, const HistAxis &axis, const SpillCut &spillcut, const Cut &cut, const SystShifts &shift=kNoShift, const Var &wei=kUnweighted)
 
 PredictionNoExtrap (Loaders &loaders, const std::string &label, const Binning &bins, const Var &var, const SpillCut &spillcut, const Cut &cut, const SystShifts &shift=kNoShift, const Var &wei=kUnweighted)
 
 PredictionNoExtrap (Loaders &loaders, const HistAxis &axis, const SpillCut &spillcut, const Cut &cut, const SystShifts &shift=kNoShift, const Var &wei=kUnweighted)
 
virtual ~PredictionNoExtrap ()
 
virtual void SaveTo (TDirectory *dir) const override
 
- Public Member Functions inherited from ana::PredictionExtrap
 PredictionExtrap (IExtrap *extrap)
 Takes ownership of extrap. More...
 
virtual ~PredictionExtrap ()
 
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
 
OscillatableSpectrum ComponentCC (int from, int to) const override
 
 PredictionExtrap ()=delete
 
IExtrapGetExtrap () const
 
- Public Member Functions inherited from ana::IPrediction
virtual ~IPrediction ()
 
virtual Spectrum PredictUnoscillated () const
 
virtual Spectrum PredictSyst (osc::IOscCalc *calc, const SystShifts &syst) const
 
virtual Spectrum PredictComponentSyst (osc::IOscCalc *calc, const SystShifts &syst, Flavors::Flavors_t flav, Current::Current_t curr, Sign::Sign_t sign) const
 

Static Public Member Functions

static std::unique_ptr
< PredictionNoExtrap
LoadFrom (TDirectory *dir)
 
- Static Public Member Functions inherited from ana::PredictionExtrap
static std::unique_ptr
< PredictionExtrap
LoadFrom (TDirectory *dir)
 

Additional Inherited Members

- Protected Attributes inherited from ana::PredictionExtrap
IExtrapfExtrap
 

Detailed Description

Prediction that just uses one detector's MC, with no extrapolation.

Definition at line 12 of file PredictionNoExtrap.h.

Constructor & Destructor Documentation

ana::PredictionNoExtrap::PredictionNoExtrap ( PredictionExtrap pred)

Definition at line 48 of file PredictionNoExtrap.cxx.

48  : PredictionExtrap(pred->GetExtrap())
49  {
50  }
ana::PredictionNoExtrap::PredictionNoExtrap ( SpectrumLoaderBase loaderNonswap,
SpectrumLoaderBase loaderNue,
SpectrumLoaderBase loaderNuTau,
SpectrumLoaderBase loaderIntrinsic,
const std::string &  label,
const Binning bins,
const Var var,
const SpillCut spillcut,
const Cut cut,
const SystShifts shift = kNoShift,
const Var wei = kUnweighted 
)

Definition at line 16 of file PredictionNoExtrap.cxx.

27  : PredictionExtrap(new TrivialExtrap(loaderNonswap, loaderNue, loaderNuTau, loaderIntrinsic,
28  label, bins, var, spillcut, cut, shift, wei))
29  {
30  }
shift
Definition: fcl_checks.sh:26
ana::PredictionNoExtrap::PredictionNoExtrap ( SpectrumLoaderBase loaderNonswap,
SpectrumLoaderBase loaderNue,
SpectrumLoaderBase loaderNuTau,
SpectrumLoaderBase loaderIntrinsic,
const HistAxis axis,
const SpillCut spillcut,
const Cut cut,
const SystShifts shift = kNoShift,
const Var wei = kUnweighted 
)

Definition at line 33 of file PredictionNoExtrap.cxx.

42  : PredictionExtrap(new TrivialExtrap(loaderNonswap, loaderNue, loaderNuTau, loaderIntrinsic,
43  axis, spillcut, cut, shift, wei))
44  {
45  }
shift
Definition: fcl_checks.sh:26
ana::PredictionNoExtrap::PredictionNoExtrap ( Loaders loaders,
const std::string &  label,
const Binning bins,
const Var var,
const SpillCut spillcut,
const Cut cut,
const SystShifts shift = kNoShift,
const Var wei = kUnweighted 
)

Definition at line 53 of file PredictionNoExtrap.cxx.

61  : PredictionNoExtrap(loaders, HistAxis(label, bins, var), spillcut, cut, shift, wei)
62  {
63  }
_HistAxis< Var > HistAxis
Definition: HistAxis.h:62
shift
Definition: fcl_checks.sh:26
PredictionNoExtrap(PredictionExtrap *pred)
ana::PredictionNoExtrap::PredictionNoExtrap ( Loaders loaders,
const HistAxis axis,
const SpillCut spillcut,
const Cut cut,
const SystShifts shift = kNoShift,
const Var wei = kUnweighted 
)

Definition at line 66 of file PredictionNoExtrap.cxx.

72  : PredictionExtrap(new TrivialExtrap(loaders, axis, spillcut, cut, shift, wei))
73  {
74  }
shift
Definition: fcl_checks.sh:26
ana::PredictionNoExtrap::~PredictionNoExtrap ( )
virtual

Definition at line 102 of file PredictionNoExtrap.cxx.

103  {
104  // We created this in the constructor so it's our responsibility
105  delete fExtrap;
106  }

Member Function Documentation

std::unique_ptr< PredictionNoExtrap > ana::PredictionNoExtrap::LoadFrom ( TDirectory *  dir)
static

Definition at line 92 of file PredictionNoExtrap.cxx.

93  {
94  assert(dir->GetDirectory("extrap"));
95  IExtrap* extrap = ana::LoadFrom<IExtrap>(dir->GetDirectory("extrap")).release();
96  PredictionExtrap* pred = new PredictionExtrap(extrap);
97  return std::unique_ptr<PredictionNoExtrap>(new PredictionNoExtrap(pred));
98  }
std::unique_ptr< IExtrap > LoadFrom< IExtrap >(TDirectory *dir)
Definition: IExtrap.cxx:17
PredictionNoExtrap(PredictionExtrap *pred)
tuple dir
Definition: dropbox.py:28
void ana::PredictionNoExtrap::SaveTo ( TDirectory *  dir) const
overridevirtual

Reimplemented from ana::PredictionExtrap.

Definition at line 77 of file PredictionNoExtrap.cxx.

78  {
79  TDirectory* tmp = gDirectory;
80 
81  dir->cd();
82 
83  TObjString("PredictionNoExtrap").Write("type");
84 
85  fExtrap->SaveTo(dir->mkdir("extrap"));
86 
87  tmp->cd();
88  }
tuple dir
Definition: dropbox.py:28
virtual void SaveTo(TDirectory *dir) const
Definition: IExtrap.cxx:31

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