Belle II Software  release-05-02-19
DBRepresentationOfSoftwareTriggerCut.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - 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 
12 #include <mdst/dbobjects/SoftwareTriggerCutBase.h>
13 
14 #include <TObject.h>
15 
16 namespace Belle2 {
28  class DBRepresentationOfSoftwareTriggerCut : public TObject, public SoftwareTriggerCutBase {
29  public:
32 
34  DBRepresentationOfSoftwareTriggerCut(unsigned int preScaleFactor, const bool& isRejectCut, const std::string& cutString) :
35  SoftwareTriggerCutBase(preScaleFactor, isRejectCut), m_cutString(cutString) {}
36 
38  const std::string& getCutString() const
39  {
40  return m_cutString;
41  }
42  private:
44  std::string m_cutString = "";
45 
48  };
50 }
Belle2::DBRepresentationOfSoftwareTriggerCut::ClassDef
ClassDef(DBRepresentationOfSoftwareTriggerCut, 2)
Make this class ready for ROOT.
Belle2::SoftwareTriggerCutBase::isRejectCut
bool isRejectCut() const
Returns true, if the cut is a reject cut and false otherwise.
Definition: SoftwareTriggerCutBase.h:51
Belle2::SoftwareTriggerCutBase::SoftwareTriggerCutBase
SoftwareTriggerCutBase(unsigned int preScaleFactor=1, const bool &isRejectCut=false)
Create a new base instance. This should rarely be called by yourself.
Definition: SoftwareTriggerCutBase.h:38
Belle2::DBRepresentationOfSoftwareTriggerCut::m_cutString
std::string m_cutString
The internal storage of the string representation of the cut.
Definition: DBRepresentationOfSoftwareTriggerCut.h:52
Belle2::DBRepresentationOfSoftwareTriggerCut::DBRepresentationOfSoftwareTriggerCut
DBRepresentationOfSoftwareTriggerCut()=default
Default constructor for ROOT.
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::DBRepresentationOfSoftwareTriggerCut
Class to handle storing SoftwareTriggerCuts in the database.
Definition: DBRepresentationOfSoftwareTriggerCut.h:36
Belle2::DBRepresentationOfSoftwareTriggerCut::getCutString
const std::string & getCutString() const
Return the cut string stored in this db representation.
Definition: DBRepresentationOfSoftwareTriggerCut.h:46