Belle II Software  release-05-02-19
SoftwareTriggerMenu.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2017 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Nils Braun *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 #include <TObject.h>
12 
13 namespace Belle2 {
28  class SoftwareTriggerMenu : public TObject {
29  public:
32 
34  SoftwareTriggerMenu(const std::vector<std::string>& cutIdentifiers, bool acceptMode) :
35  m_cutIdentifiers(cutIdentifiers), m_acceptMode(acceptMode)
36  {
37  for (const std::string& cutIdentifier : cutIdentifiers) {
38  B2ASSERT("Cut Identifier should not include a &", cutIdentifier.find("&") == std::string::npos);
39  }
40  }
41 
43  const std::vector<std::string> getCutIdentifiers() const
44  {
45  return m_cutIdentifiers;
46  }
47 
49  bool isAcceptMode() const
50  {
51  return m_acceptMode;
52  }
53 
54  private:
56  std::vector<std::string> m_cutIdentifiers = {};
57 
59  bool m_acceptMode = false;
60 
63  };
65 }
Belle2::SoftwareTriggerMenu::ClassDef
ClassDef(SoftwareTriggerMenu, 1)
Make this class ready for ROOT.
Belle2::SoftwareTriggerMenu
Class to handle storing the trigger menu in the database.
Definition: SoftwareTriggerMenu.h:36
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::SoftwareTriggerMenu::SoftwareTriggerMenu
SoftwareTriggerMenu()
Empty constructor for ROOT.
Definition: SoftwareTriggerMenu.h:39
Belle2::SoftwareTriggerMenu::m_cutIdentifiers
std::vector< std::string > m_cutIdentifiers
List of cut identifiers in this trigger menu.
Definition: SoftwareTriggerMenu.h:64
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:67
Belle2::SoftwareTriggerMenu::isAcceptMode
bool isAcceptMode() const
Returns true if the mode of this cut is "accept" (instead of "reject").
Definition: SoftwareTriggerMenu.h:57
Belle2::SoftwareTriggerMenu::getCutIdentifiers
const std::vector< std::string > getCutIdentifiers() const
Getter for the cut identifiers.
Definition: SoftwareTriggerMenu.h:51