13 #ifndef ROOT_TUnfoldDensity 14 #define ROOT_TUnfoldDensity 81 const char *axisSteering);
95 const char *regularisationDistribution=0,
96 const char *regularisationAxisSteering=
"*[UOB]");
101 const char *distribution,
102 const char *axisSteering);
122 const char *distribution=0,
const char *projectionMode=0,
TGraph **lCurvePlot=0,
TSpline **logTauXPlot=0,
TSpline **logTauYPlot=0);
126 const char *histogramTitle=0,
const char *distributionName=0,
127 const char *projectionMode=0,
Bool_t useAxisBinning=
kTRUE)
const;
129 const char *histogramTitle=0,
const char *distributionName=0,
130 const char *projectionMode=0,
Bool_t useAxisBinning=
kTRUE)
const;
132 const char *histogramTitle=0,
133 const char *distributionName=0,
134 const char *projectionMode=0,
Bool_t useAxisBinning=
kTRUE,
137 const char *histogramTitle=0,
138 const char *distributionName=0,
139 const char *projectionMode=0,
Bool_t useAxisBinning=
kTRUE,
Int_t includeError=3)
const;
140 TH1 *
GetInput(
const char *histogramName,
const char *histogramTitle=0,
141 const char *distributionName=0,
142 const char *projectionMode=0,
Bool_t useAxisBinning=
kTRUE)
const;
144 const char *histogramName,
145 const char *histogramTitle=0,
146 const char *distributionName=0,
147 const char *projectionMode=0,
Bool_t useAxisBinning=
kTRUE);
149 const char *histogramName,
150 const char *histogramTitle=0,
151 const char *distributionName=0,
152 const char *projectionMode=0,
Bool_t useAxisBinning=
kTRUE);
154 const char *histogramTitle=0,
155 const char *distributionName=0,
156 const char *projectionMode=0,
Bool_t useAxisBinning=
kTRUE);
158 const char *histogramTitle=0,
159 const char *distributionName=0,
160 const char *projectionMode=0,
Bool_t useAxisBinning=
kTRUE);
162 const char *histogramName,
163 const char *histogramTitle=0,
164 const char *distributionName=0,
165 const char *projectionMode=0,
Bool_t useAxisBinning=
kTRUE);
167 const char *histogramTitle=0,
168 const char *distributionName=0,
169 const char *projectionMode=0,
Bool_t useAxisBinning=
kTRUE);
171 const char *histogramTitle=0,
172 const char *distributionName=0,
173 const char *projectionMode=0,
Bool_t useAxisBinning=
kTRUE);
175 const char *distributionName=0,
176 const char *projectionMode=0,
Bool_t useAxisBinning=
kTRUE,
178 TH1 *
GetRhoItotal(
const char *histogramName,
const char *histogramTitle=0,
179 const char *distributionName=0,
180 const char *projectionMode=0,
Bool_t useAxisBinning=
kTRUE,
183 const char *histogramTitle=0,
184 const char *distributionName=0,
185 const char *projectionMode=0,
Bool_t useAxisBinning=
kTRUE);
186 TH2 *
GetL(
const char *histogramName,
187 const char *histogramTitle=0,
192 const char *histogramTitle=0,
Bool_t useAxisBinning=
kTRUE)
const;
An algorithm to unfold distributions from detector to truth level.
const TUnfoldBinning * fConstOutputBins
binning scheme for the output (truth level)
virtual ~ TUnfoldDensity(void)
virtual Int_t ScanTau(Int_t nPoint, Double_t tauMin, Double_t tauMax, TSpline **scanResult, Int_t mode=kEScanTauRhoAvg, const char *distribution=0, const char *projectionMode=0, TGraph **lCurvePlot=0, TSpline **logTauXPlot=0, TSpline **logTauYPlot=0)
Scan a function wrt tau and determine the minimum.
TH1 * GetBias(const char *histogramName, const char *histogramTitle=0, const char *distributionName=0, const char *projectionMode=0, Bool_t useAxisBinning=kTRUE) const
Retrieve bias vector as a new histogram.
Base class for spline implementation containing the Draw/Paint methods.
An algorithm to unfold distributions from detector to truth level, with background subtraction and pr...
TH2 * GetEmatrixSysUncorr(const char *histogramName, const char *histogramTitle=0, const char *distributionName=0, const char *projectionMode=0, Bool_t useAxisBinning=kTRUE)
Retrieve covariance contribution from uncorrelated (statistical) uncertainties of the response matrix...
TH1 * GetFoldedOutput(const char *histogramName, const char *histogramTitle=0, const char *distributionName=0, const char *projectionMode=0, Bool_t useAxisBinning=kTRUE, Bool_t addBgr=kFALSE) const
Retrieve unfolding result folded back as a new histogram.
TUnfoldDensity(void)
Only for use by root streamer or derived classes.
EDensityMode
choice of regularisation scale factors to cinstruct the matrix L
TUnfoldBinning * fOwnedOutputBins
pointer to output binning scheme if owned by this class
TH2 * GetL(const char *histogramName, const char *histogramTitle=0, Bool_t useAxisBinning=kTRUE)
Access matrix of regularisation conditions in a new histogram.
void RegularizeDistribution(ERegMode regmode, EDensityMode densityMode, const char *distribution, const char *axisSteering)
Set up regularisation conditions.
TH2 * GetEmatrixSysBackgroundUncorr(const char *bgrSource, const char *histogramName, const char *histogramTitle=0, const char *distributionName=0, const char *projectionMode=0, Bool_t useAxisBinning=kTRUE)
Retrieve covariance contribution from uncorrelated background uncertainties.
average global correlation coefficient squared (from TUnfold::GetRhoI())
EScanTauMode
scan mode for correlation scan
TH1 * GetLxMinusBias(const char *histogramName, const char *histogramTitle=0)
Get regularisation conditions multiplied by result vector minus bias L(x-biasScale*biasVector).
TH2 * GetEmatrixTotal(const char *histogramName, const char *histogramTitle=0, const char *distributionName=0, const char *projectionMode=0, Bool_t useAxisBinning=kTRUE)
Get covariance matrix including all contributions.
const TUnfoldBinning * GetOutputBinning(const char *distributionName=0) const
Locate a binning node for the unfolded (truth level) quantities.
#define ClassDef(name, id)
scale factors from multidimensional bin width
TH1 * GetBackground(const char *histogramName, const char *bgrSource=0, const char *histogramTitle=0, const char *distributionName=0, const char *projectionMode=0, Bool_t useAxisBinning=kTRUE, Int_t includeError=3) const
Retrieve a background source in a new histogram.
EHistMap
arrangement of axes for the response matrix (TH2 histogram)
EConstraint
type of extra constraint
average global correlation coefficient (from TUnfold::GetRhoI())
void RegularizeOneDistribution(const TUnfoldBinning *binning, ERegMode regmode, EDensityMode densityMode, const char *axisSteering)
Regularize the distribution of the given node.
maximum global correlation coefficient (from TUnfold::GetRhoI())
maximum global correlation coefficient (from TUnfoldSys::GetRhoItotal())
ERegMode
choice of regularisation scheme
scale factors from user function in TUnfoldBinning
TUnfoldBinning * fRegularisationConditions
binning scheme for the regularisation conditions
TUnfoldBinning * GetLBinning(void) const
return binning scheme for regularisation conditions (matrix L)
scale factors from multidimensional bin width and user function
Service class for 2-Dim histogram classes.
TH2 * GetRhoIJtotal(const char *histogramName, const char *histogramTitle=0, const char *distributionName=0, const char *projectionMode=0, Bool_t useAxisBinning=kTRUE)
Retrieve correlation coefficients, including all uncertainties.
TH1 * GetInput(const char *histogramName, const char *histogramTitle=0, const char *distributionName=0, const char *projectionMode=0, Bool_t useAxisBinning=kTRUE) const
Retrieve input distribution in a new histogram.
const TUnfoldBinning * GetInputBinning(const char *distributionName=0) const
Locate a binning node for the input (measured) quantities.
TH1 * GetDeltaSysTau(const char *histogramName, const char *histogramTitle=0, const char *distributionName=0, const char *projectionMode=0, Bool_t useAxisBinning=kTRUE)
Retrieve 1-sigma shift corresponding to the previously specified uncertainty on tau.
average global correlation coefficient squared (from TUnfoldSys::GetRhoItotal())
enforce preservation of the area
TH1 * GetRhoIstatbgr(const char *histogramName, const char *histogramTitle=0, const char *distributionName=0, const char *projectionMode=0, Bool_t useAxisBinning=kTRUE, TH2 **ematInv=0)
Retrieve global correlation coefficients including input (statistical) and background uncertainties...
Binning schemes for use with the unfolding algorithm TUnfoldDensity.
TH1 * GetDeltaSysSource(const char *source, const char *histogramName, const char *histogramTitle=0, const char *distributionName=0, const char *projectionMode=0, Bool_t useAxisBinning=kTRUE)
Retrieve a correlated systematic 1-sigma shift.
average global correlation coefficient (from TUnfoldSys::GetRhoItotal())
virtual TString GetOutputBinName(Int_t iBinX) const
Get bin name of an output bin.
TH1 * GetOutput(const char *histogramName, const char *histogramTitle=0, const char *distributionName=0, const char *projectionMode=0, Bool_t useAxisBinning=kTRUE) const
retrieve unfolding result as a new histogram
const TUnfoldBinning * fConstInputBins
binning scheme for the input (detector level)
#define TUnfold_CLASS_VERSION
TH1 * GetDeltaSysBackgroundScale(const char *bgrSource, const char *histogramName, const char *histogramTitle=0, const char *distributionName=0, const char *projectionMode=0, Bool_t useAxisBinning=kTRUE)
Retrieve systematic 1-sigma shift corresponding to a background scale uncertainty.
TUnfoldBinning * fOwnedInputBins
pointer to input binning scheme if owned by this class
A Graph is a graphics object made of two arrays X and Y with npoints each.
virtual Double_t GetScanVariable(Int_t mode, const char *distribution, const char *projectionMode)
Calculate the function for ScanTau().
Double_t GetDensityFactor(EDensityMode densityMode, Int_t iBin) const
Density correction factor for a given bin.
TH2 * GetEmatrixInput(const char *histogramName, const char *histogramTitle=0, const char *distributionName=0, const char *projectionMode=0, Bool_t useAxisBinning=kTRUE)
Get covariance contribution from the input uncertainties (data statistical uncertainties).
TH1 * GetRhoItotal(const char *histogramName, const char *histogramTitle=0, const char *distributionName=0, const char *projectionMode=0, Bool_t useAxisBinning=kTRUE, TH2 **ematInv=0)
Retrieve global correlation coefficients including all uncertainty sources.
no scale factors, matrix L is similar to unity matrix
regularize the 2nd derivative of the output distribution
TH2 * GetProbabilityMatrix(const char *histogramName, const char *histogramTitle=0, Bool_t useAxisBinning=kTRUE) const
Get matrix of probabilities in a new histogram.
void RegularizeDistributionRecursive(const TUnfoldBinning *binning, ERegMode regmode, EDensityMode densityMode, const char *distribution, const char *axisSteering)
Recursively add regularisation conditions for this node and its children.