Belle II Software development
SoftwareTriggerCutBase Class Reference

Base class for the SoftwareTriggerCut and its DBRepresentation. More...

#include <SoftwareTriggerCutBase.h>

Inheritance diagram for SoftwareTriggerCutBase:
DBRepresentationOfSoftwareTriggerCut SoftwareTriggerCut

Public Member Functions

 SoftwareTriggerCutBase (unsigned int preScaleFactor=1, const bool &isRejectCut=false)
 Create a new base instance. This should rarely be called by yourself.
 
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

SoftwareTriggerCutBaseoperator= (const SoftwareTriggerCutBase &)=delete
 Do not copy/assign this object.
 
 SoftwareTriggerCutBase (const SoftwareTriggerCutBase &rhs)=delete
 Do not copy this object.
 

Private Attributes

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

Base class for the SoftwareTriggerCut and its DBRepresentation.

This is needed as we do not want to upload the GeneralCut with all of its pointers to the database, but rather decompile the cut back into a string before and compile it again after down- and upload. This base class hosts all the properties that are common to both implementations, which is the pre scale factor list and the cut type (reject or accept).

Please refer to the child classes (especially to SoftwareTriggerCut) for mroe information.

Definition at line 25 of file SoftwareTriggerCutBase.h.

Constructor & Destructor Documentation

◆ SoftwareTriggerCutBase()

SoftwareTriggerCutBase ( unsigned int  preScaleFactor = 1,
const bool &  isRejectCut = false 
)
inline

Create a new base instance. This should rarely be called by yourself.

Definition at line 28 of file SoftwareTriggerCutBase.h.

28 :
30 {
31 }
bool isRejectCut() const
Returns true, if the cut is a reject cut and false otherwise.
bool m_isRejectCut
The internal storage if it is a reject cut.
std::vector< unsigned int > m_preScaleFactor
The internal storage of the prescale factor of the cut. In former times, this was a vector but is not...

Member Function Documentation

◆ getPreScaleFactor()

unsigned int getPreScaleFactor ( ) const
inline

Return the list of pre scale factors.

Definition at line 34 of file SoftwareTriggerCutBase.h.

35 {
36 B2ASSERT("Prescale factor should only have a single entry!", m_preScaleFactor.size() == 1);
37 return m_preScaleFactor[0];
38 }

◆ isRejectCut()

bool isRejectCut ( ) const
inline

Returns true, if the cut is a reject cut and false otherwise.

Definition at line 41 of file SoftwareTriggerCutBase.h.

42 {
43 return m_isRejectCut;
44 }

Member Data Documentation

◆ m_isRejectCut

bool m_isRejectCut = false
private

The internal storage if it is a reject cut.

Definition at line 55 of file SoftwareTriggerCutBase.h.

◆ m_preScaleFactor

std::vector<unsigned int> m_preScaleFactor = {1}
private

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)

Definition at line 53 of file SoftwareTriggerCutBase.h.


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