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

Prediction summing detector and dirt components. More...

#include <PredictionIncDirt.h>

Inheritance diagram for ana::PredictionIncDirt:
ana::IPrediction

Public Member Functions

 PredictionIncDirt (SpectrumLoaderBase &loaderNonswap, SpectrumLoaderBase &loaderNue, SpectrumLoaderBase &loaderNuTau, SpectrumLoaderBase &loaderIntrinsic, SpectrumLoaderBase &loaderDirt, const HistAxis &axis, const SpillCut &spillcut, const Cut &cut, const SystShifts &shift=kNoShift, const Var &wei=kUnweighted)
 
 PredictionIncDirt (Loaders &loaders, SpectrumLoaderBase &loaderDirt, const HistAxis &axis, const SpillCut &spillcut, const Cut &cut, const SystShifts &shift=kNoShift, const Var &wei=kUnweighted)
 
virtual ~PredictionIncDirt ()
 
virtual void SaveTo (TDirectory *dir) const override
 
Spectrum PredictDet (osc::IOscCalc *calc) const
 
Spectrum PredictDirt (osc::IOscCalc *calc) const
 
Spectrum PredictComponentDet (osc::IOscCalc *calc, Flavors::Flavors_t flav, Current::Current_t curr, Sign::Sign_t sign) const
 
Spectrum PredictComponentDirt (osc::IOscCalc *calc, Flavors::Flavors_t flav, Current::Current_t curr, Sign::Sign_t sign) const
 
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
 
- 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
 
virtual OscillatableSpectrum ComponentCC (int from, int to) const
 

Static Public Member Functions

static std::unique_ptr
< PredictionIncDirt
LoadFrom (TDirectory *dir)
 

Protected Member Functions

 PredictionIncDirt (std::unique_ptr< PredictionNoExtrap > &&det, std::unique_ptr< PredictionNoExtrap > &&dirt)
 

Protected Attributes

PredictionNoExtrap fDet
 
PredictionNoExtrap fDirt
 

Detailed Description

Prediction summing detector and dirt components.

Definition at line 12 of file PredictionIncDirt.h.

Constructor & Destructor Documentation

ana::PredictionIncDirt::PredictionIncDirt ( SpectrumLoaderBase loaderNonswap,
SpectrumLoaderBase loaderNue,
SpectrumLoaderBase loaderNuTau,
SpectrumLoaderBase loaderIntrinsic,
SpectrumLoaderBase loaderDirt,
const HistAxis axis,
const SpillCut spillcut,
const Cut cut,
const SystShifts shift = kNoShift,
const Var wei = kUnweighted 
)

Definition at line 11 of file PredictionIncDirt.cxx.

21  : fDet(loaderNonswap, loaderNue, loaderNuTau, loaderIntrinsic,
22  axis, spillcut, cut, shift, wei),
24  axis, spillcut, cut, shift, wei)
25  {
26  }
shift
Definition: fcl_checks.sh:26
PredictionNoExtrap fDirt
PredictionNoExtrap fDet
static NullLoader kNullLoader
Dummy loader that doesn&#39;t load any files.
ana::PredictionIncDirt::PredictionIncDirt ( Loaders loaders,
SpectrumLoaderBase loaderDirt,
const HistAxis axis,
const SpillCut spillcut,
const Cut cut,
const SystShifts shift = kNoShift,
const Var wei = kUnweighted 
)

Definition at line 29 of file PredictionIncDirt.cxx.

36  : fDet(loaders, axis, spillcut, cut, shift, wei),
38  axis, spillcut, cut, shift, wei)
39  {
40  }
shift
Definition: fcl_checks.sh:26
PredictionNoExtrap fDirt
PredictionNoExtrap fDet
static NullLoader kNullLoader
Dummy loader that doesn&#39;t load any files.
ana::PredictionIncDirt::~PredictionIncDirt ( )
virtual

Definition at line 43 of file PredictionIncDirt.cxx.

44  {
45  }
ana::PredictionIncDirt::PredictionIncDirt ( std::unique_ptr< PredictionNoExtrap > &&  det,
std::unique_ptr< PredictionNoExtrap > &&  dirt 
)
inlineprotected

Definition at line 80 of file PredictionIncDirt.h.

82  : fDet(*det), fDirt(*dirt)
83  {
84  }
PredictionNoExtrap fDirt
PredictionNoExtrap fDet

Member Function Documentation

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

Definition at line 49 of file PredictionIncDirt.cxx.

50  {
51  assert(dir->GetDirectory("det") && dir->GetDirectory("dirt"));
52 
53  return std::unique_ptr<PredictionIncDirt>(new PredictionIncDirt(ana::LoadFrom<PredictionNoExtrap>(dir->GetDirectory("det")),
54  ana::LoadFrom<PredictionNoExtrap>(dir->GetDirectory("dirt"))));
55  }
tuple dir
Definition: dropbox.py:28
PredictionIncDirt(SpectrumLoaderBase &loaderNonswap, SpectrumLoaderBase &loaderNue, SpectrumLoaderBase &loaderNuTau, SpectrumLoaderBase &loaderIntrinsic, SpectrumLoaderBase &loaderDirt, const HistAxis &axis, const SpillCut &spillcut, const Cut &cut, const SystShifts &shift=kNoShift, const Var &wei=kUnweighted)
virtual Spectrum ana::PredictionIncDirt::Predict ( osc::IOscCalc calc) const
inlineoverridevirtual

Implements ana::IPrediction.

Definition at line 65 of file PredictionIncDirt.h.

66  {
67  return PredictDet(calc) + PredictDirt(calc);
68  }
Spectrum PredictDet(osc::IOscCalc *calc) const
Spectrum PredictDirt(osc::IOscCalc *calc) const
virtual Spectrum ana::PredictionIncDirt::PredictComponent ( osc::IOscCalc calc,
Flavors::Flavors_t  flav,
Current::Current_t  curr,
Sign::Sign_t  sign 
) const
inlineoverridevirtual

Implements ana::IPrediction.

Definition at line 70 of file PredictionIncDirt.h.

74  {
75  return (PredictComponentDet (calc, flav, curr, sign) +
76  PredictComponentDirt(calc, flav, curr, sign));
77  }
Spectrum PredictComponentDet(osc::IOscCalc *calc, Flavors::Flavors_t flav, Current::Current_t curr, Sign::Sign_t sign) const
int sign(double val)
Definition: UtilFunc.cxx:104
Spectrum PredictComponentDirt(osc::IOscCalc *calc, Flavors::Flavors_t flav, Current::Current_t curr, Sign::Sign_t sign) const
Spectrum ana::PredictionIncDirt::PredictComponentDet ( osc::IOscCalc calc,
Flavors::Flavors_t  flav,
Current::Current_t  curr,
Sign::Sign_t  sign 
) const
inline

Definition at line 49 of file PredictionIncDirt.h.

53  {
54  return fDet.PredictComponent(calc, flav, curr, sign);
55  }
virtual Spectrum PredictComponent(osc::IOscCalc *calc, Flavors::Flavors_t flav, Current::Current_t curr, Sign::Sign_t sign) const override
int sign(double val)
Definition: UtilFunc.cxx:104
PredictionNoExtrap fDet
Spectrum ana::PredictionIncDirt::PredictComponentDirt ( osc::IOscCalc calc,
Flavors::Flavors_t  flav,
Current::Current_t  curr,
Sign::Sign_t  sign 
) const
inline

Definition at line 57 of file PredictionIncDirt.h.

61  {
62  return fDirt.PredictComponent(calc, flav, curr, sign);
63  }
virtual Spectrum PredictComponent(osc::IOscCalc *calc, Flavors::Flavors_t flav, Current::Current_t curr, Sign::Sign_t sign) const override
int sign(double val)
Definition: UtilFunc.cxx:104
PredictionNoExtrap fDirt
Spectrum ana::PredictionIncDirt::PredictDet ( osc::IOscCalc calc) const
inline

Definition at line 39 of file PredictionIncDirt.h.

40  {
41  return fDet.Predict(calc);
42  }
PredictionNoExtrap fDet
virtual Spectrum Predict(osc::IOscCalc *calc) const override
Spectrum ana::PredictionIncDirt::PredictDirt ( osc::IOscCalc calc) const
inline

Definition at line 44 of file PredictionIncDirt.h.

45  {
46  return fDirt.Predict(calc);
47  }
PredictionNoExtrap fDirt
virtual Spectrum Predict(osc::IOscCalc *calc) const override
void ana::PredictionIncDirt::SaveTo ( TDirectory *  dir) const
overridevirtual

Reimplemented from ana::IPrediction.

Definition at line 58 of file PredictionIncDirt.cxx.

59  {
60  TDirectory* tmp = gDirectory;
61 
62  dir->cd();
63 
64  TObjString("PredictionIncDirt").Write("type");
65 
66  fDet.SaveTo(dir->mkdir("det"));
67  fDirt.SaveTo(dir->mkdir("dirt"));
68 
69  tmp->cd();
70  }
virtual void SaveTo(TDirectory *dir) const override
tuple dir
Definition: dropbox.py:28
PredictionNoExtrap fDirt
PredictionNoExtrap fDet

Member Data Documentation

PredictionNoExtrap ana::PredictionIncDirt::fDet
protected

Definition at line 86 of file PredictionIncDirt.h.

PredictionNoExtrap ana::PredictionIncDirt::fDirt
protected

Definition at line 86 of file PredictionIncDirt.h.


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