Belle II Software
release-05-02-19
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
a
b
c
d
e
h
i
l
m
n
p
r
s
t
v
w
Enumerations
Enumerator
c
d
f
p
t
u
v
w
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
k
l
m
n
o
p
r
s
t
u
v
w
z
Related Functions
b
c
d
g
i
o
r
s
t
Files
File List
File Members
All
Functions
EventErrorFlagModule.cc
1
/**************************************************************************
2
* BASF2 (Belle Analysis Framework 2) *
3
* Copyright(C) 2020 - Belle II Collaboration *
4
* *
5
* Author: The Belle II Collaboration *
6
* Contributors: Thomas Kuhr *
7
* *
8
* This software is provided "as is" without any warranty. *
9
**************************************************************************/
10
11
#include <framework/modules/core/EventErrorFlagModule.h>
12
13
using namespace
Belle2
;
14
15
//-----------------------------------------------------------------
16
// Register the Module
17
//-----------------------------------------------------------------
18
REG_MODULE
(EventErrorFlag)
19
20
//-----------------------------------------------------------------
21
// Implementation
22
//-----------------------------------------------------------------
23
24
EventErrorFlagModule
::
EventErrorFlagModule
() :
Module
()
25
{
26
setDescription(
"Returns error flags of the EventMetaData and can add further error flags."
);
27
28
setPropertyFlags(c_ParallelProcessingCertified);
29
30
addParam(
"errorFlag"
, m_ErrorFlag,
"Error flags to add"
, 0);
31
}
32
33
void
EventErrorFlagModule::initialize
()
34
{
35
m_eventMetaData
.isRequired();
36
}
37
38
void
EventErrorFlagModule::event
()
39
{
40
setReturnValue
(
int
(
m_eventMetaData
->getErrorFlag()));
41
m_eventMetaData
->addErrorFlag(
EventMetaData::EventErrorFlag
(
m_ErrorFlag
));
42
}
Belle2::EventErrorFlagModule::event
virtual void event() override
Checks and adds the EventMetaData error flags.
Definition:
EventErrorFlagModule.cc:38
REG_MODULE
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Definition:
Module.h:652
Belle2::EventErrorFlagModule::m_ErrorFlag
int m_ErrorFlag
Error flags to add.
Definition:
EventErrorFlagModule.h:50
Belle2::Module
Base class for Modules.
Definition:
Module.h:74
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:19
Belle2::Module::setReturnValue
void setReturnValue(int value)
Sets the return value for this module as integer.
Definition:
Module.cc:222
Belle2::EventErrorFlagModule::m_eventMetaData
StoreObjPtr< EventMetaData > m_eventMetaData
event meta data
Definition:
EventErrorFlagModule.h:53
Belle2::EventErrorFlagModule
Module to check or add error flags of the EventMetaData.
Definition:
EventErrorFlagModule.h:37
Belle2::EventMetaData::EventErrorFlag
EventErrorFlag
bit-flag format of m_error_flag
Definition:
EventMetaData.h:53
Belle2::EventErrorFlagModule::initialize
virtual void initialize() override
Initializes the datastore pointers.
Definition:
EventErrorFlagModule.cc:33
framework
modules
core
src
EventErrorFlagModule.cc
Generated on Tue Jan 4 2022 02:56:51 for Belle II Software by
1.8.17