8 #include <analysis/VariableManager/Manager.h>
9 #include <framework/utilities/FormulaParser.h>
28 if (!var)
throw std::runtime_error(
"Could not find " + name +
" via the Variable::Manager. Check the name");
35 return [value](
const Particle*) {
return value; };
41 return [op, a, b](
const Particle * p) {
50 throw std::runtime_error(
"Cannot handle operator " + std::to_string((
int)op));
57 return [op, a, b](
const Particle * p) {
66 throw std::runtime_error(
"Cannot handle operator " + std::to_string((
int)op));
73 return [op, a, b](
const Particle * p) {
82 throw std::runtime_error(
"Cannot handle operator " + std::to_string((
int)op));
Class to store reconstructed particles.
const Var * getVariable(std::string name)
Get the variable belonging to the given key.
static Manager & Instance()
get singleton instance.
std::function< double(const Particle *)> FunctionPtr
NOTE: the python interface is documented manually in analysis/doc/Variables.rst (because we use ROOT ...
Abstract base class for different kinds of events.