Definition at line 84 of file EvalContext.h.
Public Types | |
enum class | OffsetMode { WithoutOffset , WithOffset , OnlyOffset } |
Public Member Functions | |
std::span< const double > | at (RooAbsArg const *arg, RooAbsArg const *caller=nullptr) |
template<class T > | |
std::span< const double > | at (RooTemplateProxy< T > const &proxy) |
RooBatchCompute::Config | config (RooAbsArg const *arg) const |
void | enableVectorBuffers (bool enable) |
std::span< double > | output () |
void | resetVectorBuffers () |
void | resize (std::size_t n) |
void | set (RooAbsArg const *arg, std::span< const double > const &span) |
void | setConfig (RooAbsArg const *arg, RooBatchCompute::Config const &config) |
void | setOutputWithOffset (RooAbsArg const *arg, ROOT::Math::KahanSum< double > val, ROOT::Math::KahanSum< double > const &offset) |
Sets the output value with an offset. | |
auto | size () const |
Private Attributes | |
std::size_t | _bufferIdx = 0 |
std::vector< std::vector< double > > | _buffers |
std::vector< RooBatchCompute::Config > | _cfgs |
std::vector< std::span< const double > > | _ctx |
std::span< double > | _currentOutput |
bool | _enableVectorBuffers = false |
OffsetMode | _offsetMode = OffsetMode::WithoutOffset |
Friends | |
class | Evaluator |
#include <RooFit/EvalContext.h>
|
strong |
Enumerator | |
---|---|
WithoutOffset | |
WithOffset | |
OnlyOffset |
Definition at line 86 of file EvalContext.h.
std::span< const double > RooFit::EvalContext::at | ( | RooAbsArg const * | arg, |
RooAbsArg const * | caller = nullptr |
||
) |
Definition at line 35 of file EvalContext.cxx.
|
inline |
Definition at line 104 of file EvalContext.h.
RooBatchCompute::Config RooFit::EvalContext::config | ( | RooAbsArg const * | arg | ) | const |
Definition at line 73 of file EvalContext.cxx.
|
inline |
Definition at line 110 of file EvalContext.h.
|
inline |
Definition at line 112 of file EvalContext.h.
|
inline |
Definition at line 111 of file EvalContext.h.
void RooFit::EvalContext::resize | ( | std::size_t | n | ) |
Definition at line 82 of file EvalContext.cxx.
|
inline |
Definition at line 91 of file EvalContext.h.
void RooFit::EvalContext::setConfig | ( | RooAbsArg const * | arg, |
RooBatchCompute::Config const & | config | ||
) |
Definition at line 65 of file EvalContext.cxx.
void RooFit::EvalContext::setOutputWithOffset | ( | RooAbsArg const * | arg, |
ROOT::Math::KahanSum< double > | val, | ||
ROOT::Math::KahanSum< double > const & | offset | ||
) |
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.
arg | Pointer to the RooAbsArg object. |
val | The value to be set. |
offset | The offset value. |
std::runtime_error | if the argument is not a reducer node. |
Definition at line 100 of file EvalContext.cxx.
|
inline |
Definition at line 88 of file EvalContext.h.
|
friend |
Definition at line 118 of file EvalContext.h.
|
private |
Definition at line 125 of file EvalContext.h.
|
private |
Definition at line 124 of file EvalContext.h.
|
private |
Definition at line 126 of file EvalContext.h.
|
private |
Definition at line 122 of file EvalContext.h.
|
private |
Definition at line 121 of file EvalContext.h.
|
private |
Definition at line 123 of file EvalContext.h.
|
private |
Definition at line 120 of file EvalContext.h.