10 #include "sbnanaobj/StandardRecord/Proxy/FwdDeclare.h"
20 typedef std::vector<double> (VarFunc_t)(
const T* sr);
23 _MultiVar(
const std::function<VarFunc_t>& fun);
36 _MultiVar(
const std::function<VarFunc_t>& fun,
int id)
_MultiVar(const std::function< VarFunc_t > &fun)
std::function can wrap a real function, function object, or lambda
Represent the binning of a Spectrum's x-axis.
_MultiVar(const std::function< VarFunc_t > &fun, int id)
process_name opflashCryoW ana
std::function< VarFunc_t > fFunc
static int fgNextID
The next ID that hasn't yet been assigned.
int ID() const
Vars with the same definition will have the same ID.
_MultiVar< caf::SRSpillProxy > SpillMultiVar
_MultiVar< caf::SRSliceProxy > MultiVar
_MultiVar< T > MultiVar2D(const _MultiVar< T > &a, const Binning &binsa, const _MultiVar< T > &b, const Binning &binsb)
std::vector< double > operator()(const T *sr) const
Allows a variable to be called with double value = myVar(sr) syntax.