Compare a data spectrum to MC expectation using only the event count. More...
Public Member Functions | |
CountingExperiment (const IPrediction *p, const Spectrum &d, const Spectrum &cosmic) | |
CountingExperiment (const IPrediction *p, const Spectrum &d) | |
Version without cosmics may be wanted for MC studies. More... | |
~CountingExperiment () | |
virtual double | ChiSq (osc::IOscCalcAdjustable *osc, const SystShifts &syst=SystShifts::Nominal()) const override |
virtual void | SaveTo (TDirectory *dir, const std::string &name) const override |
virtual stan::math::var | LogLikelihood (osc::IOscCalcAdjustableStan *osc, const SystShifts &syst=kNoShift) const |
Static Public Member Functions | |
static std::unique_ptr< CountingExperiment > | LoadFrom (TDirectory *dir, const std::string &name) |
Protected Attributes | |
const IPrediction * | fMC |
Spectrum | fData |
TH1 * | fCosmic |
Compare a data spectrum to MC expectation using only the event count.
Definition at line 12 of file CountingExperiment.h.
ana::CountingExperiment::CountingExperiment | ( | const IPrediction * | p, |
const Spectrum & | d, | ||
const Spectrum & | cosmic | ||
) |
Definition at line 20 of file CountingExperiment.cxx.
|
inline |
Version without cosmics may be wanted for MC studies.
Definition at line 17 of file CountingExperiment.h.
References ChiSq(), dir, LoadFrom(), ana::SystShifts::Nominal(), SaveTo(), string, and ~CountingExperiment().
ana::CountingExperiment::~CountingExperiment | ( | ) |
Definition at line 29 of file CountingExperiment.cxx.
References fCosmic.
Referenced by CountingExperiment().
|
overridevirtual |
Reimplemented from ana::IExperiment.
Definition at line 35 of file CountingExperiment.cxx.
References stan::math::exp(), fCosmic, fData, fMC, ana::Spectrum::Integral(), ana::LogLikelihood(), ana::Spectrum::POT(), and ana::IPrediction::PredictSyst().
Referenced by CountingExperiment().
|
static |
Definition at line 68 of file CountingExperiment.cxx.
References ana::assert(), dir, ana::Spectrum::LoadFrom(), ana::LoadFrom< IPrediction >(), mc, runNovaSAM::release, and runNovaSAM::ret.
Referenced by CountingExperiment().
|
inlinevirtualinherited |
Reimplemented in test::GaussQuadExperiment, ana::SingleSampleExperiment, and ana::MultiExperiment.
Definition at line 25 of file IExperiment.h.
References ana::assert(), dir, ana::IExperiment::SaveTo(), and string.
Referenced by ana::StanFitter::log_prob().
|
overridevirtual |
Reimplemented from ana::IExperiment.
Definition at line 47 of file CountingExperiment.cxx.
References dir, fCosmic, fData, fMC, ana::IPrediction::SaveTo(), ana::Spectrum::SaveTo(), and tmp.
Referenced by CountingExperiment().
|
protected |
Definition at line 27 of file CountingExperiment.h.
Referenced by ChiSq(), SaveTo(), and ~CountingExperiment().
|
protected |
Definition at line 26 of file CountingExperiment.h.
|
protected |
Definition at line 25 of file CountingExperiment.h.