RootUtils
|
Classes | |
class | CrystalBallFunctionObject |
Enumerations | |
enum | ResolutionType { CBFunctionMomenta , CBGaussianPart } |
Functions | |
TF1 * | getCrystalBallFunction (TH1 *hist, Bool_t reversed) |
Obtain a CrystalBall fitting function based on a given histogram. More... | |
TF1 * | getCrystalBallFunction (TH1 *hist) |
Obtain best CrystalBall function (original or reversed) that fits the histogram. More... | |
TVector2 | getCrystalBallMean (TF1 *cball) |
Calculate Crystal Ball function mean value. More... | |
TVector2 | getCrystalBallDispersion (TF1 *cball) |
Calculate Crystal Ball dispersion (standard deviation) value. More... | |
TF1 * | getCrystalBallGaussComponent (TF1 *cball) |
Get gaussian part of the crystal ball function. More... | |
TVector2 | getCrystalBallResolution (TF1 *cball, ResolutionType rt=CBFunctionMomenta) |
Calculate Crystal Ball resolution value (standard deviation / mean). More... | |
TVector2 | evalResolution (Double_t mean, Double_t meanErr, Double_t std, Double_t stdErr) |
Calculate resolution of a distribution with given standard deviation and mean. More... | |
Implementation of a Crystal Ball function in ROOT. Supports regular and reversed crystal ball functions.
TVector2 FitUtils::evalResolution | ( | Double_t | mean, |
Double_t | meanErr, | ||
Double_t | std, | ||
Double_t | stdErr | ||
) |
Calculate resolution of a distribution with given standard deviation and mean.
mean | distribution mean. |
meanErr | distribution mean error. |
std | distribution standard deviation. |
stdErr | distribution standard deviation error. |
TVector2 FitUtils::getCrystalBallDispersion | ( | TF1 * | cball | ) |
Calculate Crystal Ball dispersion (standard deviation) value.
cball | Crystal ball function. |
reversed | type of the crystal ball function. |
TF1 * FitUtils::getCrystalBallFunction | ( | TH1 * | hist | ) |
Obtain best CrystalBall function (original or reversed) that fits the histogram.
Function fits the histogram with both crystal ball functions and determines which one provides the best fit.
hist | histogram to be fitted. |
TF1 * FitUtils::getCrystalBallFunction | ( | TH1 * | hist, |
Bool_t | reversed | ||
) |
Obtain a CrystalBall fitting function based on a given histogram.
Function sets corresponding Crystal GBall function parameters based on the shape of the histogram. User can immediately do the fit.
hist | histogram to be fitted. |
reversed | set if Crystal Ball function is reversed or not. Default is kFALSE. |
TF1 * FitUtils::getCrystalBallGaussComponent | ( | TF1 * | cball | ) |
Get gaussian part of the crystal ball function.
cball | Crystal ball function. |
TVector2 FitUtils::getCrystalBallMean | ( | TF1 * | cball | ) |
Calculate Crystal Ball function mean value.
cball | Crystal ball function. |
reversed | type of the crystal ball function. |
TVector2 FitUtils::getCrystalBallResolution | ( | TF1 * | cball, |
ResolutionType | rt = CBFunctionMomenta |
||
) |
Calculate Crystal Ball resolution value (standard deviation / mean).
cball | Crystal ball function. |