Belle II Software light-2406-ragdoll
SoftwareTriggerMenu.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#pragma once
9#include <TObject.h>
10
11namespace Belle2 {
26 class SoftwareTriggerMenu : public TObject {
27 public:
30
32 SoftwareTriggerMenu(const std::vector<std::string>& cutIdentifiers, bool acceptMode) :
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 }
39
41 const std::vector<std::string> getCutIdentifiers() const
42 {
43 return m_cutIdentifiers;
44 }
45
47 bool isAcceptMode() const
48 {
49 return m_acceptMode;
50 }
51
52 private:
54 std::vector<std::string> m_cutIdentifiers = {};
55
57 bool m_acceptMode = false;
58
61 };
63}
Class to handle storing the trigger menu in the database.
ClassDef(SoftwareTriggerMenu, 1)
Make this class ready for ROOT.
bool m_acceptMode
Mode setting, if in accept mode or not (if not, we are in reject mode).
SoftwareTriggerMenu()
Empty constructor for ROOT.
bool isAcceptMode() const
Returns true if the mode of this cut is "accept" (instead of "reject").
SoftwareTriggerMenu(const std::vector< std::string > &cutIdentifiers, bool acceptMode)
Normal constructor.
std::vector< std::string > m_cutIdentifiers
List of cut identifiers in this trigger menu.
const std::vector< std::string > getCutIdentifiers() const
Getter for the cut identifiers.
Abstract base class for different kinds of events.
Definition: ClusterUtils.h:24