31 double cosmicScaleError = 0,
32 bool PoissonError =
false);
37 : fMC(pred), fData(data)
52 static std::unique_ptr<SingleSampleExperiment>
LoadFrom(TDirectory* dir,
const std::string& name);
60 : fMC(
s.fMC), fData(
std::move(
s.fData)), fCosmic(
std::move(
s.fCosmic)), fCosmicScaleError(
s.fCosmicScaleError)
Cuts and Vars for the 2020 FD DiF Study.
std::optional< Spectrum > fCosmic
void SaveTo(const osc::IOscCalc &x, TDirectory *dir, const std::string &name)
Simple record of shifts applied to systematic parameters.
Proxy for caf::StandardRecord.
General interface to oscillation calculators.
const IPrediction * GetPrediction() const
const CosmicBkgScaleSyst kCosmicBkgScaleSyst
static SystShifts Nominal()
double LogLikelihood(const Eigen::ArrayXd &ea, const Eigen::ArrayXd &oa, bool useOverflow)
The log-likelihood formula from the PDG.
Encapsulate code to systematically shift a caf::SRProxy.
std::unique_ptr< T > LoadFrom(TDirectory *dir, const std::string &label)
ISyst & operator=(const ISyst &)=delete
Representation of a spectrum in any variable, with associated POT.
const XML_Char const XML_Char * data
SingleSampleExperiment(SingleSampleExperiment &&s)
Sum up livetimes from individual cosmic triggers.
SingleSampleExperiment(const IPrediction *pred, const Spectrum &data)
In MC studies you might not want to bother with cosmics.
std::vector< std::pair< double, double > > fBinErrors
void Shift(double, caf::SRProxy *, double &) const
Perform the systematic shift.
Oscillation probability calculators.
const SystShifts kNoShift
Base class defining interface for experiments.
Standard interface to all prediction techniques.
Dummy syst to communicate with SingleSampleExperiment.
Compare a single data spectrum to the MC + cosmics expectation.