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
ROIfindingConditionFromDBModule.cc
1
/**************************************************************************
2
* BASF2 (Belle Analysis Framework 2) *
3
* Copyright(C) 2019 - Belle II Collaboration *
4
* *
5
* Author: The Belle II Collaboration *
6
* Contributors: Simon Kurz *
7
* *
8
* This software is provided "as is" without any warranty. *
9
**************************************************************************/
10
#include <simulation/dbtools/ROIfindingConditionFromDBModule.h>
11
#include <framework/core/ModuleParam.templateDetails.h>
12
13
using namespace
Belle2
;
14
15
REG_MODULE
(ROIfindingConditionFromDB)
16
17
ROIfindingConditionFromDBModule
::
ROIfindingConditionFromDBModule
() :
Module
(), m_roiParameters()
18
{
19
setDescription(
"Module which sets its return value based on the payload whether ROI-finding was enabled for the given run/exp interval or not."
);
20
setPropertyFlags(Module::EModulePropFlags::c_ParallelProcessingCertified);
21
}
22
23
void
ROIfindingConditionFromDBModule::event
()
24
{
25
if
(
m_roiParameters
.hasChanged()) {
26
if
(
m_roiParameters
) {
27
m_roiEnabled
=
m_roiParameters
->getROIfinding();
28
}
else
{
29
B2ERROR(
"No configuration for the current run found"
);
30
}
31
}
32
setReturnValue
(
m_roiEnabled
);
33
}
34
Belle2::ROIfindingConditionFromDBModule
Module which sets its return value based on the payload whether ROI-finding was enabled for the given...
Definition:
ROIfindingConditionFromDBModule.h:33
REG_MODULE
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Definition:
Module.h:652
Belle2::Module
Base class for Modules.
Definition:
Module.h:74
Belle2::ROIfindingConditionFromDBModule::m_roiParameters
DBObjPtr< ROIParameters > m_roiParameters
Configuration parameters for ROIs.
Definition:
ROIfindingConditionFromDBModule.h:46
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::ROIfindingConditionFromDBModule::event
void event() override
Returns true, if ROI-finding is enabled.
Definition:
ROIfindingConditionFromDBModule.cc:23
Belle2::ROIfindingConditionFromDBModule::m_roiEnabled
bool m_roiEnabled
Internal condition: true if run/exp is in IoV.
Definition:
ROIfindingConditionFromDBModule.h:43
simulation
dbtools
src
ROIfindingConditionFromDBModule.cc
Generated on Tue Jan 4 2022 03:01:56 for Belle II Software by
1.8.17