Belle II Software
release-08-00-10
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
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
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
Typedefs
Macros
__init__.py
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3
4
11
12
"""
13
Functions related to building or using the simulation/reconstruction geometry
14
"""
15
16
import
basf2
17
18
19
def
check_components(components):
20
"""
21
Check list of geometry components. This function is used by the standard
22
scripts, for example `simulation.add_simulation()`. Thus, only the detector
23
components corresponding to subdetectors are allowed. In addition, TRG is
24
included. Trigger is not a geometry component, but it is used as an
25
additional component in raw-data and DQM scripts.
26
27
If there is a unsupported component in the list the function will raise a
28
FATAL error and is guaranteed to not return.
29
30
Parameters:
31
components (list(str)): List of geometry components.
32
"""
33
34
if
components
is
None
:
35
return
36
allowed_components = [
'PXD'
,
'SVD'
,
'CDC'
,
'ECL'
,
'TOP'
,
'ARICH'
,
'KLM'
,
'TRG'
]
37
for
component
in
components:
38
if
not
(component
in
allowed_components):
39
basf2.B2FATAL(
'Geometry component %s is unknown or it cannot be used in standard scripts.'
% (component))
geometry
scripts
geometry
__init__.py
Generated on Fri Aug 9 2024 00:42:56 for Belle II Software by
1.9.1