Analysis-Utilities 26.9.9
C++/ROOT utilities for nuclear measurement data analysis
Loading...
Searching...
No Matches
RooFitFunctions Namespace Reference

Factories for the custom photopeak PDF components. More...

Functions

RooAbsPdf * MakeGaussian (const TString &name, RooRealVar &x, RooRealVar &mu, RooRealVar &sigma)
 Build a Gaussian component.
RooAbsPdf * MakeStepShelf (const TString &name, RooRealVar &x, RooRealVar &mu, RooRealVar &sigma)
 Build a StepShelf component.
RooAbsPdf * MakeLowExpTail (const TString &name, RooRealVar &x, RooRealVar &mu, RooRealVar &sigma, RooRealVar &tau_ratio)
 Build a LowExpTail component.
RooAbsPdf * MakeLowLinTail (const TString &name, RooRealVar &x, RooRealVar &mu, RooRealVar &sigma, RooRealVar &slope)
 Build a LowLinTail component.
RooAbsPdf * MakeHighExpTail (const TString &name, RooRealVar &x, RooRealVar &mu, RooRealVar &sigma, RooRealVar &tau_ratio)
 Build a HighExpTail component.
RooAbsPdf * MakeLinearBackground (const TString &name, RooRealVar &x, RooRealVar &slope)
 Build a linear background component.

Detailed Description

Factories for the custom photopeak PDF components.

Thin wrappers over the classes in RooFitPhotopeakPdfs.hpp, for building a model by hand instead of going through RooFitUtils.

Note
Every factory returns a heap-allocated PDF that the caller owns. The PDF holds references to the variables passed in, so those must outlive it.

Function Documentation

◆ MakeGaussian()

RooAbsPdf * RooFitFunctions::MakeGaussian ( const TString & name,
RooRealVar & x,
RooRealVar & mu,
RooRealVar & sigma )

Build a Gaussian component.

Parameters
nameRooFit object name, unique within the workspace.
xObservable.
muPeak centroid.
sigmaGaussian resolution.
Returns
A newly allocated PDF; the caller owns it.

Definition at line 8 of file RooFitUtils.cpp.

Referenced by RooFitUtils::FitDoublePeak().

◆ MakeHighExpTail()

RooAbsPdf * RooFitFunctions::MakeHighExpTail ( const TString & name,
RooRealVar & x,
RooRealVar & mu,
RooRealVar & sigma,
RooRealVar & tau_ratio )

Build a HighExpTail component.

Parameters
nameRooFit object name, unique within the workspace.
xObservable.
muPeak centroid.
sigmaGaussian resolution.
tau_ratioDecay constant in units of sigma.
Returns
A newly allocated PDF; the caller owns it.

Definition at line 30 of file RooFitUtils.cpp.

Referenced by RooFitUtils::FitDoublePeak().

◆ MakeLinearBackground()

RooAbsPdf * RooFitFunctions::MakeLinearBackground ( const TString & name,
RooRealVar & x,
RooRealVar & slope )

Build a linear background component.

Parameters
nameRooFit object name, unique within the workspace.
xObservable.
slopeBackground slope; fix it at zero for a flat background.
Returns
A newly allocated PDF; the caller owns it.

Definition at line 36 of file RooFitUtils.cpp.

◆ MakeLowExpTail()

RooAbsPdf * RooFitFunctions::MakeLowExpTail ( const TString & name,
RooRealVar & x,
RooRealVar & mu,
RooRealVar & sigma,
RooRealVar & tau_ratio )

Build a LowExpTail component.

Parameters
nameRooFit object name, unique within the workspace.
xObservable.
muPeak centroid.
sigmaGaussian resolution.
tau_ratioDecay constant in units of sigma.
Returns
A newly allocated PDF; the caller owns it.

Definition at line 18 of file RooFitUtils.cpp.

Referenced by RooFitUtils::FitDoublePeak().

◆ MakeLowLinTail()

RooAbsPdf * RooFitFunctions::MakeLowLinTail ( const TString & name,
RooRealVar & x,
RooRealVar & mu,
RooRealVar & sigma,
RooRealVar & slope )

Build a LowLinTail component.

Parameters
nameRooFit object name, unique within the workspace.
xObservable.
muPeak centroid.
sigmaGaussian resolution.
slopeSlope of the linear tail factor.
Returns
A newly allocated PDF; the caller owns it.

Definition at line 24 of file RooFitUtils.cpp.

Referenced by RooFitUtils::FitDoublePeak().

◆ MakeStepShelf()

RooAbsPdf * RooFitFunctions::MakeStepShelf ( const TString & name,
RooRealVar & x,
RooRealVar & mu,
RooRealVar & sigma )

Build a StepShelf component.

Parameters
nameRooFit object name, unique within the workspace.
xObservable.
muPeak centroid.
sigmaGaussian resolution.
Returns
A newly allocated PDF; the caller owns it.

Definition at line 13 of file RooFitUtils.cpp.

Referenced by RooFitUtils::FitDoublePeak().