Belle II Software development
|
Class which represents an abstract variable in the SoftwareTriggerVariableManager. More...
Public Member Functions | |
double | function (const SoftwareTriggerObject *mapOfValues) const |
Function wich is called by the SoftwareTriggerCut whenever the value of this variable is needed. | |
Public Attributes | |
std::string | name = "" |
Name of this particular variable. | |
Private Member Functions | |
SoftwareTriggerVariable (const std::string &theName) | |
Private constructor. Should only be called by the SoftwareTriggerVariableManager. | |
SoftwareTriggerVariable (SoftwareTriggerVariable &&)=default | |
Make the object move constructable. | |
SoftwareTriggerVariable (const SoftwareTriggerVariable &rhs)=delete | |
Do not copy a variable. | |
SoftwareTriggerVariable & | operator= (const SoftwareTriggerVariable &rhs)=delete |
Do not copy a variable. | |
Friends | |
class | SoftwareTriggerVariableManager |
Let the SoftwareTriggerVariableManager create variables. | |
Class which represents an abstract variable in the SoftwareTriggerVariableManager.
It fulfills all requirements for a "Variable", that are given by the GeneralCut class, namely a name member and a function to calculate. In the SoftwareTrigger case, this function is really simple: Just take the needed value (with the name given by the variable's name) out of the already precompiled map of values given as a SoftwareTriggerObject.
In normal use cases, you do not have to create a variable on your own and you should not have contact with them (this is why they are a private class of the VariableManager).
Definition at line 50 of file SoftwareTriggerVariableManager.h.
|
inlineexplicitprivate |
Private constructor. Should only be called by the SoftwareTriggerVariableManager.
Definition at line 67 of file SoftwareTriggerVariableManager.h.
|
inline |
Function wich is called by the SoftwareTriggerCut whenever the value of this variable is needed.
As the values are all already compiled, it just takes the corresponding number from the map of values given as the SoftwareTriggerObject.
Definition at line 57 of file SoftwareTriggerVariableManager.h.
|
friend |
Let the SoftwareTriggerVariableManager create variables.
Definition at line 79 of file SoftwareTriggerVariableManager.h.
std::string name = "" |
Name of this particular variable.
Definition at line 63 of file SoftwareTriggerVariableManager.h.