25 :
fMC(pred),
fData(data),
fCosmicInTime(0, {}, {}, 0, 0),
fCosmicOutOfTime(0, {}, {}, 0, 0),
fMask(0)
34 virtual void SaveTo(TDirectory*
dir)
const override;
35 static std::unique_ptr<SingleSampleExperiment>
LoadFrom(TDirectory*
dir);
52 double ymin=0,
double ymax=-1);
double std(const std::vector< short > &wf, const double ped_mean, size_t start, size_t nsample)
virtual double ChiSq(osc::IOscCalcAdjustable *osc, const SystShifts &syst=SystShifts::Nominal()) const override
process_name opflashCryoW ana
static SystShifts Nominal()
Representation of a spectrum in any variable, with associated POT.
SingleSampleExperiment(SingleSampleExperiment &&s)
process_name pandoraGausCryo1 vertexChargeCryo1 vertexStubCryo1 xmin
SingleSampleExperiment(const IPrediction *pred, const Spectrum &data)
In MC studies you might not want to bother with cosmics.
Spectrum fCosmicOutOfTime
virtual ~SingleSampleExperiment()
SingleSampleExperiment & operator=(const SingleSampleExperiment &)=delete
then echo File list $list not found else cat $list while read file do echo $file sed s
Base class defining interface for experiments.
SingleSampleExperiment(const IPrediction *pred, const Spectrum &data, const Spectrum &cosmicInTime, const Spectrum &cosmicOutOfTime)
Standard interface to all prediction techniques.
void SetMaskHist(double xmin=0, double xmax=-1, double ymin=0, double ymax=-1)
virtual void SaveTo(TDirectory *dir) const override
static std::unique_ptr< SingleSampleExperiment > LoadFrom(TDirectory *dir)
Compare a single data spectrum to the MC + cosmics expectation.