|
Analysis-Utilities 26.9.9
C++/ROOT utilities for nuclear measurement data analysis
|
Linear tail below the photopeak, convolved with the resolution. More...
#include <RooFitPhotopeakPdfs.hpp>
Public Member Functions | |
| RooLowLinTail () | |
| Default constructor for ROOT I/O; leaves proxies unbound. | |
| RooLowLinTail (const char *name, const char *title, RooAbsReal &x, RooAbsReal &mu, RooAbsReal &sigma, RooAbsReal &slope) | |
| Construct the component and bind its parameters. | |
| RooLowLinTail (const RooLowLinTail &other, const char *name=nullptr) | |
| Copy constructor used by RooFit when cloning a model. | |
| TObject * | clone (const char *newname=nullptr) const override |
| RooFit clone hook. | |
| Int_t | getAnalyticalIntegral (RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=nullptr) const override |
| Advertise the analytic integral over the observable. | |
| Double_t | analyticalIntegral (Int_t code, const char *rangeName=nullptr) const override |
| Evaluate the analytic integral advertised above. | |
| void | doEval (RooFit::EvalContext &ctx) const override |
| Batched evaluation over every event in one pass. | |
| bool | canComputeBatchWithCuda () const override |
| Whether doEval() can consume device-resident buffers. | |
Protected Member Functions | |
| Double_t | evaluate () const override |
| Scalar evaluation for a single observable value. | |
Protected Attributes | |
| RooRealProxy | x_ |
| RooRealProxy | mu_ |
| RooRealProxy | sigma_ |
| RooRealProxy | slope_ |
Linear tail below the photopeak, convolved with the resolution.
Captures asymmetric low-side tailing that a single exponential describes poorly. The linear factor (1 + slope * (x - mu)) is floored at zero to keep the density non-negative, as RooFit normalisation requires; the TF1 backend in FittingUtils applies no such constraint, so a fit that hits the floor will not agree between the two backends.
Definition at line 225 of file RooFitPhotopeakPdfs.hpp.
|
inline |
Default constructor for ROOT I/O; leaves proxies unbound.
Definition at line 228 of file RooFitPhotopeakPdfs.hpp.
Referenced by clone(), and RooLowLinTail().
| RooLowLinTail::RooLowLinTail | ( | const char * | name, |
| const char * | title, | ||
| RooAbsReal & | x, | ||
| RooAbsReal & | mu, | ||
| RooAbsReal & | sigma, | ||
| RooAbsReal & | slope ) |
Construct the component and bind its parameters.
| name | RooFit object name, unique within the workspace. |
| title | Human-readable title. |
| x | Observable (energy). |
| mu | Peak centroid, in the observable's units. |
| sigma | Gaussian resolution; must be positive. |
| slope | Slope of the linear factor (1 + slope * (x - mu)), in inverse units of the observable. |
Definition at line 289 of file RooFitPhotopeakPdfs.cpp.
| RooLowLinTail::RooLowLinTail | ( | const RooLowLinTail & | other, |
| const char * | name = nullptr ) |
Copy constructor used by RooFit when cloning a model.
| other | Instance to copy. |
| name | New object name, or null to keep other's. |
Definition at line 296 of file RooFitPhotopeakPdfs.cpp.
|
override |
Evaluate the analytic integral advertised above.
| code | Code returned by getAnalyticalIntegral(); only 1 is supported. |
| rangeName | Named range, or null for the full range. |
Definition at line 349 of file RooFitPhotopeakPdfs.cpp.
|
inlineoverride |
Whether doEval() can consume device-resident buffers.
Definition at line 286 of file RooFitPhotopeakPdfs.hpp.
|
inlineoverride |
RooFit clone hook.
| newname | Name for the clone, or null to reuse this one's. |
Definition at line 248 of file RooFitPhotopeakPdfs.hpp.
|
override |
Batched evaluation over every event in one pass.
Hoists the parameter-dependent constants out of the loop and writes one density per event. Dispatches to a CUDA kernel when built with CUDA support and handed device-resident buffers; otherwise runs an OpenMP host loop.
| ctx | RooFit evaluation context supplying inputs and the output span. |
Definition at line 310 of file RooFitPhotopeakPdfs.cpp.
|
overrideprotected |
Scalar evaluation for a single observable value.
Definition at line 301 of file RooFitPhotopeakPdfs.cpp.
|
override |
Advertise the analytic integral over the observable.
| allVars | Variables RooFit offers to integrate over. |
| analVars | Filled with those handled analytically. |
| rangeName | Named range, or null for the full range. |
Definition at line 341 of file RooFitPhotopeakPdfs.cpp.
|
protected |
Definition at line 291 of file RooFitPhotopeakPdfs.hpp.
Referenced by analyticalIntegral(), doEval(), evaluate(), RooLowLinTail(), and RooLowLinTail().
|
protected |
Definition at line 292 of file RooFitPhotopeakPdfs.hpp.
Referenced by analyticalIntegral(), doEval(), evaluate(), RooLowLinTail(), and RooLowLinTail().
|
protected |
Definition at line 293 of file RooFitPhotopeakPdfs.hpp.
Referenced by analyticalIntegral(), doEval(), evaluate(), RooLowLinTail(), and RooLowLinTail().
|
protected |
Definition at line 290 of file RooFitPhotopeakPdfs.hpp.
Referenced by analyticalIntegral(), doEval(), evaluate(), getAnalyticalIntegral(), RooLowLinTail(), and RooLowLinTail().