Belle II Software development
DBRepresentationOfSoftwareTriggerCut.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
10#include <mdst/dbobjects/SoftwareTriggerCutBase.h>
11
12#include <TObject.h>
13
14namespace Belle2 {
27 public:
30
32 DBRepresentationOfSoftwareTriggerCut(unsigned int preScaleFactor, const bool& isRejectCut, const std::string& cutString) :
33 SoftwareTriggerCutBase(preScaleFactor, isRejectCut), m_cutString(cutString) {}
34
36 const std::string& getCutString() const
37 {
38 return m_cutString;
39 }
40 private:
42 std::string m_cutString = "";
43
46 };
48}
Class to handle storing SoftwareTriggerCuts in the database.
ClassDef(DBRepresentationOfSoftwareTriggerCut, 2)
Make this class ready for ROOT.
const std::string & getCutString() const
Return the cut string stored in this db representation.
DBRepresentationOfSoftwareTriggerCut(unsigned int preScaleFactor, const bool &isRejectCut, const std::string &cutString)
Constructor from the three components pre scale factor, reject flag and cut string.
std::string m_cutString
The internal storage of the string representation of the cut.
DBRepresentationOfSoftwareTriggerCut()=default
Default constructor for ROOT.
Base class for the SoftwareTriggerCut and its DBRepresentation.
bool isRejectCut() const
Returns true, if the cut is a reject cut and false otherwise.
Abstract base class for different kinds of events.