![]() |
AliPhysics
1909eaa (1909eaa)
|
#include <AliLandauGausFitter.h>
Public Types | |
enum | { kC = AliLandauGaus::kC, kDelta = AliLandauGaus::kDelta, kXi = AliLandauGaus::kXi, kSigma = AliLandauGaus::kSigma, kSigmaN = AliLandauGaus::kSigmaN, kN = AliLandauGaus::kN, kA = AliLandauGaus::kA } |
Public Member Functions | |
AliLandauGausFitter (Double_t lowCut, Double_t maxRange, UShort_t minusBins) | |
virtual | ~AliLandauGausFitter () |
void | SetDebug (Bool_t debug=true) |
void | Clear () |
TF1 * | Fit1Particle (TH1 *dist, Double_t sigman=-1) |
TF1 * | FitNParticle (TH1 *dist, UShort_t n, Double_t sigman=-1) |
TF1 * | FitComposite (TH1 *dist, Double_t sigman) |
Double_t | GetLowCut () const |
Double_t | GetMaxRange () const |
UShort_t | GetMinusBins () const |
const TObjArray & | GetFitResults () const |
TObjArray & | GetFitResults () |
const TObjArray & | GetFunctions () const |
TObjArray & | GetFunctions () |
Static Public Member Functions | |
static const char * | GetFitOptions () |
Protected Member Functions | |
void | SetParLimits (TF1 *f, Int_t iPar, Double_t test, Double_t low, Double_t high) |
Protected Attributes | |
const Double_t | fLowCut |
const Double_t | fMaxRange |
const UShort_t | fMinusBins |
TObjArray | fFitResults |
TObjArray | fFunctions |
Bool_t | fDebug |
Fit Landau-Gauss distributions to energy loss distributions
Definition at line 30 of file AliLandauGausFitter.h.
anonymous enum |
Enumeration of parameters
Definition at line 36 of file AliLandauGausFitter.h.
|
inline |
Constructor
lowCut | Lower cut of spectrum - data below this cuts is ignored |
maxRange | Maximum range to fit to |
minusBins | The number of bins below maximum to use |
Definition at line 66 of file AliLandauGausFitter.h.
|
inlinevirtual |
Destructor
Definition at line 77 of file AliLandauGausFitter.h.
|
inline |
Clear internal arrays
Definition at line 92 of file AliLandauGausFitter.h.
Referenced by Fit1Particle(), and AliFMDEnergyFitter::RingHistos::FitHist().
Fit a 1-particle signal to the passed energy loss distribution
Note that this function clears the internal arrays first
dist | Data to fit the function to |
sigman | If larger than zero, the initial guess of the detector induced noise. If zero or less, then this parameter is ignored in the fit (fixed at 0) |
Definition at line 213 of file AliLandauGausFitter.h.
Referenced by AliFMDEnergyFitter::RingHistos::FitHist(), and FitNParticle().
Fit a composite distribution of energy loss from both primaries and secondaries
dist | Distribution |
sigman | If larger than zero, the initial guess of the detector included noise. If zero or less this parameter is fixed to 0. |
Definition at line 348 of file AliLandauGausFitter.h.
Fit a N-particle signal to the passed energy loss distribution
If there's no 1-particle fit present, it does that first
dist | Data to fit the function to |
n | Number of particle signals to fit |
sigman | If larger than zero, the initial guess of the detector induced noise. If zero or less, then this parameter is ignored in the fit (fixed at 0) |
Definition at line 279 of file AliLandauGausFitter.h.
Referenced by AliFMDEnergyFitter::RingHistos::FitHist().
|
inlinestatic |
Get the fit options to use
Definition at line 58 of file AliLandauGausFitter.h.
Referenced by Fit1Particle(), FitComposite(), and FitNParticle().
|
inline |
Get Array of fit results
Definition at line 159 of file AliLandauGausFitter.h.
Referenced by AliFMDEnergyFitter::RingHistos::FitHist().
|
inline |
Get Array of fit results
Definition at line 165 of file AliLandauGausFitter.h.
|
inline |
Get Array of functions
Definition at line 171 of file AliLandauGausFitter.h.
Referenced by AliFMDEnergyFitter::RingHistos::FitHist().
|
inline |
Get Array of functions
Definition at line 177 of file AliLandauGausFitter.h.
|
inline |
Get Lower cut on data
Definition at line 141 of file AliLandauGausFitter.h.
|
inline |
Get Maximum range to fit
Definition at line 147 of file AliLandauGausFitter.h.
|
inline |
Get Number of bins from maximum to fit 1st peak
Definition at line 153 of file AliLandauGausFitter.h.
|
inline |
Enable/disable debugging output.
debug | If true, enable debugging output |
Definition at line 87 of file AliLandauGausFitter.h.
Referenced by AliFMDEnergyFitter::RingHistos::FitHist().
|
inlineprotected |
Set parameter limits on the function f. The limits are only set if \( low \le test \le high\)
f | Function object |
iPar | Parameter number |
test | Initial guess |
low | Low limit |
high | high limit |
Definition at line 189 of file AliLandauGausFitter.h.
Referenced by Fit1Particle(), and FitNParticle().
|
protected |
Definition at line 207 of file AliLandauGausFitter.h.
Referenced by Fit1Particle(), FitComposite(), FitNParticle(), SetDebug(), and SetParLimits().
|
protected |
Definition at line 205 of file AliLandauGausFitter.h.
Referenced by AliLandauGausFitter(), Clear(), Fit1Particle(), FitNParticle(), GetFitResults(), and ~AliLandauGausFitter().
|
protected |
Definition at line 206 of file AliLandauGausFitter.h.
Referenced by AliLandauGausFitter(), Clear(), Fit1Particle(), FitNParticle(), GetFunctions(), and ~AliLandauGausFitter().
|
protected |
Definition at line 202 of file AliLandauGausFitter.h.
Referenced by Fit1Particle(), FitComposite(), and GetLowCut().
|
protected |
Definition at line 203 of file AliLandauGausFitter.h.
Referenced by Fit1Particle(), FitComposite(), FitNParticle(), and GetMaxRange().
|
protected |
Definition at line 204 of file AliLandauGausFitter.h.
Referenced by Fit1Particle(), FitComposite(), and GetMinusBins().