#include <TUnfold.h>
Inheritance diagram for TUnfold:
Public Types | |
enum | EConstraint |
enum | ERegMode |
enum | EHistMap |
enum | EConstraint |
enum | ERegMode |
enum | EHistMap |
Public Member Functions | |
TUnfold (const TH2 *hist_A, EHistMap histmap, ERegMode regmode=kRegModeSize, EConstraint constraint=kEConstraintArea) | |
virtual | ~TUnfold (void) |
void | SetBias (const TH1 *bias) |
void | SetConstraint (EConstraint constraint) |
Int_t | RegularizeSize (int bin, Double_t scale=1.0) |
Int_t | RegularizeDerivative (int left_bin, int right_bin, Double_t scale=1.0) |
Int_t | RegularizeCurvature (int left_bin, int center_bin, int right_bin, Double_t scale_left=1.0, Double_t scale_right=1.0) |
Int_t | RegularizeBins (int start, int step, int nbin, ERegMode regmode) |
Int_t | RegularizeBins2D (int start_bin, int step1, int nbin1, int step2, int nbin2, ERegMode regmode) |
Double_t | DoUnfold (Double_t tau, const TH1 *hist_y, Double_t scaleBias=0.0) |
virtual Int_t | SetInput (const TH1 *hist_y, Double_t scaleBias=0.0, Double_t oneOverZeroError=0.0) |
virtual Double_t | DoUnfold (Double_t tau) |
virtual Int_t | ScanLcurve (Int_t nPoint, Double_t tauMin, Double_t tauMax, TGraph **lCurve, TSpline **logTauX=0, TSpline **logTauY=0) |
TH1D * | GetOutput (const char *name, const char *title, Double_t x0=0.0, Double_t x1=0.0) const |
TH1D * | GetBias (const char *name, const char *title, Double_t x0=0.0, Double_t x1=0.0) const |
TH1D * | GetFoldedOutput (const char *name, const char *title, Double_t y0=0.0, Double_t y1=0.0) const |
TH1D * | GetInput (const char *name, const char *title, Double_t y0=0.0, Double_t y1=0.0) const |
TH2D * | GetRhoIJ (const char *name, const char *title, Double_t x0=0.0, Double_t x1=0.0) const |
TH2D * | GetEmatrix (const char *name, const char *title, Double_t x0=0.0, Double_t x1=0.0) const |
TH1D * | GetRhoI (const char *name, const char *title, Double_t x0=0.0, Double_t x1=0.0) const |
TH2D * | GetLsquared (const char *name, const char *title, Double_t x0=0.0, Double_t x1=0.0) const |
void | GetOutput (TH1 *output, const Int_t *binMap=0) const |
void | GetEmatrix (TH2 *ematrix, const Int_t *binMap=0) const |
Double_t | GetRhoI (TH1 *rhoi, TH2 *ematrixinv=0, const Int_t *binMap=0) const |
void | GetRhoIJ (TH2 *rhoij, const Int_t *binMap=0) const |
Double_t | GetTau (void) const |
Double_t | GetRhoMax (void) const |
Double_t | GetRhoAvg (void) const |
Double_t | GetChi2A (void) const |
Double_t | GetChi2L (void) const |
virtual Double_t | GetLcurveX (void) const |
virtual Double_t | GetLcurveY (void) const |
Int_t | GetNdf (void) const |
Int_t | GetNpar (void) const |
TUnfold (const TH2 *hist_A, EHistMap histmap, ERegMode regmode=kRegModeSize, EConstraint constraint=kEConstraintArea) | |
virtual | ~TUnfold (void) |
void | SetBias (const TH1 *bias) |
void | SetConstraint (EConstraint constraint) |
Int_t | RegularizeSize (int bin, Double_t scale=1.0) |
Int_t | RegularizeDerivative (int left_bin, int right_bin, Double_t scale=1.0) |
Int_t | RegularizeCurvature (int left_bin, int center_bin, int right_bin, Double_t scale_left=1.0, Double_t scale_right=1.0) |
Int_t | RegularizeBins (int start, int step, int nbin, ERegMode regmode) |
Int_t | RegularizeBins2D (int start_bin, int step1, int nbin1, int step2, int nbin2, ERegMode regmode) |
Double_t | DoUnfold (Double_t tau, const TH1 *hist_y, Double_t scaleBias=0.0) |
virtual Int_t | SetInput (const TH1 *hist_y, Double_t scaleBias=0.0, Double_t oneOverZeroError=0.0) |
virtual Double_t | DoUnfold (Double_t tau) |
virtual Int_t | ScanLcurve (Int_t nPoint, Double_t tauMin, Double_t tauMax, TGraph **lCurve, TSpline **logTauX=0, TSpline **logTauY=0) |
TH1D * | GetOutput (const char *name, const char *title, Double_t x0=0.0, Double_t x1=0.0) const |
TH1D * | GetBias (const char *name, const char *title, Double_t x0=0.0, Double_t x1=0.0) const |
TH1D * | GetFoldedOutput (const char *name, const char *title, Double_t y0=0.0, Double_t y1=0.0) const |
TH1D * | GetInput (const char *name, const char *title, Double_t y0=0.0, Double_t y1=0.0) const |
TH2D * | GetRhoIJ (const char *name, const char *title, Double_t x0=0.0, Double_t x1=0.0) const |
TH2D * | GetEmatrix (const char *name, const char *title, Double_t x0=0.0, Double_t x1=0.0) const |
TH1D * | GetRhoI (const char *name, const char *title, Double_t x0=0.0, Double_t x1=0.0) const |
TH2D * | GetLsquared (const char *name, const char *title, Double_t x0=0.0, Double_t x1=0.0) const |
void | GetOutput (TH1 *output, const Int_t *binMap=0) const |
void | GetEmatrix (TH2 *ematrix, const Int_t *binMap=0) const |
Double_t | GetRhoI (TH1 *rhoi, TH2 *ematrixinv=0, const Int_t *binMap=0) const |
void | GetRhoIJ (TH2 *rhoij, const Int_t *binMap=0) const |
Double_t | GetTau (void) const |
Double_t | GetRhoMax (void) const |
Double_t | GetRhoAvg (void) const |
Double_t | GetChi2A (void) const |
Double_t | GetChi2L (void) const |
virtual Double_t | GetLcurveX (void) const |
virtual Double_t | GetLcurveY (void) const |
Int_t | GetNdf (void) const |
Int_t | GetNpar (void) const |
Static Public Member Functions | |
static const char * | GetTUnfoldVersion (void) |
static const char * | GetTUnfoldVersion (void) |
Protected Member Functions | |
TUnfold (void) | |
virtual Double_t | DoUnfold (void) |
virtual void | ClearResults (void) |
TMatrixDSparse * | MultiplyMSparseM (const TMatrixDSparse *a, const TMatrixD *b) const |
TMatrixDSparse * | MultiplyMSparseMSparse (const TMatrixDSparse *a, const TMatrixDSparse *b) const |
TMatrixDSparse * | MultiplyMSparseTranspMSparse (const TMatrixDSparse *a, const TMatrixDSparse *b) const |
TMatrixDSparse * | MultiplyMSparseMSparseTranspVector (const TMatrixDSparse *m1, const TMatrixDSparse *m2, const TMatrixTBase< Double_t > *v) const |
TMatrixD * | InvertMSparse (const TMatrixDSparse *A) const |
void | AddMSparse (TMatrixDSparse *dest, Double_t f, const TMatrixDSparse *src) |
TMatrixDSparse * | CreateSparseMatrix (Int_t nrow, Int_t ncol, Int_t nele, Int_t *row, Int_t *col, Double_t *data) const |
Int_t | GetNx (void) const |
Int_t | GetNy (void) const |
void | ErrorMatrixToHist (TH2 *ematrix, const TMatrixDSparse *emat, const Int_t *binMap, Bool_t doClear) const |
const TMatrixDSparse * | GetDXDY (void) const |
const TMatrixDSparse * | GetDXDAM (int i) const |
const TMatrixDSparse * | GetDXDAZ (int i) const |
const TMatrixDSparse * | GetDXDtauSquared (void) const |
const TMatrixDSparse * | GetAx (void) const |
const TMatrixDSparse * | GetEinv (void) const |
const TMatrixDSparse * | GetE (void) const |
const TMatrixDSparse * | GetVxx (void) const |
const TMatrixDSparse * | GetVxxInv (void) const |
const TMatrixD * | GetX (void) const |
TUnfold (void) | |
virtual Double_t | DoUnfold (void) |
virtual void | ClearResults (void) |
TMatrixDSparse * | MultiplyMSparseM (const TMatrixDSparse *a, const TMatrixD *b) const |
TMatrixDSparse * | MultiplyMSparseMSparse (const TMatrixDSparse *a, const TMatrixDSparse *b) const |
TMatrixDSparse * | MultiplyMSparseTranspMSparse (const TMatrixDSparse *a, const TMatrixDSparse *b) const |
TMatrixDSparse * | MultiplyMSparseMSparseTranspVector (const TMatrixDSparse *m1, const TMatrixDSparse *m2, const TMatrixTBase< Double_t > *v) const |
TMatrixD * | InvertMSparse (const TMatrixDSparse *A) const |
void | AddMSparse (TMatrixDSparse *dest, Double_t f, const TMatrixDSparse *src) |
TMatrixDSparse * | CreateSparseMatrix (Int_t nrow, Int_t ncol, Int_t nele, Int_t *row, Int_t *col, Double_t *data) const |
Int_t | GetNx (void) const |
Int_t | GetNy (void) const |
void | ErrorMatrixToHist (TH2 *ematrix, const TMatrixDSparse *emat, const Int_t *binMap, Bool_t doClear) const |
const TMatrixDSparse * | GetDXDY (void) const |
const TMatrixDSparse * | GetDXDAM (int i) const |
const TMatrixDSparse * | GetDXDAZ (int i) const |
const TMatrixDSparse * | GetDXDtauSquared (void) const |
const TMatrixDSparse * | GetAx (void) const |
const TMatrixDSparse * | GetEinv (void) const |
const TMatrixDSparse * | GetE (void) const |
const TMatrixDSparse * | GetVxx (void) const |
const TMatrixDSparse * | GetVxxInv (void) const |
const TMatrixD * | GetX (void) const |
Static Protected Member Functions | |
static Bool_t | InvertMConditioned (TMatrixD *A) |
static void | DeleteMatrix (TMatrixD **m) |
static void | DeleteMatrix (TMatrixDSparse **m) |
static Bool_t | InvertMConditioned (TMatrixD *A) |
static void | DeleteMatrix (TMatrixD **m) |
static void | DeleteMatrix (TMatrixDSparse **m) |
Protected Attributes | |
TMatrixDSparse * | fA |
TMatrixDSparse * | fLsquared |
TMatrixDSparse * | fVyy |
TMatrixD * | fY |
TMatrixD * | fX0 |
Double_t | fTauSquared |
Double_t | fBiasScale |
TArrayI | fXToHist |
TArrayI | fHistToX |
TArrayD | fSumOverY |
EConstraint | fConstraint |
ERegMode | fRegMode |
TMatrixDSparse * | fA |
TMatrixDSparse * | fLsquared |
TMatrixDSparse * | fVyy |
TMatrixD * | fY |
TMatrixD * | fX0 |
Private Member Functions | |
void | InitTUnfold (void) |
void | InitTUnfold (void) |
Private Attributes | |
TMatrixD * | fX |
TMatrixDSparse * | fVxx |
TMatrixDSparse * | fVxxInv |
TMatrixDSparse * | fAx |
Double_t | fChi2A |
Double_t | fLXsquared |
Double_t | fRhoMax |
Double_t | fRhoAvg |
Int_t | fNdf |
TMatrixDSparse * | fDXDAM [2] |
TMatrixDSparse * | fDXDAZ [2] |
TMatrixDSparse * | fDXDtauSquared |
TMatrixDSparse * | fDXDY |
TMatrixDSparse * | fEinv |
TMatrixDSparse * | fE |
TMatrixD * | fX |
TMatrixDSparse * | fVxx |
TMatrixDSparse * | fVxxInv |
TMatrixDSparse * | fAx |
TMatrixDSparse * | fDXDAM [2] |
TMatrixDSparse * | fDXDAZ [2] |
TMatrixDSparse * | fDXDtauSquared |
TMatrixDSparse * | fDXDY |
TMatrixDSparse * | fEinv |
TMatrixDSparse * | fE |
Definition at line 71 of file TUnfold.h.
enum TUnfold::EConstraint |
enum TUnfold::ERegMode |
enum TUnfold::EHistMap |
enum TUnfold::EConstraint |
enum TUnfold::ERegMode |
enum TUnfold::EHistMap |
TUnfold::TUnfold | ( | void | ) | [protected] |
TUnfold::TUnfold | ( | const TH2 * | hist_A, | |
EHistMap | histmap, | |||
ERegMode | regmode = kRegModeSize , |
|||
EConstraint | constraint = kEConstraintArea | |||
) |
Definition at line 1450 of file TUnfold.cxx.
References CreateSparseMatrix(), TObject::Error(), fA, fHistToX, fLsquared, fSumOverY, fX0, fXToHist, TArrayD::GetArray(), TH1::GetBinContent(), TH1::GetNbinsX(), TH1::GetNbinsY(), GetNx(), TObject::Info(), InitTUnfold(), kHistMapOutputHoriz, kRegModeNone, RegularizeBins(), TArrayD::Set(), TArrayI::Set(), SetConstraint(), and TObject::Warning().
TUnfold::~TUnfold | ( | void | ) | [virtual] |
Definition at line 1649 of file TUnfold.cxx.
References ClearResults(), DeleteMatrix(), fA, fLsquared, fVyy, fX0, and fY.
TUnfold::TUnfold | ( | void | ) | [protected] |
TUnfold::TUnfold | ( | const TH2 * | hist_A, | |
EHistMap | histmap, | |||
ERegMode | regmode = kRegModeSize , |
|||
EConstraint | constraint = kEConstraintArea | |||
) |
virtual TUnfold::~TUnfold | ( | void | ) | [virtual] |
void TUnfold::InitTUnfold | ( | void | ) | [private] |
Definition at line 364 of file TUnfold.cxx.
References fA, fAx, fBiasScale, fChi2A, fConstraint, fDXDAM, fDXDAZ, fDXDtauSquared, fDXDY, fE, fEinv, fHistToX, fLsquared, fLXsquared, fNdf, fRegMode, fRhoAvg, fRhoMax, fSumOverY, fTauSquared, fVxx, fVxxInv, fVyy, fX, fX0, fXToHist, fY, kEConstraintNone, kRegModeNone, TArrayD::Set(), and TArrayI::Set().
Referenced by TUnfold().
Double_t TUnfold::DoUnfold | ( | void | ) | [protected, virtual] |
Definition at line 437 of file TUnfold.cxx.
References AddMSparse(), ClearResults(), CreateSparseMatrix(), d, data, DeleteMatrix(), RootCsg::epsilon, fA, TObject::Fatal(), fAx, fBiasScale, fChi2A, fConstraint, fDXDAM, fDXDAZ, fDXDtauSquared, fDXDY, fE, fEinv, fLsquared, fLXsquared, fRhoAvg, fRhoMax, fTauSquared, fVxx, fVxxInv, fVyy, fX, fX0, fY, TMatrixTSparse< Element >::GetColIndexArray(), TMatrixTSparse< Element >::GetMatrixArray(), TMatrixTBase< Element >::GetNcols(), TMatrixTBase< Element >::GetNrows(), GetNy(), TMatrixTSparse< Element >::GetRowIndexArray(), i, InvertMSparse(), k, kEConstraintNone, TMatrixT< Element >::kMinus, TMatrixT< Element >::kMult, MultiplyMSparseM(), MultiplyMSparseMSparse(), MultiplyMSparseMSparseTranspVector(), MultiplyMSparseTranspMSparse(), n, and TMath::Sqrt().
Referenced by DoUnfold(), and ScanLcurve().
void TUnfold::ClearResults | ( | void | ) | [protected, virtual] |
Definition at line 409 of file TUnfold.cxx.
References DeleteMatrix(), fAx, fChi2A, fDXDAM, fDXDAZ, fDXDtauSquared, fDXDY, fE, fEinv, fLXsquared, fRhoAvg, fRhoMax, fVxx, fVxxInv, fX, and i.
Referenced by TUnfoldSys::ClearResults(), DoUnfold(), SetConstraint(), SetInput(), and ~TUnfold().
TMatrixDSparse * TUnfold::MultiplyMSparseM | ( | const TMatrixDSparse * | a, | |
const TMatrixD * | b | |||
) | const [protected] |
Definition at line 972 of file TUnfold.cxx.
References a, b, TObject::Fatal(), i, j, and n.
Referenced by DoUnfold(), and InvertMSparse().
TMatrixDSparse * TUnfold::MultiplyMSparseMSparse | ( | const TMatrixDSparse * | a, | |
const TMatrixDSparse * | b | |||
) | const [protected] |
Definition at line 825 of file TUnfold.cxx.
References a, b, TObject::Fatal(), k, and n.
Referenced by DoUnfold(), TUnfoldSys::GetChi2Sys(), TUnfoldSys::GetDeltaSysBackgroundScale(), TUnfoldSys::GetEmatrixFromVyy(), TUnfoldSys::GetEmatrixSysBackgroundScale(), GetFoldedOutput(), InvertMSparse(), TUnfoldSys::PrepareSysError(), and TUnfoldSys::PrepareUncorrEmat().
TMatrixDSparse * TUnfold::MultiplyMSparseTranspMSparse | ( | const TMatrixDSparse * | a, | |
const TMatrixDSparse * | b | |||
) | const [protected] |
Definition at line 893 of file TUnfold.cxx.
References a, b, TObject::Fatal(), and n.
Referenced by DoUnfold(), TUnfoldSys::PrepareUncorrEmat(), and SetInput().
TMatrixDSparse * TUnfold::MultiplyMSparseMSparseTranspVector | ( | const TMatrixDSparse * | m1, | |
const TMatrixDSparse * | m2, | |||
const TMatrixTBase< Double_t > * | v | |||
) | const [protected] |
Definition at line 1025 of file TUnfold.cxx.
References Fatal(), TMatrixTSparse< Element >::GetColIndexArray(), TMatrixTSparse< Element >::GetMatrixArray(), TMatrixTBase< Element >::GetNcols(), TMatrixTBase< Element >::GetNrows(), TMatrixTSparse< Element >::GetRowIndexArray(), i, j, Rgl::Mc::k1, and Rgl::Mc::k2.
Referenced by TUnfoldSys::DoBackgroundSubtraction(), DoUnfold(), TUnfoldSys::GetChi2Sys(), TUnfoldSys::GetEmatrixFromVyy(), TUnfoldSys::GetEmatrixSysBackgroundScale(), TUnfoldSys::GetEmatrixSysSource(), TUnfoldSys::GetEmatrixSysTau(), and TUnfoldSys::PrepareUncorrEmat().
TMatrixD * TUnfold::InvertMSparse | ( | const TMatrixDSparse * | A | ) | const [protected] |
Definition at line 1169 of file TUnfold.cxx.
References A, C, CreateSparseMatrix(), DeleteMatrix(), TObject::Error(), error, TObject::Fatal(), TMatrixTSparse< Element >::GetColIndexArray(), TMatrixTSparse< Element >::GetMatrixArray(), TMatrixTBase< Element >::GetNcols(), TMatrixTBase< Element >::GetNrows(), TMatrixTSparse< Element >::GetRowIndexArray(), i, InvertMConditioned(), MultiplyMSparseM(), MultiplyMSparseMSparse(), and nC.
Referenced by TUnfoldSys::DoBackgroundSubtraction(), DoUnfold(), and TUnfoldSys::GetChi2Sys().
Definition at line 1413 of file TUnfold.cxx.
References A, TMath::Abs(), i, j, and TMath::Sqrt().
Referenced by GetRhoI(), and InvertMSparse().
void TUnfold::AddMSparse | ( | TMatrixDSparse * | dest, | |
Double_t | f, | |||
const TMatrixDSparse * | src | |||
) | [protected] |
Definition at line 1114 of file TUnfold.cxx.
References TObject::Fatal(), TMatrixTSparse< Element >::GetColIndexArray(), TMatrixTSparse< Element >::GetMatrixArray(), TMatrixTBase< Element >::GetNcols(), TMatrixTBase< Element >::GetNrows(), TMatrixTSparse< Element >::GetRowIndexArray(), n, and TMatrixTSparse< Element >::SetMatrixArray().
Referenced by TUnfoldSys::DoBackgroundSubtraction(), DoUnfold(), TUnfoldSys::GetChi2Sys(), TUnfoldSys::PrepareSysError(), and TUnfoldSys::PrepareUncorrEmat().
TMatrixDSparse * TUnfold::CreateSparseMatrix | ( | Int_t | nrow, | |
Int_t | ncol, | |||
Int_t | nele, | |||
Int_t * | row, | |||
Int_t * | col, | |||
Double_t * | data | |||
) | const [protected] |
Definition at line 817 of file TUnfold.cxx.
References A.
Referenced by TUnfoldSys::AddSysError(), DoUnfold(), InvertMSparse(), TUnfoldSys::PrepareSysError(), SetInput(), TUnfold(), and TUnfoldSys::TUnfoldSys().
Int_t TUnfold::GetNx | ( | void | ) | const [inline, protected] |
Definition at line 130 of file TUnfold.h.
References fA, and TMatrixTBase< Element >::GetNcols().
Referenced by TUnfoldSys::AddSysError(), GetBias(), GetLsquared(), GetNpar(), GetRhoI(), SetBias(), TUnfold(), and TUnfoldSys::TUnfoldSys().
Int_t TUnfold::GetNy | ( | void | ) | const [inline, protected] |
Definition at line 133 of file TUnfold.h.
References fA, and TMatrixTBase< Element >::GetNrows().
Referenced by TUnfoldSys::AddSysError(), TUnfoldSys::DoBackgroundSubtraction(), DoUnfold(), GetFoldedOutput(), GetInput(), TUnfoldSys::PrepareSysError(), SetInput(), TUnfoldSys::SubtractBackground(), and TUnfoldSys::TUnfoldSys().
void TUnfold::ErrorMatrixToHist | ( | TH2 * | ematrix, | |
const TMatrixDSparse * | emat, | |||
const Int_t * | binMap, | |||
Bool_t | doClear | |||
) | const [protected] |
Definition at line 2614 of file TUnfold.cxx.
References fHistToX, TH1::GetBinContent(), TMatrixTSparse< Element >::GetColIndexArray(), TMatrixTSparse< Element >::GetMatrixArray(), TH1::GetNbinsX(), TMatrixTSparse< Element >::GetRowIndexArray(), TArray::GetSize(), i, j, TH1::SetBinContent(), and TH1::SetBinError().
Referenced by GetEmatrix(), TUnfoldSys::GetEmatrixFromVyy(), TUnfoldSys::GetEmatrixSysBackgroundScale(), TUnfoldSys::GetEmatrixSysSource(), TUnfoldSys::GetEmatrixSysTau(), and TUnfoldSys::GetEmatrixSysUncorr().
const TMatrixDSparse* TUnfold::GetDXDY | ( | void | ) | const [inline, protected] |
Definition at line 138 of file TUnfold.h.
References fDXDY.
Referenced by TUnfoldSys::GetDeltaSysBackgroundScale(), TUnfoldSys::GetEmatrixFromVyy(), and TUnfoldSys::GetEmatrixSysBackgroundScale().
const TMatrixDSparse* TUnfold::GetDXDAM | ( | int | i | ) | const [inline, protected] |
Definition at line 139 of file TUnfold.h.
References fDXDAM.
Referenced by TUnfoldSys::PrepareSysError().
const TMatrixDSparse* TUnfold::GetDXDAZ | ( | int | i | ) | const [inline, protected] |
Definition at line 140 of file TUnfold.h.
References fDXDAZ.
Referenced by TUnfoldSys::PrepareUncorrEmat().
const TMatrixDSparse* TUnfold::GetDXDtauSquared | ( | void | ) | const [inline, protected] |
Definition at line 141 of file TUnfold.h.
References fDXDtauSquared.
Referenced by TUnfoldSys::PrepareSysError().
const TMatrixDSparse* TUnfold::GetAx | ( | void | ) | const [inline, protected] |
const TMatrixDSparse* TUnfold::GetEinv | ( | void | ) | const [inline, protected] |
const TMatrixDSparse* TUnfold::GetE | ( | void | ) | const [inline, protected] |
const TMatrixDSparse* TUnfold::GetVxx | ( | void | ) | const [inline, protected] |
const TMatrixDSparse* TUnfold::GetVxxInv | ( | void | ) | const [inline, protected] |
const TMatrixD* TUnfold::GetX | ( | void | ) | const [inline, protected] |
void TUnfold::DeleteMatrix | ( | TMatrixD ** | m | ) | [static, protected] |
Definition at line 399 of file TUnfold.cxx.
References m.
Referenced by ClearResults(), TUnfoldSys::ClearResults(), TUnfoldSys::DoBackgroundSubtraction(), DoUnfold(), TUnfoldSys::GetChi2Sys(), TUnfoldSys::GetEmatrixFromVyy(), TUnfoldSys::GetEmatrixSysBackgroundScale(), TUnfoldSys::GetEmatrixSysSource(), TUnfoldSys::GetEmatrixSysTau(), GetFoldedOutput(), InvertMSparse(), TUnfoldSys::PrepareSysError(), TUnfoldSys::PrepareUncorrEmat(), SetBias(), SetInput(), TUnfoldSys::SetTauError(), TUnfoldSys::TUnfoldSys(), ~TUnfold(), and TUnfoldSys::~TUnfoldSys().
void TUnfold::DeleteMatrix | ( | TMatrixDSparse ** | m | ) | [static, protected] |
static const char* TUnfold::GetTUnfoldVersion | ( | void | ) | [static] |
Referenced by G__G__Hist_391_0_29(), G__setup_memfuncTUnfold(), and testUnfold4().
void TUnfold::SetBias | ( | const TH1 * | bias | ) |
Definition at line 1662 of file TUnfold.cxx.
References DeleteMatrix(), fX0, fXToHist, GetNx(), and i.
void TUnfold::SetConstraint | ( | EConstraint | constraint | ) |
Definition at line 2510 of file TUnfold.cxx.
References ClearResults(), fConstraint, and TObject::Info().
Referenced by testUnfold4(), and TUnfold().
Definition at line 1673 of file TUnfold.cxx.
References fHistToX, fRegMode, i, kRegModeMixed, kRegModeNone, and kRegModeSize.
Referenced by RegularizeBins().
Definition at line 1692 of file TUnfold.cxx.
References fHistToX, fRegMode, kRegModeDerivative, kRegModeMixed, and kRegModeNone.
Referenced by RegularizeBins().
Int_t TUnfold::RegularizeCurvature | ( | int | left_bin, | |
int | center_bin, | |||
int | right_bin, | |||
Double_t | scale_left = 1.0 , |
|||
Double_t | scale_right = 1.0 | |||
) |
Definition at line 1718 of file TUnfold.cxx.
References fHistToX, fRegMode, kRegModeCurvature, kRegModeMixed, and kRegModeNone.
Referenced by RegularizeBins().
Definition at line 1759 of file TUnfold.cxx.
References TObject::Error(), i, kRegModeCurvature, kRegModeDerivative, kRegModeSize, RegularizeCurvature(), RegularizeDerivative(), and RegularizeSize().
Referenced by RegularizeBins2D(), testUnfold2(), and TUnfold().
Int_t TUnfold::SetInput | ( | const TH1 * | hist_y, | |
Double_t | scaleBias = 0.0 , |
|||
Double_t | oneOverZeroError = 0.0 | |||
) | [virtual] |
Definition at line 1844 of file TUnfold.cxx.
References ClearResults(), CreateSparseMatrix(), DeleteMatrix(), fA, fBiasScale, fNdf, fVyy, fXToHist, fY, TMatrixTSparse< Element >::GetColIndexArray(), GetNpar(), TMatrixTBase< Element >::GetNrows(), GetNy(), TMatrixTSparse< Element >::GetRowIndexArray(), i, MultiplyMSparseTranspMSparse(), and TObject::Warning().
Referenced by DoUnfold(), TUnfoldSys::SetInput(), and testUnfold2().
Int_t TUnfold::ScanLcurve | ( | Int_t | nPoint, | |
Double_t | tauMin, | |||
Double_t | tauMax, | |||
TGraph ** | lCurve, | |||
TSpline ** | logTauX = 0 , |
|||
TSpline ** | logTauY = 0 | |||
) | [virtual] |
Definition at line 1984 of file TUnfold.cxx.
References b, c, TCanvas::cd(), d, TPad::Divide(), DoUnfold(), TSpline::Draw(), TObject::Error(), TSpline3::Eval(), fChi2A, TSpline3::GetCoeff(), GetLcurveX(), GetLcurveY(), GetNdf(), i, TObject::Info(), TMath::Log10(), n, TMath::Power(), TPad::SaveAs(), TMath::Sqrt(), x, x0, xy, and y.
Referenced by testUnfold1(), testUnfold2(), testUnfold3(), and testUnfold4().
TH1D * TUnfold::GetOutput | ( | const char * | name, | |
const char * | title, | |||
Double_t | x0 = 0.0 , |
|||
Double_t | x1 = 0.0 | |||
) | const |
Definition at line 2298 of file TUnfold.cxx.
References fHistToX, TArray::GetSize(), nbins, and out.
Referenced by testUnfold1(), testUnfold2(), testUnfold3(), and testUnfold4().
TH1D * TUnfold::GetBias | ( | const char * | name, | |
const char * | title, | |||
Double_t | x0 = 0.0 , |
|||
Double_t | x1 = 0.0 | |||
) | const |
Definition at line 2318 of file TUnfold.cxx.
References fHistToX, fX0, fXToHist, GetNx(), TArray::GetSize(), i, nbins, and out.
TH1D * TUnfold::GetFoldedOutput | ( | const char * | name, | |
const char * | title, | |||
Double_t | y0 = 0.0 , |
|||
Double_t | y1 = 0.0 | |||
) | const |
Definition at line 2339 of file TUnfold.cxx.
References DeleteMatrix(), fA, fAx, fVxx, TMatrixTSparse< Element >::GetColIndexArray(), TMatrixTSparse< Element >::GetMatrixArray(), GetNy(), TMatrixTSparse< Element >::GetRowIndexArray(), i, MultiplyMSparseMSparse(), out, and TMath::Sqrt().
Referenced by testUnfold1(), and testUnfold2().
TH1D * TUnfold::GetInput | ( | const char * | name, | |
const char * | title, | |||
Double_t | y0 = 0.0 , |
|||
Double_t | y1 = 0.0 | |||
) | const |
Definition at line 2388 of file TUnfold.cxx.
References fVyy, fY, TMatrixTSparse< Element >::GetColIndexArray(), TMatrixTSparse< Element >::GetMatrixArray(), GetNy(), TMatrixTSparse< Element >::GetRowIndexArray(), i, out, and TMath::Sqrt().
Referenced by testUnfold1().
TH2D * TUnfold::GetRhoIJ | ( | const char * | name, | |
const char * | title, | |||
Double_t | x0 = 0.0 , |
|||
Double_t | x1 = 0.0 | |||
) | const |
Definition at line 2421 of file TUnfold.cxx.
References fHistToX, TArray::GetSize(), nbins, and out.
TH2D * TUnfold::GetEmatrix | ( | const char * | name, | |
const char * | title, | |||
Double_t | x0 = 0.0 , |
|||
Double_t | x1 = 0.0 | |||
) | const |
Definition at line 2440 of file TUnfold.cxx.
References fHistToX, TArray::GetSize(), nbins, and out.
Referenced by TUnfoldSys::GetEmatrixTotal(), GetRhoIJ(), and testUnfold1().
TH1D * TUnfold::GetRhoI | ( | const char * | name, | |
const char * | title, | |||
Double_t | x0 = 0.0 , |
|||
Double_t | x1 = 0.0 | |||
) | const |
Definition at line 2460 of file TUnfold.cxx.
References fHistToX, TArray::GetSize(), nbins, and out.
Referenced by testUnfold1(), and testUnfold2().
TH2D * TUnfold::GetLsquared | ( | const char * | name, | |
const char * | title, | |||
Double_t | x0 = 0.0 , |
|||
Double_t | x1 = 0.0 | |||
) | const |
Definition at line 2480 of file TUnfold.cxx.
References fHistToX, fLsquared, fTauSquared, fXToHist, TMatrixTSparse< Element >::GetColIndexArray(), TMatrixTSparse< Element >::GetMatrixArray(), GetNx(), TMatrixTSparse< Element >::GetRowIndexArray(), TArray::GetSize(), i, j, nbins, and out.
Definition at line 2545 of file TUnfold.cxx.
References c, fHistToX, fVxx, fX, TMatrixTSparse< Element >::GetColIndexArray(), TMatrixTSparse< Element >::GetMatrixArray(), TMatrixTSparse< Element >::GetRowIndexArray(), TArray::GetSize(), i, j, output(), and TMath::Sqrt().
Definition at line 2692 of file TUnfold.cxx.
References fVxx, fXToHist, TMatrixTSparse< Element >::GetColIndexArray(), TMatrixTSparse< Element >::GetMatrixArray(), TH1::GetNbinsX(), GetNx(), TMatrixTSparse< Element >::GetRowIndexArray(), i, InvertMConditioned(), j, n, TH1::SetBinContent(), and TMath::Sqrt().
Definition at line 2794 of file TUnfold.cxx.
References TH1::GetBinContent(), GetEmatrix(), TH1::GetNbinsX(), i, j, TH1::SetBinContent(), and TMath::Sqrt().
Double_t TUnfold::GetTau | ( | void | ) | const |
Definition at line 2517 of file TUnfold.cxx.
References fTauSquared, and TMath::Sqrt().
Referenced by testUnfold1(), and testUnfold2().
Double_t TUnfold::GetRhoMax | ( | void | ) | const [inline] |
Double_t TUnfold::GetRhoAvg | ( | void | ) | const [inline] |
Double_t TUnfold::GetChi2A | ( | void | ) | const [inline] |
Definition at line 191 of file TUnfold.h.
References fChi2A.
Referenced by testUnfold1(), and testUnfold2().
Double_t TUnfold::GetChi2L | ( | void | ) | const |
Definition at line 2523 of file TUnfold.cxx.
References fLXsquared, and fTauSquared.
Referenced by testUnfold1(), and testUnfold2().
Double_t TUnfold::GetLcurveX | ( | void | ) | const [virtual] |
Definition at line 2535 of file TUnfold.cxx.
References fChi2A, and TMath::Log10().
Referenced by ScanLcurve().
Double_t TUnfold::GetLcurveY | ( | void | ) | const [virtual] |
Definition at line 2540 of file TUnfold.cxx.
References fLXsquared, and TMath::Log10().
Referenced by ScanLcurve().
Int_t TUnfold::GetNdf | ( | void | ) | const [inline] |
Definition at line 195 of file TUnfold.h.
References fNdf.
Referenced by ScanLcurve(), testUnfold1(), and testUnfold2().
Int_t TUnfold::GetNpar | ( | void | ) | const |
void TUnfold::InitTUnfold | ( | void | ) | [private] |
virtual Double_t TUnfold::DoUnfold | ( | void | ) | [protected, virtual] |
virtual void TUnfold::ClearResults | ( | void | ) | [protected, virtual] |
TMatrixDSparse* TUnfold::MultiplyMSparseM | ( | const TMatrixDSparse * | a, | |
const TMatrixD * | b | |||
) | const [protected] |
TMatrixDSparse* TUnfold::MultiplyMSparseMSparse | ( | const TMatrixDSparse * | a, | |
const TMatrixDSparse * | b | |||
) | const [protected] |
TMatrixDSparse* TUnfold::MultiplyMSparseTranspMSparse | ( | const TMatrixDSparse * | a, | |
const TMatrixDSparse * | b | |||
) | const [protected] |
TMatrixDSparse* TUnfold::MultiplyMSparseMSparseTranspVector | ( | const TMatrixDSparse * | m1, | |
const TMatrixDSparse * | m2, | |||
const TMatrixTBase< Double_t > * | v | |||
) | const [protected] |
TMatrixD* TUnfold::InvertMSparse | ( | const TMatrixDSparse * | A | ) | const [protected] |
void TUnfold::AddMSparse | ( | TMatrixDSparse * | dest, | |
Double_t | f, | |||
const TMatrixDSparse * | src | |||
) | [protected] |
TMatrixDSparse* TUnfold::CreateSparseMatrix | ( | Int_t | nrow, | |
Int_t | ncol, | |||
Int_t | nele, | |||
Int_t * | row, | |||
Int_t * | col, | |||
Double_t * | data | |||
) | const [protected] |
Int_t TUnfold::GetNx | ( | void | ) | const [inline, protected] |
Int_t TUnfold::GetNy | ( | void | ) | const [inline, protected] |
void TUnfold::ErrorMatrixToHist | ( | TH2 * | ematrix, | |
const TMatrixDSparse * | emat, | |||
const Int_t * | binMap, | |||
Bool_t | doClear | |||
) | const [protected] |
const TMatrixDSparse* TUnfold::GetDXDY | ( | void | ) | const [inline, protected] |
const TMatrixDSparse* TUnfold::GetDXDAM | ( | int | i | ) | const [inline, protected] |
const TMatrixDSparse* TUnfold::GetDXDAZ | ( | int | i | ) | const [inline, protected] |
const TMatrixDSparse* TUnfold::GetDXDtauSquared | ( | void | ) | const [inline, protected] |
const TMatrixDSparse* TUnfold::GetAx | ( | void | ) | const [inline, protected] |
const TMatrixDSparse* TUnfold::GetEinv | ( | void | ) | const [inline, protected] |
const TMatrixDSparse* TUnfold::GetE | ( | void | ) | const [inline, protected] |
const TMatrixDSparse* TUnfold::GetVxx | ( | void | ) | const [inline, protected] |
const TMatrixDSparse* TUnfold::GetVxxInv | ( | void | ) | const [inline, protected] |
const TMatrixD* TUnfold::GetX | ( | void | ) | const [inline, protected] |
static void TUnfold::DeleteMatrix | ( | TMatrixD ** | m | ) | [static, protected] |
static void TUnfold::DeleteMatrix | ( | TMatrixDSparse ** | m | ) | [static, protected] |
static const char* TUnfold::GetTUnfoldVersion | ( | void | ) | [static] |
void TUnfold::SetBias | ( | const TH1 * | bias | ) |
void TUnfold::SetConstraint | ( | EConstraint | constraint | ) |
Int_t TUnfold::RegularizeCurvature | ( | int | left_bin, | |
int | center_bin, | |||
int | right_bin, | |||
Double_t | scale_left = 1.0 , |
|||
Double_t | scale_right = 1.0 | |||
) |
Int_t TUnfold::RegularizeBins2D | ( | int | start_bin, | |
int | step1, | |||
int | nbin1, | |||
int | step2, | |||
int | nbin2, | |||
ERegMode | regmode | |||
) |
virtual Int_t TUnfold::SetInput | ( | const TH1 * | hist_y, | |
Double_t | scaleBias = 0.0 , |
|||
Double_t | oneOverZeroError = 0.0 | |||
) | [virtual] |
virtual Int_t TUnfold::ScanLcurve | ( | Int_t | nPoint, | |
Double_t | tauMin, | |||
Double_t | tauMax, | |||
TGraph ** | lCurve, | |||
TSpline ** | logTauX = 0 , |
|||
TSpline ** | logTauY = 0 | |||
) | [virtual] |
TH1D* TUnfold::GetOutput | ( | const char * | name, | |
const char * | title, | |||
Double_t | x0 = 0.0 , |
|||
Double_t | x1 = 0.0 | |||
) | const |
TH1D* TUnfold::GetBias | ( | const char * | name, | |
const char * | title, | |||
Double_t | x0 = 0.0 , |
|||
Double_t | x1 = 0.0 | |||
) | const |
TH1D* TUnfold::GetFoldedOutput | ( | const char * | name, | |
const char * | title, | |||
Double_t | y0 = 0.0 , |
|||
Double_t | y1 = 0.0 | |||
) | const |
TH1D* TUnfold::GetInput | ( | const char * | name, | |
const char * | title, | |||
Double_t | y0 = 0.0 , |
|||
Double_t | y1 = 0.0 | |||
) | const |
TH2D* TUnfold::GetRhoIJ | ( | const char * | name, | |
const char * | title, | |||
Double_t | x0 = 0.0 , |
|||
Double_t | x1 = 0.0 | |||
) | const |
TH2D* TUnfold::GetEmatrix | ( | const char * | name, | |
const char * | title, | |||
Double_t | x0 = 0.0 , |
|||
Double_t | x1 = 0.0 | |||
) | const |
TH1D* TUnfold::GetRhoI | ( | const char * | name, | |
const char * | title, | |||
Double_t | x0 = 0.0 , |
|||
Double_t | x1 = 0.0 | |||
) | const |
TH2D* TUnfold::GetLsquared | ( | const char * | name, | |
const char * | title, | |||
Double_t | x0 = 0.0 , |
|||
Double_t | x1 = 0.0 | |||
) | const |
Double_t TUnfold::GetTau | ( | void | ) | const |
Double_t TUnfold::GetRhoMax | ( | void | ) | const [inline] |
Double_t TUnfold::GetRhoAvg | ( | void | ) | const [inline] |
Double_t TUnfold::GetChi2A | ( | void | ) | const [inline] |
Double_t TUnfold::GetChi2L | ( | void | ) | const |
virtual Double_t TUnfold::GetLcurveX | ( | void | ) | const [virtual] |
virtual Double_t TUnfold::GetLcurveY | ( | void | ) | const [virtual] |
Int_t TUnfold::GetNdf | ( | void | ) | const [inline] |
Int_t TUnfold::GetNpar | ( | void | ) | const |
TMatrixDSparse* TUnfold::fA [protected] |
Definition at line 87 of file TUnfold.h.
Referenced by TUnfoldSys::AddSysError(), DoUnfold(), TUnfoldSys::GetChi2Sys(), GetFoldedOutput(), GetNx(), GetNy(), InitTUnfold(), TUnfoldSys::PrepareSysError(), TUnfoldSys::PrepareUncorrEmat(), SetInput(), TUnfold(), and ~TUnfold().
TMatrixDSparse* TUnfold::fLsquared [protected] |
Definition at line 88 of file TUnfold.h.
Referenced by DoUnfold(), GetLsquared(), InitTUnfold(), TUnfold(), and ~TUnfold().
TMatrixDSparse* TUnfold::fVyy [protected] |
Definition at line 89 of file TUnfold.h.
Referenced by TUnfoldSys::DoBackgroundSubtraction(), DoUnfold(), TUnfoldSys::GetChi2Sys(), GetInput(), InitTUnfold(), TUnfoldSys::SetInput(), SetInput(), and ~TUnfold().
TMatrixD* TUnfold::fY [protected] |
Definition at line 90 of file TUnfold.h.
Referenced by TUnfoldSys::DoBackgroundSubtraction(), DoUnfold(), TUnfoldSys::GetChi2Sys(), GetInput(), InitTUnfold(), TUnfoldSys::SetInput(), SetInput(), and ~TUnfold().
TMatrixD* TUnfold::fX0 [protected] |
Definition at line 91 of file TUnfold.h.
Referenced by DoUnfold(), GetBias(), InitTUnfold(), SetBias(), TUnfold(), and ~TUnfold().
Double_t TUnfold::fTauSquared [protected] |
Definition at line 92 of file TUnfold.h.
Referenced by DoUnfold(), GetChi2L(), GetLsquared(), GetTau(), InitTUnfold(), and TUnfoldSys::PrepareSysError().
Double_t TUnfold::fBiasScale [protected] |
TArrayI TUnfold::fXToHist [protected] |
Definition at line 94 of file TUnfold.h.
Referenced by TUnfoldSys::AddSysError(), GetBias(), GetLsquared(), GetRhoI(), InitTUnfold(), SetBias(), SetInput(), TUnfold(), and TUnfoldSys::TUnfoldSys().
TArrayI TUnfold::fHistToX [protected] |
Definition at line 95 of file TUnfold.h.
Referenced by ErrorMatrixToHist(), GetBias(), GetEmatrix(), GetLsquared(), GetOutput(), GetRhoI(), GetRhoIJ(), InitTUnfold(), RegularizeCurvature(), RegularizeDerivative(), RegularizeSize(), TUnfold(), and TUnfoldSys::VectorMapToHist().
TArrayD TUnfold::fSumOverY [protected] |
Definition at line 96 of file TUnfold.h.
Referenced by TUnfoldSys::AddSysError(), InitTUnfold(), TUnfold(), and TUnfoldSys::TUnfoldSys().
EConstraint TUnfold::fConstraint [protected] |
Definition at line 97 of file TUnfold.h.
Referenced by DoUnfold(), InitTUnfold(), and SetConstraint().
ERegMode TUnfold::fRegMode [protected] |
Definition at line 98 of file TUnfold.h.
Referenced by InitTUnfold(), RegularizeCurvature(), RegularizeDerivative(), and RegularizeSize().
TMatrixD* TUnfold::fX [private] |
Definition at line 100 of file TUnfold.h.
Referenced by ClearResults(), DoUnfold(), GetOutput(), GetX(), and InitTUnfold().
TMatrixDSparse* TUnfold::fVxx [private] |
Definition at line 101 of file TUnfold.h.
Referenced by ClearResults(), DoUnfold(), GetEmatrix(), GetFoldedOutput(), GetOutput(), GetRhoI(), GetVxx(), and InitTUnfold().
TMatrixDSparse* TUnfold::fVxxInv [private] |
Definition at line 102 of file TUnfold.h.
Referenced by ClearResults(), DoUnfold(), GetVxxInv(), and InitTUnfold().
TMatrixDSparse* TUnfold::fAx [private] |
Definition at line 103 of file TUnfold.h.
Referenced by ClearResults(), DoUnfold(), GetAx(), GetFoldedOutput(), and InitTUnfold().
Double_t TUnfold::fChi2A [private] |
Definition at line 104 of file TUnfold.h.
Referenced by ClearResults(), DoUnfold(), GetChi2A(), GetLcurveX(), InitTUnfold(), and ScanLcurve().
Double_t TUnfold::fLXsquared [private] |
Definition at line 105 of file TUnfold.h.
Referenced by ClearResults(), DoUnfold(), GetChi2L(), GetLcurveY(), and InitTUnfold().
Double_t TUnfold::fRhoMax [private] |
Definition at line 106 of file TUnfold.h.
Referenced by ClearResults(), DoUnfold(), GetRhoMax(), and InitTUnfold().
Double_t TUnfold::fRhoAvg [private] |
Definition at line 107 of file TUnfold.h.
Referenced by ClearResults(), DoUnfold(), GetRhoAvg(), and InitTUnfold().
Int_t TUnfold::fNdf [private] |
TMatrixDSparse* TUnfold::fDXDAM[2] [private] |
Definition at line 109 of file TUnfold.h.
Referenced by ClearResults(), DoUnfold(), GetDXDAM(), and InitTUnfold().
TMatrixDSparse* TUnfold::fDXDAZ[2] [private] |
Definition at line 110 of file TUnfold.h.
Referenced by ClearResults(), DoUnfold(), GetDXDAZ(), and InitTUnfold().
TMatrixDSparse* TUnfold::fDXDtauSquared [private] |
Definition at line 111 of file TUnfold.h.
Referenced by ClearResults(), DoUnfold(), GetDXDtauSquared(), and InitTUnfold().
TMatrixDSparse* TUnfold::fDXDY [private] |
Definition at line 112 of file TUnfold.h.
Referenced by ClearResults(), DoUnfold(), GetDXDY(), and InitTUnfold().
TMatrixDSparse* TUnfold::fEinv [private] |
Definition at line 113 of file TUnfold.h.
Referenced by ClearResults(), DoUnfold(), GetEinv(), and InitTUnfold().
TMatrixDSparse* TUnfold::fE [private] |
Definition at line 114 of file TUnfold.h.
Referenced by ClearResults(), DoUnfold(), GetE(), and InitTUnfold().
TMatrixDSparse* TUnfold::fA [protected] |
TMatrixDSparse* TUnfold::fLsquared [protected] |
TMatrixDSparse* TUnfold::fVyy [protected] |
TMatrixD* TUnfold::fY [protected] |
TMatrixD* TUnfold::fX0 [protected] |
TMatrixD* TUnfold::fX [private] |
TMatrixDSparse* TUnfold::fVxx [private] |
TMatrixDSparse* TUnfold::fVxxInv [private] |
TMatrixDSparse* TUnfold::fAx [private] |
TMatrixDSparse* TUnfold::fDXDAM[2] [private] |
TMatrixDSparse* TUnfold::fDXDAZ[2] [private] |
TMatrixDSparse* TUnfold::fDXDtauSquared [private] |
TMatrixDSparse* TUnfold::fDXDY [private] |
TMatrixDSparse* TUnfold::fEinv [private] |
TMatrixDSparse* TUnfold::fE [private] |