|
Analysis-Utilities 26.9.9
C++/ROOT utilities for nuclear measurement data analysis
|
Resolution-smeared step on the low side of the photopeak. More...
#include <RooFitPhotopeakPdfs.hpp>
Public Member Functions | |
| RooStepShelf () | |
| Default constructor for ROOT I/O; leaves proxies unbound. | |
| RooStepShelf (const char *name, const char *title, RooAbsReal &x, RooAbsReal &mu, RooAbsReal &sigma) | |
| Construct the component and bind its parameters. | |
| RooStepShelf (const RooStepShelf &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_ |
Resolution-smeared step on the low side of the photopeak.
Models events where part of the photon energy escapes the active volume, producing a step-like shelf below the peak, smeared by the detector resolution. Built from a sigmoid in z = (x - mu) / sigma, squared, which gives a shelf that falls smoothly to zero above the centroid.
Definition at line 55 of file RooFitPhotopeakPdfs.hpp.
|
inline |
Default constructor for ROOT I/O; leaves proxies unbound.
Definition at line 58 of file RooFitPhotopeakPdfs.hpp.
Referenced by clone(), and RooStepShelf().
| RooStepShelf::RooStepShelf | ( | const char * | name, |
| const char * | title, | ||
| RooAbsReal & | x, | ||
| RooAbsReal & | mu, | ||
| RooAbsReal & | sigma ) |
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. |
Definition at line 136 of file RooFitPhotopeakPdfs.cpp.
| RooStepShelf::RooStepShelf | ( | const RooStepShelf & | 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 141 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 190 of file RooFitPhotopeakPdfs.cpp.
|
inlineoverride |
Whether doEval() can consume device-resident buffers.
Definition at line 114 of file RooFitPhotopeakPdfs.hpp.
|
inlineoverride |
RooFit clone hook.
| newname | Name for the clone, or null to reuse this one's. |
Definition at line 76 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 155 of file RooFitPhotopeakPdfs.cpp.
|
overrideprotected |
Scalar evaluation for a single observable value.
Definition at line 145 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 182 of file RooFitPhotopeakPdfs.cpp.
|
protected |
Definition at line 119 of file RooFitPhotopeakPdfs.hpp.
Referenced by analyticalIntegral(), doEval(), evaluate(), RooStepShelf(), and RooStepShelf().
|
protected |
Definition at line 120 of file RooFitPhotopeakPdfs.hpp.
Referenced by analyticalIntegral(), doEval(), evaluate(), RooStepShelf(), and RooStepShelf().
|
protected |
Definition at line 118 of file RooFitPhotopeakPdfs.hpp.
Referenced by analyticalIntegral(), doEval(), evaluate(), getAnalyticalIntegral(), RooStepShelf(), and RooStepShelf().