13 template<
class T>
class Proxy;
14 typedef Proxy<StandardRecord>
SRProxy;
29 typedef std::vector<double> (VarFunc_t)(
const T*
sr);
32 _MultiVar(
const std::function<VarFunc_t>& fun);
41 int ID()
const {
return fID;}
43 static int MaxID() {
return fgNextID-1;}
55 const MultiVar&
b,
const Binning& binsb);
57 MultiVar
MultiVar2D(
const MultiVar&
a,
int na,
double a0,
double a1,
58 const MultiVar&
b,
int nb,
double b0,
double b1);
Represent the binning of a Spectrum's x-axis.
Cuts and Vars for the 2020 FD DiF Study.
MultiVar MultiVar2D(const MultiVar &a, const Binning &binsa, const MultiVar &b, const Binning &binsb)
std::function< VarFunc_t > fFunc
static int fgNextID
The next ID that hasn't yet been assigned.
caf::Proxy< caf::SRNeutrino > SRNeutrinoProxy
int ID() const
Vars with the same definition will have the same ID.
caf::Proxy< caf::StandardRecord > SRProxy
caf::Proxy< caf::SRSpill > SRSpillProxy
_MultiVar< caf::SRProxy > MultiVar
This module creates Common Analysis Files.
std::vector< double > operator()(const T *sr) const
Allows a variable to be called with double value = myVar(sr) syntax.