 |
Belle II Software
release-05-02-19
|
12 #include <hlt/softwaretrigger/core/SoftwareTriggerObject.h>
21 namespace SoftwareTrigger {
38 class SoftwareTriggerVariableManager {
51 class SoftwareTriggerVariable {
58 double function(
const SoftwareTriggerObject* mapOfValues)
const
60 return mapOfValues->at(
name);
64 std::string
name =
"";
85 typedef SoftwareTriggerObject
Object;
SoftwareTriggerVariable & operator=(const SoftwareTriggerVariable &rhs)=delete
Do not copy a variable.
std::map< std::string, std::shared_ptr< SoftwareTriggerVariable > > m_variableNameToVariable
Internal storage of the variables with their name.
SoftwareTriggerVariableManager & operator=(SoftwareTriggerVariableManager &rhs)=delete
Delete the assignment operator: only use this class as a singleton.
SoftwareTriggerVariable Var
Use a very slim object for the variables: only draw out the corresponding value from the precompiled ...
SoftwareTriggerVariable(const std::string &theName)
Private constructor. Should only be called by the SoftwareTriggerVariableManager.
SoftwareTriggerVariableManager()
Make the constructor private: only use this class as a singleton.
Abstract base class for different kinds of events.
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.
SoftwareTriggerVariable * getVariable(const std::string &variableName)
Get the variable with the given name.
Variable Manager for the software trigger cuts.
Class which represents an abstract variable in the SoftwareTriggerVariableManager.
std::string name
Name of this particular variable.