Bool_t fMatToyMode
Internal switch for covariance matrix propagation. 
TH2D * fXtau
Distribution of singular values. 
SVD Approach to Data Unfolding. 
static void H2Verr(const TH1D *histo, TVectorD &vec)
Fill 1D histogram errors into vector. 
Bool_t fToyMode
Toy MC detector response matrix. 
static Double_t GetCurvature(const TVectorD &vec, const TMatrixD &curv)
Compute curvature of vector. 
TH1D * fSVHist
Distribution of d (for checking regularization) 
TH1D * Unfold(Int_t kreg)
Perform the unfolding with regularisation parameter kreg. 
Int_t fKReg
Normalize unfolded spectrum to 1. 
void FillCurvatureMatrix(TMatrixD &tCurv, TMatrixD &tC) const
TH2D * GetUnfoldCovMatrix(const TH2D *cov, Int_t ntoys, Int_t seed=1)
Determine for given input error matrix covariance matrix of unfolded spectrum from toy simulation giv...
TH2D * GetXinv() const
Returns the computed inverse of the covariance matrix. 
static TMatrixD MatDivVec(const TMatrixD &mat, const TVectorD &vec, Int_t zero=0)
Divide matrix entries by vector. 
Bool_t fNormalize
Derivative for curvature matrix. 
TH2D * GetBCov() const
Returns the covariance matrix. 
TSVDUnfold(const TH1D *bdat, const TH1D *bini, const TH1D *xini, const TH2D *Adet)
Alternative constructor User provides data and MC test spectra, as well as detector response matrix...
TH2D * fXinv
Computed regularized covariance matrix. 
TH2D * GetXtau() const
Returns the computed regularized covariance matrix corresponding to total uncertainties on measured s...
TH1D * GetD() const
Returns d vector (for choosing appropriate regularisation) 
void SetNormalize(Bool_t normalize)
TH1D * GetSV() const
Returns singular values vector. 
#define ClassDef(name, id)
Double_t ComputeChiSquared(const TH1D &truspec, const TH1D &unfspec)
Helper routine to compute chi-squared between distributions using the computed inverse of the covaria...
Int_t fDdim
Truth and reconstructed dimensions. 
static void RegularisedSymMatInvert(TMatrixDSym &mat, Double_t eps=1e-3)
naive regularised inversion cuts off small elements 
static void H2V(const TH1D *histo, TVectorD &vec)
Fill 1D histogram into vector. 
const TH1D * fBdat
Computed inverse of covariance matrix. 
TH2D * fToymat
Toy MC histogram. 
static void V2H(const TVectorD &vec, TH1D &histo)
Fill vector into 1D histogram. 
static void H2M(const TH2D *histo, TMatrixD &mat)
Fill 2D histogram into matrix. 
TH2D * GetAdetCovMatrix(Int_t ntoys, Int_t seed=1)
Determine covariance matrix of unfolded spectrum from finite statistics in response matrix using pseu...
static TVectorD VecDiv(const TVectorD &vec1, const TVectorD &vec2, Int_t zero=0)
Divide entries of two vectors. 
1-D histogram with a double per channel (see TH1 documentation)} 
static TVectorD CompProd(const TVectorD &vec1, const TVectorD &vec2)
Multiply entries of two vectors. 
TH1D * fDHist
Regularisation parameter. 
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
Mother of all ROOT objects. 
static void M2H(const TMatrixD &mat, TH2D &histo)
Fill 2D histogram into matrix. 
virtual ~TSVDUnfold()
Destructor. 
2-D histogram with a double per channel (see TH1 documentation)}