Belle II Software development
SoftwareTriggerVariableManager::SoftwareTriggerVariable Class Reference

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.
 
SoftwareTriggerVariableoperator= (const SoftwareTriggerVariable &rhs)=delete
 Do not copy a variable.
 

Friends

class SoftwareTriggerVariableManager
 Let the SoftwareTriggerVariableManager create variables.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SoftwareTriggerVariable()

SoftwareTriggerVariable ( const std::string &  theName)
inlineexplicitprivate

Private constructor. Should only be called by the SoftwareTriggerVariableManager.

Definition at line 67 of file SoftwareTriggerVariableManager.h.

Member Function Documentation

◆ function()

double function ( const SoftwareTriggerObject *  mapOfValues) const
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.

58 {
59 return mapOfValues->at(name);
60 }

Friends And Related Function Documentation

◆ SoftwareTriggerVariableManager

friend class SoftwareTriggerVariableManager
friend

Let the SoftwareTriggerVariableManager create variables.

Definition at line 79 of file SoftwareTriggerVariableManager.h.

Member Data Documentation

◆ name

std::string name = ""

Name of this particular variable.

Definition at line 63 of file SoftwareTriggerVariableManager.h.


The documentation for this class was generated from the following file: