3 #include "CAFAna/Core/Var.h" 5 #include "TSVDUnfold.h" 26 std::unique_ptr<TH1D> hReco(reco.
ToTH1(reco.
POT()));
31 TSVDUnfold uf(hReco.get(), hMCReco.get(), hMCTrue.get(), hRT.get());
33 std::unique_ptr<TH1D> h_unf(uf.Unfold(
fReg));
35 Eigen::ArrayXd
ret(h_unf->GetNbinsX()+2);
36 for(
int i = 0;
i < h_unf->GetNbinsX()+2; ++
i)
ret[
i] = h_unf->GetBinContent(
i);
const std::vector< Binning > & GetBinnings() const
const ReweightableSpectrum & fRT
Spectrum UnWeighted() const
_HistAxis< Var > HistAxis
Cuts and Vars for the 2020 FD DiF Study.
TH1D * ToTH1(double exposure, Color_t col=kBlack, Style_t style=kSolid, EExposureType expotype=kPOT, EBinType bintype=kBinContent) const
Histogram made from this Spectrum, scaled to some exposure.
Spectrum with the value of a second variable, allowing for reweighting
std::vector< double > Spectrum
double Integral(double exposure, double *err=0, EExposureType expotype=kPOT) const
Return total number of events scaled to pot.
Representation of a spectrum in any variable, with associated POT.
virtual Spectrum Truth(const Spectrum &reco) override
double fReg
Regularization strength.
const std::vector< std::string > & GetLabels() const
double Livetime() const
Seconds. For informational purposes only. No calculations use this.
Spectrum WeightingVariable() const
UnfoldSVD(const ReweightableSpectrum &rt, int reg)
TH2D * ToTH2(double pot) const