#include "/cvmfs/nova.opensciencegrid.org/externals/cafanacore/v01.12/src/CAFAna/Core/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 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 25 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 21 of file MultiVar.cxx.
|
inline |
|
inlinestatic |
Definition at line 43 of file MultiVar.h.
|
inline |
Allows a variable to be called with double value = myVar(sr) syntax.
Definition at line 35 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 45 of file MultiVar.h.
|
staticprotected |
The next ID that hasn't yet been assigned.
Definition at line 49 of file MultiVar.h.
|
protected |
Definition at line 47 of file MultiVar.h.