Belle II Software
development
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
11
namespace
Belle2
{
26
class
SoftwareTriggerMenu
:
public
TObject {
27
public
:
29
SoftwareTriggerMenu
() {}
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
60
ClassDef
(
SoftwareTriggerMenu
, 1);
61
};
63
}
Belle2::SoftwareTriggerMenu
Class to handle storing the trigger menu in the database.
Definition:
SoftwareTriggerMenu.h:26
Belle2::SoftwareTriggerMenu::ClassDef
ClassDef(SoftwareTriggerMenu, 1)
Make this class ready for ROOT.
Belle2::SoftwareTriggerMenu::m_acceptMode
bool m_acceptMode
Mode setting, if in accept mode or not (if not, we are in reject mode).
Definition:
SoftwareTriggerMenu.h:57
Belle2::SoftwareTriggerMenu::SoftwareTriggerMenu
SoftwareTriggerMenu()
Empty constructor for ROOT.
Definition:
SoftwareTriggerMenu.h:29
Belle2::SoftwareTriggerMenu::isAcceptMode
bool isAcceptMode() const
Returns true if the mode of this cut is "accept" (instead of "reject").
Definition:
SoftwareTriggerMenu.h:47
Belle2::SoftwareTriggerMenu::SoftwareTriggerMenu
SoftwareTriggerMenu(const std::vector< std::string > &cutIdentifiers, bool acceptMode)
Normal constructor.
Definition:
SoftwareTriggerMenu.h:32
Belle2::SoftwareTriggerMenu::m_cutIdentifiers
std::vector< std::string > m_cutIdentifiers
List of cut identifiers in this trigger menu.
Definition:
SoftwareTriggerMenu.h:54
Belle2::SoftwareTriggerMenu::getCutIdentifiers
const std::vector< std::string > getCutIdentifiers() const
Getter for the cut identifiers.
Definition:
SoftwareTriggerMenu.h:41
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:17
mdst
dbobjects
include
SoftwareTriggerMenu.h
Generated on Fri Nov 8 2024 02:40:01 for Belle II Software by
1.9.6