9#include <hlt/softwaretrigger/core/SoftwareTriggerObject.h>
20 namespace SoftwareTrigger {
57 double function(
const SoftwareTriggerObject* mapOfValues)
const
59 return mapOfValues->at(
name);
84 typedef SoftwareTriggerObject
Object;
Class which represents an abstract variable in the SoftwareTriggerVariableManager.
SoftwareTriggerVariable & operator=(const SoftwareTriggerVariable &rhs)=delete
Do not copy a variable.
SoftwareTriggerVariable(SoftwareTriggerVariable &&)=default
Make the object move constructable.
double function(const SoftwareTriggerObject *mapOfValues) const
Function wich is called by the SoftwareTriggerCut whenever the value of this variable is needed.
SoftwareTriggerVariable(const SoftwareTriggerVariable &rhs)=delete
Do not copy a variable.
std::string name
Name of this particular variable.
SoftwareTriggerVariable(const std::string &theName)
Private constructor. Should only be called by the SoftwareTriggerVariableManager.
Variable Manager for the software trigger cuts.
std::variant< double, int, bool > VarVariant
Typedef for variable return type, can either be double, int or bool in std::variant.
std::map< std::string, std::shared_ptr< SoftwareTriggerVariable > > m_variableNameToVariable
Internal storage of the variables with their name.
SoftwareTriggerObject Object
As an object handed in for every cut to be checked, use a map of variable name -> precompiled value.
static SoftwareTriggerVariableManager & Instance()
Make this variable manager a singleton and get the only single instance of the manager.
SoftwareTriggerVariableManager()
Make the constructor private: only use this class as a singleton.
SoftwareTriggerVariableManager & operator=(SoftwareTriggerVariableManager &rhs)=delete
Delete the assignment operator: only use this class as a singleton.
SoftwareTriggerVariableManager(const SoftwareTriggerVariableManager &)=delete
Delete the copy constructor: only use this class as a singleton.
SoftwareTriggerVariable * getVariable(const std::string &variableName)
Get the variable with the given name.
SoftwareTriggerVariable Var
Use a very slim object for the variables: only draw out the corresponding value from the precompiled ...
Abstract base class for different kinds of events.