AliPhysics  d565ceb (d565ceb)
AliLandauGausFitter Class Reference

#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 TObjArrayGetFitResults () const
 
TObjArrayGetFitResults ()
 
const TObjArrayGetFunctions () const
 
TObjArrayGetFunctions ()
 

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
 

Detailed Description

Fit Landau-Gauss distributions to energy loss distributions

See also
AliLandauGaus

Definition at line 30 of file AliLandauGausFitter.h.

Member Enumeration Documentation

anonymous enum

Enumeration of parameters

Enumerator
kC 

Index of pre-constant \( C\)

kDelta 

Index of most probable value \( \Delta_p\)

kXi 

Index of Landau width \( \xi\)

kSigma 

Index of Gaussian width \( \sigma\)

kSigmaN 

Index of Gaussian additional width \( \sigma_n\)

kN 

Index of Number of particles \( N\)

kA 

Base index of particle strengths \( a_i\) for \(i=2,\ldots,N\)

Definition at line 36 of file AliLandauGausFitter.h.

Constructor & Destructor Documentation

AliLandauGausFitter::AliLandauGausFitter ( Double_t  lowCut,
Double_t  maxRange,
UShort_t  minusBins 
)
inline

Constructor

Parameters
lowCutLower cut of spectrum - data below this cuts is ignored
maxRangeMaximum range to fit to
minusBinsThe number of bins below maximum to use

Definition at line 66 of file AliLandauGausFitter.h.

virtual AliLandauGausFitter::~AliLandauGausFitter ( )
inlinevirtual

Destructor

Definition at line 77 of file AliLandauGausFitter.h.

Member Function Documentation

void AliLandauGausFitter::Clear ( )
inline

Clear internal arrays

Definition at line 92 of file AliLandauGausFitter.h.

Referenced by Fit1Particle(), and AliFMDEnergyFitter::RingHistos::FitHist().

TF1 * AliLandauGausFitter::Fit1Particle ( TH1 dist,
Double_t  sigman = -1 
)
inline

Fit a 1-particle signal to the passed energy loss distribution

Note that this function clears the internal arrays first

Parameters
distData to fit the function to
sigmanIf 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)
Returns
The function fitted to the data

Definition at line 213 of file AliLandauGausFitter.h.

Referenced by Clear(), AliFMDEnergyFitter::RingHistos::FitHist(), and FitNParticle().

TF1 * AliLandauGausFitter::FitComposite ( TH1 dist,
Double_t  sigman 
)
inline

Fit a composite distribution of energy loss from both primaries and secondaries

Parameters
distDistribution
sigmanIf larger than zero, the initial guess of the detector included noise. If zero or less this parameter is fixed to 0.
Returns
Function fitted to the data

Definition at line 348 of file AliLandauGausFitter.h.

Referenced by Clear().

TF1 * AliLandauGausFitter::FitNParticle ( TH1 dist,
UShort_t  n,
Double_t  sigman = -1 
)
inline

Fit a N-particle signal to the passed energy loss distribution

If there's no 1-particle fit present, it does that first

Parameters
distData to fit the function to
nNumber of particle signals to fit
sigmanIf 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)
Returns
The function fitted to the data

Definition at line 279 of file AliLandauGausFitter.h.

Referenced by Clear(), AliFMDEnergyFitter::RingHistos::FitHist(), and TestF::StepIt().

static const char* AliLandauGausFitter::GetFitOptions ( )
inlinestatic

Get the fit options to use

Returns
Fit options used through-out

Definition at line 58 of file AliLandauGausFitter.h.

Referenced by Fit1Particle(), FitComposite(), and FitNParticle().

const TObjArray& AliLandauGausFitter::GetFitResults ( ) const
inline

Get Array of fit results

Returns
Array of fit results

Definition at line 159 of file AliLandauGausFitter.h.

Referenced by AliFMDEnergyFitter::RingHistos::FitHist(), and TestF::StepIt().

TObjArray& AliLandauGausFitter::GetFitResults ( )
inline

Get Array of fit results

Returns
Array of fit results

Definition at line 165 of file AliLandauGausFitter.h.

const TObjArray& AliLandauGausFitter::GetFunctions ( ) const
inline

Get Array of functions

Returns
Array of functions

Definition at line 171 of file AliLandauGausFitter.h.

Referenced by AliFMDEnergyFitter::RingHistos::FitHist().

TObjArray& AliLandauGausFitter::GetFunctions ( )
inline

Get Array of functions

Returns
Array of functions

Definition at line 177 of file AliLandauGausFitter.h.

Double_t AliLandauGausFitter::GetLowCut ( ) const
inline

Get Lower cut on data

Returns
Lower cut on data

Definition at line 141 of file AliLandauGausFitter.h.

Double_t AliLandauGausFitter::GetMaxRange ( ) const
inline

Get Maximum range to fit

Returns
Maximum range to fit

Definition at line 147 of file AliLandauGausFitter.h.

UShort_t AliLandauGausFitter::GetMinusBins ( ) const
inline

Get Number of bins from maximum to fit 1st peak

Returns
Number of bins from maximum to fit 1st peak

Definition at line 153 of file AliLandauGausFitter.h.

void AliLandauGausFitter::SetDebug ( Bool_t  debug = true)
inline

Enable/disable debugging output.

Parameters
debugIf true, enable debugging output

Definition at line 87 of file AliLandauGausFitter.h.

Referenced by AliFMDEnergyFitter::RingHistos::FitHist().

void AliLandauGausFitter::SetParLimits ( TF1 *  f,
Int_t  iPar,
Double_t  test,
Double_t  low,
Double_t  high 
)
inlineprotected

Set parameter limits on the function f. The limits are only set if \( low \le test \le high\)

Parameters
fFunction object
iParParameter number
testInitial guess
lowLow limit
highhigh limit

Definition at line 189 of file AliLandauGausFitter.h.

Referenced by Fit1Particle(), and FitNParticle().

Member Data Documentation

Bool_t AliLandauGausFitter::fDebug
protected
TObjArray AliLandauGausFitter::fFitResults
protected
TObjArray AliLandauGausFitter::fFunctions
protected
const Double_t AliLandauGausFitter::fLowCut
protected

Definition at line 202 of file AliLandauGausFitter.h.

Referenced by Fit1Particle(), FitComposite(), and GetLowCut().

const Double_t AliLandauGausFitter::fMaxRange
protected

Definition at line 203 of file AliLandauGausFitter.h.

Referenced by Fit1Particle(), FitComposite(), FitNParticle(), and GetMaxRange().

const UShort_t AliLandauGausFitter::fMinusBins
protected

Definition at line 204 of file AliLandauGausFitter.h.

Referenced by Fit1Particle(), FitComposite(), and GetMinusBins().


The documentation for this class was generated from the following file: