Belle II Software  release-08-01-10
DBRepresentationOfSoftwareTriggerCut Class Reference

Class to handle storing SoftwareTriggerCuts in the database. More...

#include <DBRepresentationOfSoftwareTriggerCut.h>

Inheritance diagram for DBRepresentationOfSoftwareTriggerCut:
Collaboration diagram for DBRepresentationOfSoftwareTriggerCut:

Public Member Functions

 DBRepresentationOfSoftwareTriggerCut ()=default
 Default constructor for ROOT.
 
 DBRepresentationOfSoftwareTriggerCut (unsigned int preScaleFactor, const bool &isRejectCut, const std::string &cutString)
 Constructor from the three components pre scale factor, reject flag and cut string.
 
const std::string & getCutString () const
 Return the cut string stored in this db representation.
 
unsigned int getPreScaleFactor () const
 Return the list of pre scale factors.
 
bool isRejectCut () const
 Returns true, if the cut is a reject cut and false otherwise.
 

Private Member Functions

 ClassDef (DBRepresentationOfSoftwareTriggerCut, 2)
 Make this class ready for ROOT.
 

Private Attributes

std::string m_cutString = ""
 The internal storage of the string representation of the cut.
 
std::vector< unsigned int > m_preScaleFactor = {1}
 The internal storage of the prescale factor of the cut. In former times, this was a vector but is not used anymore (only single entry)
 
bool m_isRejectCut = false
 The internal storage if it is a reject cut.
 

Detailed Description

Class to handle storing SoftwareTriggerCuts in the database.

As we do not want to upload cuts themselve (with all their dependencies and pointers), we decompile them back into a string and save only the string along with the prescale factor. When using the cut, they are recompiled back into a cut from the string representation.

Definition at line 26 of file DBRepresentationOfSoftwareTriggerCut.h.


The documentation for this class was generated from the following file: