All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CountingExperiment.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 
7 namespace ana
8 {
9  class IPrediction;
10 
11  /// Compare a data spectrum to MC expectation using only the event count
13  {
14  public:
15  CountingExperiment(const IPrediction* p, const Spectrum& d, const Spectrum& cosmic);
16  /// Version without cosmics may be wanted for MC studies
17  CountingExperiment(const IPrediction* p, const Spectrum& d) : fMC(p), fData(d), fCosmic(0) {}
19  virtual double ChiSq(osc::IOscCalcAdjustable* osc,
20  const SystShifts& syst = SystShifts::Nominal()) const override;
21 
22  virtual void SaveTo(TDirectory* dir) const override;
23  static std::unique_ptr<CountingExperiment> LoadFrom(TDirectory* dir);
24  protected:
25  const IPrediction* fMC;
27  TH1* fCosmic;
28  };
29 }
Simple record of shifts applied to systematic parameters.
Definition: SystShifts.h:16
CountingExperiment(const IPrediction *p, const Spectrum &d, const Spectrum &cosmic)
pdgs p
Definition: selectors.fcl:22
virtual double ChiSq(osc::IOscCalcAdjustable *osc, const SystShifts &syst=SystShifts::Nominal()) const override
process_name opflashCryoW ana
virtual void SaveTo(TDirectory *dir) const override
static SystShifts Nominal()
Definition: SystShifts.h:23
Representation of a spectrum in any variable, with associated POT.
Definition: Spectrum.h:30
CountingExperiment(const IPrediction *p, const Spectrum &d)
Version without cosmics may be wanted for MC studies.
tuple dir
Definition: dropbox.py:28
const IPrediction * fMC
BEGIN_PROLOG cosmic
Base class defining interface for experiments.
Definition: IExperiment.h:21
Standard interface to all prediction techniques.
Definition: IPrediction.h:58
static std::unique_ptr< CountingExperiment > LoadFrom(TDirectory *dir)
Compare a data spectrum to MC expectation using only the event count.