![]() |
AliPhysics
0937c79 (0937c79)
|
Fit invariant mass distributions. More...
#include <TH1D.h>
#include <TF1.h>
#include <TMath.h>
#include <TGraphErrors.h>
Go to the source code of this file.
Fit invariant mass distributions.
Macro that containes useful small methods that can be used in plotting macros
Definition in file PlotUtils.C.
|
static |
Divide 2 TGraphErrors
gNum | TGraphError numerator |
gDen | TGraphError denominator |
Definition at line 151 of file PlotUtils.C.
Referenced by GetFractionError(), and PlotGraphs().
Crystal ball function. Fitting function.
Definition at line 25 of file PlotUtils.C.
Referenced by SetFitFun().
Gaussian plus constant function. Fitting function.
Definition at line 84 of file PlotUtils.C.
Referenced by SetFitFun().
Gaussian plus polinomial order 1 function. Fitting function.
Definition at line 72 of file PlotUtils.C.
Referenced by SetFitFun().
Gaussian plus polinomial order 2 function. Fitting function.
Definition at line 60 of file PlotUtils.C.
Referenced by SetFitFun().
Gaussian plus polinomial order 3 function. Fitting function.
Definition at line 48 of file PlotUtils.C.
Referenced by SetFitFun().
Truncated function in eta region. Fitting function.
Definition at line 96 of file PlotUtils.C.
Referenced by SetFitFun().
Truncated function in pi0 region. Fitting function.
Definition at line 112 of file PlotUtils.C.
Referenced by SetFitFun().
|
static |
Calculation of error of a fraction
num | numerator |
Definition at line 132 of file PlotUtils.C.
Referenced by DivideGraphs(), Efficiency(), FunctionTruncatedPolPi0(), and PrimarySpectra().
|
static |
Get a TH1D integral and its error within a bin range
h | TH1D |
binMin | First bin of integration |
binMax | Last bin of integration |
integral | sum between first and last bin |
integralErr | error of integral |
Definition at line 208 of file PlotUtils.C.
Referenced by DivideGraphs(), GetRangeIntegralAndError(), PrimarySpectra(), and ProjectAndFit().
|
static |
Get a TH1D integral and its error within a x axis range
h | TH1D |
minX | x axis minimum value |
maxX | x axis maximum value |
integral | sum between first and last bin |
integralErr | error of integral |
Definition at line 235 of file PlotUtils.C.
void RemovePointsOutOfRangeOrLargeErrorFromGraph | ( | TGraphErrors * | graph, |
Double_t | min, | ||
Double_t | max, | ||
Float_t | errFraction = 0.5 , |
||
Float_t | value = -1 , |
||
Float_t | valueErr = 0 |
||
) |
When plotting multiple graphs, and need to set different ranges Those points with too large error or out of the desired range are set to a default value out of the plot scale
graph | TGraphError |
min | x axis minimum value |
max | x axis maximum value |
errFraction | If error of point is larger than a fraction of the point, it is removed |
value | default value for removed point |
valueErr | default error value for removed point |
Definition at line 257 of file PlotUtils.C.
Referenced by GetRangeIntegralAndError().
|
static |
Scale histogram bins by its size.
Definition at line 285 of file PlotUtils.C.
Referenced by PrimarySpectra().