Definition at line 85 of file EvalContext.h.
#include <RooFit/EvalContext.h>
◆ OffsetMode
| Enumerator |
|---|
| WithoutOffset | |
| WithOffset | |
| OnlyOffset | |
Definition at line 87 of file EvalContext.h.
◆ at() [1/2]
◆ at() [2/2]
◆ config()
◆ deferAction()
| void RooFit::EvalContext::deferAction |
( |
std::function< void()> | action | ) |
|
|
inline |
Register an action to be run after the evaluation of the full computation graph, when all potentially asynchronous computations and data transfers have completed.
Used to defer work that depends on results that are read back from the GPU without synchronization, like the logging of evaluation error counts.
Definition at line 132 of file EvalContext.h.
◆ enableVectorBuffers()
| void RooFit::EvalContext::enableVectorBuffers |
( |
bool | enable | ) |
|
|
inline |
◆ inputGeneration()
| std::size_t RooFit::EvalContext::inputGeneration |
( |
| ) |
const |
|
inline |
A counter that is incremented every time new input data is loaded into the evaluation context.
Reducer nodes can use it as a cache invalidation key for quantities that only depend on the input data, like the sum of event weights. The counter values are unique across all evaluation contexts in the process, so cached values can not be wrongly validated by an unrelated context.
Definition at line 118 of file EvalContext.h.
◆ output()
| std::span< double > RooFit::EvalContext::output |
( |
| ) |
|
|
inline |
◆ resetVectorBuffers()
| void RooFit::EvalContext::resetVectorBuffers |
( |
| ) |
|
|
inline |
◆ resize()
| void RooFit::EvalContext::resize |
( |
std::size_t | n | ) |
|
◆ set()
◆ setConfig()
◆ setOutputWithOffset()
Sets the output value with an offset.
This function sets the output value with an offset for the given argument. It should only be used in reducer nodes. Depending on the current OffsetMode, the result will either be just the value, the value minus the offset, of just the offset.
- Parameters
-
| arg | Pointer to the RooAbsArg object. |
| val | The value to be set. |
| offset | The offset value. |
- Exceptions
-
| std::runtime_error | if the argument is not a reducer node. |
Definition at line 100 of file EvalContext.cxx.
◆ size()
| auto RooFit::EvalContext::size |
( |
| ) |
const |
|
inline |
◆ Evaluator
◆ _bufferIdx
| std::size_t RooFit::EvalContext::_bufferIdx = 0 |
|
private |
◆ _buffers
| std::vector<std::vector<double> > RooFit::EvalContext::_buffers |
|
private |
◆ _cfgs
◆ _ctx
| std::vector<std::span<const double> > RooFit::EvalContext::_ctx |
|
private |
◆ _currentOutput
| std::span<double> RooFit::EvalContext::_currentOutput |
|
private |
◆ _deferredActions
| std::vector<std::function<void()> > RooFit::EvalContext::_deferredActions |
|
private |
◆ _enableVectorBuffers
| bool RooFit::EvalContext::_enableVectorBuffers = false |
|
private |
◆ _inputGeneration
| std::size_t RooFit::EvalContext::_inputGeneration = 1 |
|
private |
◆ _offsetMode
The documentation for this class was generated from the following files: