#include <MultiVar.h>
Public Member Functions | |
typedef | std::vector (VarFunc_t)(const T *sr) |
The type of the function part of a var. More... | |
_MultiVar (const std::function< VarFunc_t > &fun) | |
std::function can wrap a real function, function object, or lambda More... | |
std::vector< double > | operator() (const T *sr) const |
Allows a variable to be called with double value = myVar(sr) syntax. More... | |
int | ID () const |
Vars with the same definition will have the same ID. More... | |
Static Public Member Functions | |
static int | MaxID () |
Protected Member Functions | |
_MultiVar (const std::function< VarFunc_t > &fun, int id) | |
Protected Attributes | |
std::function< VarFunc_t > | fFunc |
int | fID |
Static Protected Attributes | |
static int | fgNextID = -1 |
The next ID that hasn't yet been assigned. More... | |
A Var that returns multiple results for each slice. eg the properties of multiple prongs. All results will be filled into the Spectrum.
Definition at line 16 of file MultiVar.h.
ana::_MultiVar< T >::_MultiVar | ( | const std::function< VarFunc_t > & | fun | ) |
std::function can wrap a real function, function object, or lambda
Definition at line 12 of file MultiVar.cxx.
|
inlineprotected |
Definition at line 36 of file MultiVar.h.
|
inline |
|
inlinestatic |
Definition at line 34 of file MultiVar.h.
|
inline |
Allows a variable to be called with double value = myVar(sr) syntax.
Definition at line 26 of file MultiVar.h.
typedef ana::_MultiVar< T >::std::vector | ( | VarFunc_t | ) | const |
The type of the function part of a var.
|
protected |
Definition at line 41 of file MultiVar.h.
|
staticprotected |
The next ID that hasn't yet been assigned.
Definition at line 45 of file MultiVar.h.
|
protected |
Definition at line 43 of file MultiVar.h.