Belle II Software light-2406-ragdoll
EventErrorFlagModule.cc
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
9#include <framework/modules/core/EventErrorFlagModule.h>
10
11using namespace Belle2;
12
13//-----------------------------------------------------------------
14// Register the Module
15//-----------------------------------------------------------------
16REG_MODULE(EventErrorFlag);
17
18//-----------------------------------------------------------------
19// Implementation
20//-----------------------------------------------------------------
21
23{
24 setDescription("Returns error flags of the EventMetaData and can add further error flags.");
25
27
28 addParam("errorFlag", m_ErrorFlag, "Error flags to add", 0);
29}
30
32{
33 m_eventMetaData.isRequired();
34}
35
37{
38 setReturnValue(int(m_eventMetaData->getErrorFlag()));
40}
EventErrorFlagModule()
Constructor of the module.
virtual void initialize() override
Initializes the datastore pointers.
virtual void event() override
Checks and adds the EventMetaData error flags.
int m_ErrorFlag
Error flags to add.
StoreObjPtr< EventMetaData > m_eventMetaData
event meta data
EventErrorFlag
bit-flag format of m_error_flag
Definition: EventMetaData.h:43
Base class for Modules.
Definition: Module.h:72
void setDescription(const std::string &description)
Sets the description of the module.
Definition: Module.cc:214
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
Definition: Module.cc:208
void setReturnValue(int value)
Sets the return value for this module as integer.
Definition: Module.cc:220
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
Definition: Module.h:80
void addParam(const std::string &name, T &paramVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
Definition: Module.h:560
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Definition: Module.h:650
Abstract base class for different kinds of events.
Definition: ClusterUtils.h:24