Belle II Software
development
Toggle main menu visibility
Main Page
Topics
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
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
v
w
x
z
Typedefs
a
b
c
d
e
g
i
k
l
m
n
p
r
s
t
u
v
w
Enumerations
a
b
c
e
f
g
n
p
s
v
z
Enumerator
c
d
f
p
t
v
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 Symbols
b
c
d
g
i
o
r
s
t
Files
File List
File Members
All
Functions
Typedefs
Macros
▼
Belle II Software
►
Topics
►
Namespaces
►
Classes
▼
Files
▼
File List
►
alignment
►
analysis
►
arich
►
b2bii
►
background
►
beast
►
calibration
►
cdc
►
daq
►
decfiles
►
display
►
dqm
►
ecl
▼
framework
►
core
►
data
►
database
►
dataobjects
►
datastore
►
dbobjects
►
examples
►
gearbox
►
geometry
►
io
►
logging
►
modules
►
particledb
►
pcore
►
pybasf2
►
scripts
▼
tests
angle.cc
b2file-normalize.py
B2Vector3.cc
basf2_args.py
basf2_rootinit.py
BeamParameters.cc
binnedEventT0.cc
CalcMeanCov.cc
chain_input.py
check_globaltag_trim.py
check_payload_metadata.py
check_payload_names.py
checkRandomNumbers.py
conditional_iov.py
conditions.py
conditions_metadataprovider.cc
conditions_process2.py
const.cc
cutNodes.cc
database.cc
datastore.cc
dowhile.py
dry-run.py
emptyrelations.py
eventExtraInfo.cc
eventlimiter.py
eventT0.cc
evtmetadata.py
evtpdl.py
filemetadata.py
FileSystem.cc
findFile.py
foreach.py
formula_parser.cc
framework_cppcheck.py
framework_doxygen_check.py
gearbox.cc
generalCut.cc
hardwareClockSettings.cc
Helix.cc
HTML.cc
include_exclude_branches.py
independent_merge_path.py
independent_path.py
iointercept.cc
ioutils.cc
local_database_file.py
local_metadata_provider.py
logging.cc
logsummary.py
make_root_compatible.cc
mcevent_forwarding.py
merge_files.py
mixed_runs.py
module_paths.py
module_setparameters.py
modulelist.py
mrucache.cc
msghandler.cc
multiple_module_conditions.py
node_factory.cc
numberSequence.cc
parallel_processing.py
partialselect.py
path_serialisation.py
prescale.py
processstatistics.cc
prune_datastore.py
pylogging.py
pyroot_tfile.py
python_datastore.py
python_dbinterface.py
recommend.py
relations_consolidate.cc
relations_internal.cc
relationsobject.cc
root_input.py
root_output.py
root_output_split.py
root_returnvalues.py
ScopeGuards.cc
select_subset.cc
seqroot_input.py
seqroot_output.py
signals.py
sphinx_full_release.py
sphinx_light_release.py
sqlite.cc
stop_on_error.py
stream.cc
streamer_test.py
test_b2conditionsdb_commands.py
test_b2file-mix.py
test_b2help_recommendation.py
test_basf2_utils.py
test_calculation.py
test_calculationList.py
test_calculationProcess.py
test_calculationQueue.py
test_check_basf2_file.py
test_entities.py
test_environmentInformation.py
test_globaltag_forwarding.py
test_iov.py
test_IPythonHandler.py
test_light_dependencies.py
test_module_log_level.py
test_module_log_level_run.py
test_print_module_parameters.py
test_runningupdate.py
test_tag_merge.py
UncertainHelix.cc
unit.cc
utils.cc
►
tools
►
utilities
►
generators
►
geometry
►
hlt
►
ir
►
klm
►
masterclass
►
mdst
►
mva
►
online_book
►
pxd
►
rawdata
►
reconstruction
►
simulation
►
site_scons
►
structure
►
svd
►
top
►
tracking
►
trg
►
validation
►
vxd
Doxygen.h
resource_analyzer.py
►
File Members
check_payload_names.py
1
8
'''
9
Check if the database correctly returns the names of all the payloads used by the basf2 process.
10
'''
11
12
import
basf2
as
b2
13
import
b2test_utils
as
b2tu
14
15
16
class
CheckPayloadNames
(b2.Module):
17
'''
18
Small module that asks for some payloads and checks their names.
19
'''
20
21
def
__init__
(self):
22
'''Constructor.'''
23
from
ROOT
import
Belle2
as
B2
24
super().
__init__
()
25
26
self.
payload_names
= [
27
'BeamParameters'
,
28
'BeamSpot'
,
29
'BunchStructure'
,
30
'CollisionBoostVector'
,
31
'HardwareClockSettings'
,
32
'MagneticField'
]
33
self.
payload_names
.sort()
34
for
payload_name
in
self.
payload_names
:
35
B2.PyDBObj(payload_name)
36
21
def
__init__
(self):
…
37
def
event
(self):
38
'''Event.'''
39
from
ROOT
import
Belle2
as
B2
# this is only run once
40
payload_names = sorted(B2.Database.Instance().getAllDataNames())
41
print(
'Set payloads:'
, self.
payload_names
)
42
print(
'Got payloads:'
, payload_names)
43
assert
(self.
payload_names
== payload_names)
44
45
37
def
event
(self):
…
16
class
CheckPayloadNames
(b2.Module):
…
46
if
__name__ ==
'__main__'
:
47
48
with
b2tu.clean_working_directory():
49
main = b2.Path()
50
main.add_module(
'EventInfoSetter'
, expList=[0], runList=[0], evtNumList=[1])
51
main.add_module(
CheckPayloadNames
())
52
b2.process(main)
check_payload_names.CheckPayloadNames
Definition
check_payload_names.py:16
check_payload_names.CheckPayloadNames.payload_names
list payload_names
Payload names to be required.
Definition
check_payload_names.py:26
check_payload_names.CheckPayloadNames.__init__
__init__(self)
Definition
check_payload_names.py:21
check_payload_names.CheckPayloadNames.event
event(self)
Definition
check_payload_names.py:37
framework
tests
check_payload_names.py
Generated on Sun May 18 2025 02:57:41 for Belle II Software by
1.13.2