Belle II Software development
SoftwareTriggerMenu Class Reference

Class to handle storing the trigger menu in the database. More...

#include <SoftwareTriggerMenu.h>

Inheritance diagram for SoftwareTriggerMenu:

Public Member Functions

 SoftwareTriggerMenu ()
 Empty constructor for ROOT.
 
 SoftwareTriggerMenu (const std::vector< std::string > &cutIdentifiers, bool acceptMode)
 Normal constructor.
 
const std::vector< std::string > getCutIdentifiers () const
 Getter for the cut identifiers.
 
bool isAcceptMode () const
 Returns true if the mode of this cut is "accept" (instead of "reject").
 

Private Member Functions

 ClassDef (SoftwareTriggerMenu, 1)
 Make this class ready for ROOT.
 

Private Attributes

std::vector< std::string > m_cutIdentifiers = {}
 List of cut identifiers in this trigger menu.
 
bool m_acceptMode = false
 Mode setting, if in accept mode or not (if not, we are in reject mode).
 

Detailed Description

Class to handle storing the trigger menu in the database.

It stores together with a base identifier the list of cuts attached to this base identifier. When evaluating the software trigger module, this trigger menu is used to know, which trigger cuts are downloaded from the database and evaluated.

The result of the SoftwareTrigger module depends directly on these trigger cuts and the setting of the mode, which defines if accept cuts or reject cuts are handled preferential over the other type. See more information in the SoftwareTriggerModule.

Definition at line 26 of file SoftwareTriggerMenu.h.

Constructor & Destructor Documentation

◆ SoftwareTriggerMenu() [1/2]

SoftwareTriggerMenu ( )
inline

Empty constructor for ROOT.

Definition at line 29 of file SoftwareTriggerMenu.h.

29{}

◆ SoftwareTriggerMenu() [2/2]

SoftwareTriggerMenu ( const std::vector< std::string > &  cutIdentifiers,
bool  acceptMode 
)
inline

Normal constructor.

Definition at line 32 of file SoftwareTriggerMenu.h.

32 :
33 m_cutIdentifiers(cutIdentifiers), m_acceptMode(acceptMode)
34 {
35 for (const std::string& cutIdentifier : cutIdentifiers) {
36 B2ASSERT("Cut Identifier should not include a &", cutIdentifier.find("&") == std::string::npos);
37 }
38 }
bool m_acceptMode
Mode setting, if in accept mode or not (if not, we are in reject mode).
std::vector< std::string > m_cutIdentifiers
List of cut identifiers in this trigger menu.

Member Function Documentation

◆ getCutIdentifiers()

const std::vector< std::string > getCutIdentifiers ( ) const
inline

Getter for the cut identifiers.

Definition at line 41 of file SoftwareTriggerMenu.h.

42 {
43 return m_cutIdentifiers;
44 }

◆ isAcceptMode()

bool isAcceptMode ( ) const
inline

Returns true if the mode of this cut is "accept" (instead of "reject").

Definition at line 47 of file SoftwareTriggerMenu.h.

48 {
49 return m_acceptMode;
50 }

Member Data Documentation

◆ m_acceptMode

bool m_acceptMode = false
private

Mode setting, if in accept mode or not (if not, we are in reject mode).

Definition at line 57 of file SoftwareTriggerMenu.h.

◆ m_cutIdentifiers

std::vector<std::string> m_cutIdentifiers = {}
private

List of cut identifiers in this trigger menu.

Definition at line 54 of file SoftwareTriggerMenu.h.


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