Analysis-Utilities 26.9.9
C++/ROOT utilities for nuclear measurement data analysis
Loading...
Searching...
No Matches
RooFitUtils.hpp File Reference
#include "FittingUtils.hpp"
#include "PlottingUtils.hpp"
#include "RooFitPhotopeakPdfs.hpp"
#include <RooAbsData.h>
#include <RooAbsPdf.h>
#include <RooAbsReal.h>
#include <RooAddPdf.h>
#include <RooArgList.h>
#include <RooArgSet.h>
#include <RooCategory.h>
#include <RooCmdArg.h>
#include <RooDataSet.h>
#include <RooFitResult.h>
#include <RooFormulaVar.h>
#include <RooGaussian.h>
#include <RooGenericPdf.h>
#include <RooGlobalFunc.h>
#include <RooMsgService.h>
#include <RooPolynomial.h>
#include <RooRealVar.h>
#include <RooSimultaneous.h>
#include <TBranch.h>
#include <TGraph.h>
#include <TH1.h>
#include <TLeaf.h>
#include <TMath.h>
#include <TString.h>
#include <TSystem.h>
#include <TTree.h>
#include <algorithm>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <set>
#include <vector>
Include dependency graph for RooFitUtils.hpp:

Go to the source code of this file.

Classes

struct  RooFitPeakModel
 Every RooFit object making up one peak. More...
struct  RooFitBackgroundModel
 The RooFit objects making up one channel's background. More...
struct  RooFitChannelConfig
 One channel of a simultaneous fit: its data, model and locks. More...
 A tie between two parameters, fitted as one degree of freedom. More...
struct  RooFitSeparationConstraint
 A known spacing between two peaks, imposed as a Gaussian penalty. More...
class  RooFitUtils
 Unbinned extended maximum-likelihood photopeak fitting on RooFit. More...

Namespaces

namespace  RooFitFunctions
 Factories for the custom photopeak PDF components.

Functions

RooCmdArg BestAvailableBackend ()
 The best RooFit evaluation backend this build supports.
RooAbsPdf * RooFitFunctions::MakeGaussian (const TString &name, RooRealVar &x, RooRealVar &mu, RooRealVar &sigma)
 Build a Gaussian component.
RooAbsPdf * RooFitFunctions::MakeStepShelf (const TString &name, RooRealVar &x, RooRealVar &mu, RooRealVar &sigma)
 Build a StepShelf component.
RooAbsPdf * RooFitFunctions::MakeLowExpTail (const TString &name, RooRealVar &x, RooRealVar &mu, RooRealVar &sigma, RooRealVar &tau_ratio)
 Build a LowExpTail component.
RooAbsPdf * RooFitFunctions::MakeLowLinTail (const TString &name, RooRealVar &x, RooRealVar &mu, RooRealVar &sigma, RooRealVar &slope)
 Build a LowLinTail component.
RooAbsPdf * RooFitFunctions::MakeHighExpTail (const TString &name, RooRealVar &x, RooRealVar &mu, RooRealVar &sigma, RooRealVar &tau_ratio)
 Build a HighExpTail component.
RooAbsPdf * RooFitFunctions::MakeLinearBackground (const TString &name, RooRealVar &x, RooRealVar &slope)
 Build a linear background component.

Function Documentation

◆ BestAvailableBackend()

RooCmdArg BestAvailableBackend ( )
inline

The best RooFit evaluation backend this build supports.

Defaults to CPU, where evaluation is still batched through doEval(). Compiling with -DAU_ROOFIT_BACKEND_CUDA=1, against a ROOT built with CUDA support, switches this to the GPU backend.

Returns
A RooCmdArg to hand to fitTo().
Warning
A downstream project must define the same macro as the prebuilt library, or its call sites will disagree with the library about which backend is in use.

Definition at line 56 of file RooFitUtils.hpp.

Referenced by RooFitUtils::FitSimultaneous().