Compare a single data spectrum to the MC + cosmics expectation. More...
#include <SingleSampleExperiment.h>
Public Member Functions | |
SingleSampleExperiment (const IPrediction *pred, const Spectrum &data, const Spectrum &cosmicInTime, const Spectrum &cosmicOutOfTime) | |
SingleSampleExperiment (const IPrediction *pred, const Spectrum &data) | |
In MC studies you might not want to bother with cosmics. More... | |
fCosmicOutOfTime (0,{},{}, 0, 0) | |
fMask (0) | |
virtual | ~SingleSampleExperiment () |
virtual double | ChiSq (osc::IOscCalcAdjustable *osc, const SystShifts &syst=SystShifts::Nominal()) const override |
virtual void | SaveTo (TDirectory *dir) const override |
SingleSampleExperiment (const SingleSampleExperiment &)=delete | |
SingleSampleExperiment & | operator= (const SingleSampleExperiment &)=delete |
SingleSampleExperiment (SingleSampleExperiment &&s) | |
void | SetMaskHist (double xmin=0, double xmax=-1, double ymin=0, double ymax=-1) |
Public Member Functions inherited from ana::IExperiment | |
virtual | ~IExperiment () |
Static Public Member Functions | |
static std::unique_ptr < SingleSampleExperiment > | LoadFrom (TDirectory *dir) |
Protected Attributes | |
const IPrediction * | fMC |
Spectrum | fData |
Spectrum | fCosmicInTime |
Spectrum | fCosmicOutOfTime |
TH1 * | fMask |
Compare a single data spectrum to the MC + cosmics expectation.
Definition at line 10 of file SingleSampleExperiment.h.
ana::SingleSampleExperiment::SingleSampleExperiment | ( | const IPrediction * | pred, |
const Spectrum & | data, | ||
const Spectrum & | cosmicInTime, | ||
const Spectrum & | cosmicOutOfTime | ||
) |
pred | Source of oscillated MC beam predictions |
data | Data spectrum to compare to |
cosmicInTime | In-time cosmic ray background component |
cosmicOutOfTime | Out-of-time cosmic ray background component |
Definition at line 16 of file SingleSampleExperiment.cxx.
|
inline |
In MC studies you might not want to bother with cosmics.
Definition at line 23 of file SingleSampleExperiment.h.
|
virtual |
Definition at line 31 of file SingleSampleExperiment.cxx.
|
delete |
|
inline |
Definition at line 42 of file SingleSampleExperiment.h.
|
overridevirtual |
Implements ana::IExperiment.
Definition at line 37 of file SingleSampleExperiment.cxx.
ana::SingleSampleExperiment::fCosmicOutOfTime | ( | 0 | , |
{} | , | ||
{} | , | ||
0 | , | ||
0 | |||
) |
|
inline |
Definition at line 25 of file SingleSampleExperiment.h.
|
static |
Definition at line 99 of file SingleSampleExperiment.cxx.
|
delete |
|
overridevirtual |
Reimplemented from ana::IExperiment.
Definition at line 83 of file SingleSampleExperiment.cxx.
void ana::SingleSampleExperiment::SetMaskHist | ( | double | xmin = 0 , |
double | xmax = -1 , |
||
double | ymin = 0 , |
||
double | ymax = -1 |
||
) |
Definition at line 125 of file SingleSampleExperiment.cxx.
|
protected |
Definition at line 57 of file SingleSampleExperiment.h.
|
protected |
Definition at line 57 of file SingleSampleExperiment.h.
|
protected |
Definition at line 56 of file SingleSampleExperiment.h.
|
protected |
Definition at line 58 of file SingleSampleExperiment.h.
|
protected |
Definition at line 55 of file SingleSampleExperiment.h.