7 class TGraphAsymmErrors;
23 const std::vector<SystShifts>& univ_shifts,
30 const std::vector<Var>& univ_weis,
46 TGraphAsymmErrors*
ErrorBand(
double exposure,
65 static std::unique_ptr<EnsembleSpectrum>
LoadFrom(TDirectory*
dir);
83 TGraphAsymmErrors* band,
std::vector< Binning > GetBinnings() const
EnsembleSpectrum operator-(const EnsembleSpectrum &rhs) const
EnsembleSpectrum operator+(const EnsembleSpectrum &rhs) const
EnsembleSpectrum(SpectrumLoaderBase &loader, const HistAxis &axis, const SpillCut &spillcut, const Cut &cut, const std::vector< SystShifts > &univ_shifts, const Var &cv_wei=kUnweighted)
static std::unique_ptr< EnsembleSpectrum > LoadFrom(TDirectory *dir)
EnsembleSpectrum & operator+=(const EnsembleSpectrum &rhs)
process_name opflashCryoW ana
std::vector< std::string > GetLabels() const
Representation of a spectrum in any variable, with associated POT.
EnsembleSpectrum & operator*=(const EnsembleRatio &rhs)
EnsembleSpectrum(const Spectrum &nom)
void SaveTo(TDirectory *dir) const
EnsembleSpectrum & operator/=(const EnsembleRatio &rhs)
EExposureType
For use as an argument to Spectrum::ToTH1.
EnsembleSpectrum operator*(const EnsembleRatio &lhs, const EnsembleSpectrum &rhs)
unsigned int NDimensions() const
EnsembleSpectrum operator/(const EnsembleRatio &rhs) const
unsigned int NDimensions() const
EnsembleRatio operator/(const EnsembleSpectrum &lhs, const EnsembleSpectrum &rhs)
Base class for the various types of spectrum loader.
std::vector< Spectrum > fUnivs
TGraphAsymmErrors * ErrorBand(double exposure, EExposureType expotype=kPOT, EBinType bintype=kBinContent) const
Result can be painted prettily with DrawErrorBand.
EnsembleSpectrum & operator-=(const EnsembleSpectrum &rhs)
const Var kUnweighted([](const caf::SRSliceProxy *){return 1;})
The simplest possible Var, always 1. Used as a default weight.
std::vector< std::string > GetLabels() const
EnsembleSpectrum operator*(const EnsembleRatio &rhs) const
double Livetime() const
Seconds. For informational purposes only. No calculations use this.
Spectrum Universe(unsigned int i) const
void DrawErrorBand(TH1 *nom, TGraphAsymmErrors *band, int bandCol, double alpha)
std::vector< Binning > GetBinnings() const
unsigned int NUniverses() const