Template for Var and SpillVar. More...
#include "/cvmfs/nova.opensciencegrid.org/externals/cafanacore/v01.12/src/CAFAna/Core/ReweightableSpectrum.h"
Public Types | |
typedef double( | VarFunc_t) (const T *sr) |
The type of the function part of a var. More... | |
Public Member Functions | |
_Var (const std::function< VarFunc_t > &fun) | |
std::function can wrap a real function, function object, or lambda More... | |
_Var (const _Var< T > &v) | |
_Var & | operator= (const _Var< T > &v) |
~_Var () | |
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... | |
_Cut< T > | operator< (double c) const |
_Cut< T > | operator> (double c) const |
_Cut< T > | operator>= (double c) const |
_Cut< T > | operator<= (double c) const |
_Cut< T > | operator== (double c) const |
_Cut< T > | operator!= (double c) const |
_Cut< T > | operator> (const _Var< T > &v) const |
_Cut< T > | operator< (const _Var< T > &v) const |
_Cut< T > | operator>= (const _Var< T > &v) const |
_Cut< T > | operator<= (const _Var< T > &v) const |
_Cut< T > | operator== (const _Var< T > &v) const |
_Cut< T > | operator!= (const _Var< T > &v) const |
_Var< T > | operator* (const _Var< T > &v) const |
_Var< T > | operator/ (const _Var< T > &v) const |
_Var< T > | operator+ (const _Var< T > &v) const |
_Var< T > | operator- (const _Var< T > &v) const |
Static Public Member Functions | |
static int | MaxID () |
Protected Member Functions | |
_Var (const std::function< VarFunc_t > &fun, int id) | |
Protected Attributes | |
std::function< VarFunc_t > | fFunc |
int | fID |
Static Protected Attributes | |
static int | fgNextID = 0 |
The next ID that hasn't yet been assigned. More... | |
Template for Var and SpillVar.
Definition at line 13 of file ReweightableSpectrum.h.
std::function can wrap a real function, function object, or lambda
Definition at line 14 of file Var.cxx.
References ana::DepMan< T >::RegisterConstruction().
Referenced by ana::_Var< caf::SRProxy >::MaxID().
Definition at line 35 of file Var.cxx.
References ana::_Var< T >::fFunc, ana::_Var< T >::fID, ana::_Var< T >::operator=(), ana::DepMan< T >::RegisterConstruction(), and ana::DepMan< T >::RegisterDependency().
Definition at line 29 of file Var.cxx.
References ana::DepMan< T >::RegisterDestruction().
Vars with the same definition will have the same ID.
Definition at line 36 of file Var.h.
Referenced by ana::SpectrumLoaderBase::GetSinkSCW(), ana::_Var< T >::operator*(), ana::_Var< T >::operator+(), ana::_Var< T >::operator-(), and ana::_Var< T >::operator/().
Referenced by ana::_Var< caf::SRProxy >::MaxID().
Allows a variable to be called with double value = myVar(sr) syntax.
Definition at line 30 of file Var.h.
Referenced by ana::Constant(), ana::_Var< T >::operator*(), ana::_Var< T >::operator+(), ana::_Var< T >::operator-(), ana::_Var< T >::operator/(), ana::Scaled(), and ana::Sqrt().
Definition at line 339 of file Var.cxx.
References a, b, ana::_Var< T >::fgNextID, ana::_Var< T >::ID(), PandAna.Demos.tute_pid_validation::ids, findDuplicateFiles::key, ana::_Var< T >::operator()(), ana::_Var< T >::operator/(), sr, and T.
Referenced by ana::_Var< caf::SRProxy >::MaxID(), and ana::Sqrt().
Definition at line 380 of file Var.cxx.
References a, b, ana::_Var< T >::fgNextID, ana::_Var< T >::ID(), PandAna.Demos.tute_pid_validation::ids, findDuplicateFiles::key, ana::_Var< T >::operator()(), ana::_Var< T >::operator-(), sr, and T.
Referenced by ana::_Var< caf::SRProxy >::MaxID(), and ana::_Var< T >::operator/().
Definition at line 397 of file Var.cxx.
References a, b, ana::_Var< T >::fgNextID, ana::_Var< T >::ID(), PandAna.Demos.tute_pid_validation::ids, findDuplicateFiles::key, ana::_Var< T >::operator()(), sr, and T.
Referenced by ana::_Var< caf::SRProxy >::MaxID(), and ana::_Var< T >::operator+().
Definition at line 356 of file Var.cxx.
References a, b, Divide(), ana::_Var< T >::fgNextID, ana::_Var< T >::ID(), PandAna.Demos.tute_pid_validation::ids, findDuplicateFiles::key, ana::_Var< T >::operator()(), ana::_Var< T >::operator+(), sr, and T.
Referenced by ana::_Var< caf::SRProxy >::MaxID(), and ana::_Var< T >::operator*().
Referenced by ana::_Var< caf::SRProxy >::MaxID().
Referenced by ana::_Var< caf::SRProxy >::MaxID().
Definition at line 56 of file Var.cxx.
References ana::_Var< T >::fFunc, ana::_Var< T >::fID, ana::DepMan< T >::RegisterConstruction(), and ana::DepMan< T >::RegisterDependency().
Referenced by ana::_Var< T >::_Var().
Referenced by ana::_Var< caf::SRProxy >::MaxID().
Referenced by ana::_Var< caf::SRProxy >::MaxID().
Referenced by ana::_Var< caf::SRProxy >::MaxID().
Definition at line 62 of file Var.h.
Referenced by ana::_Var< T >::_Var(), ana::MINERvA_MEC_Wgt_Var::MINERvA_MEC_Wgt_Var(), ana::_Var< caf::SRProxy >::operator()(), and ana::_Var< T >::operator=().
The next ID that hasn't yet been assigned.
Definition at line 66 of file Var.h.
Referenced by ana::_Var< caf::SRProxy >::MaxID(), ana::_Var< T >::operator*(), ana::_Var< T >::operator+(), ana::_Var< T >::operator-(), and ana::_Var< T >::operator/().
Definition at line 64 of file Var.h.
Referenced by ana::_Var< T >::_Var(), ana::_Var< caf::SRProxy >::ID(), and ana::_Var< T >::operator=().