ISignalEstimator.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "CAFAna/Core/Spectrum.h"
4 
5 #include "TDirectory.h"
6 
7 namespace ana
8 {
10  {
11  public:
12  virtual const Spectrum * Background() const = 0;
13  virtual const Spectrum * BackgroundComponent(int) const = 0;
14  virtual const Spectrum * Signal(const Spectrum *) const = 0;
15  virtual int GetNBkgdComponents() const = 0;
16  virtual ISignalEstimator * Clone() = 0;
17  virtual void SaveTo(TDirectory * dir, const std::string& name) const = 0;
18 
19 
20  static std::unique_ptr<ISignalEstimator> LoadFrom(TDirectory * dir, const std::string& name );
21 
22  virtual ~ISignalEstimator() {}
23  protected:
24  };
25 }
virtual const Spectrum * Signal(const Spectrum *) const =0
const XML_Char * name
Definition: expat.h:151
Cuts and Vars for the 2020 FD DiF Study.
Definition: vars.h:6
virtual ISignalEstimator * Clone()=0
static std::unique_ptr< ISignalEstimator > LoadFrom(TDirectory *dir, const std::string &name)
Representation of a spectrum in any variable, with associated POT.
Definition: Spectrum.h:40
virtual const Spectrum * Background() const =0
virtual void SaveTo(TDirectory *dir, const std::string &name) const =0
TDirectory * dir
Definition: macro.C:5
virtual int GetNBkgdComponents() const =0
virtual const Spectrum * BackgroundComponent(int) const =0
enum BeamMode string