Belle II Software
light-2403-persian
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
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
Variables
Typedefs
a
b
c
d
l
m
n
p
r
s
w
Enumerations
Enumerator
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
_
c
d
e
f
h
i
m
o
p
r
s
t
v
w
Enumerations
b
c
e
g
h
m
p
s
t
v
Enumerator
b
c
k
t
Related Functions
Files
File List
File Members
All
Functions
__init__.py
1
#!/usr/bin/env python3
2
3
10
11
"""
12
Functions related to building or using the simulation/reconstruction geometry
13
"""
14
15
import
basf2
16
17
18
def
check_components(components):
19
"""
20
Check list of geometry components. This function is used by the standard
21
scripts, for example `simulation.add_simulation()`. Thus, only the detector
22
components corresponding to subdetectors are allowed. In addition, TRG is
23
included. Trigger is not a geometry component, but it is used as an
24
additional component in raw-data and DQM scripts.
25
26
If there is a unsupported component in the list the function will raise a
27
FATAL error and is guaranteed to not return.
28
29
Parameters:
30
components (list(str)): List of geometry components.
31
"""
32
33
if
components
is
None
:
34
return
35
allowed_components = [
'PXD'
,
'SVD'
,
'CDC'
,
'ECL'
,
'TOP'
,
'ARICH'
,
'KLM'
,
'TRG'
]
36
for
component
in
components:
37
if
not
(component
in
allowed_components):
38
basf2.B2FATAL(f
'Geometry component {component} is unknown or it cannot be used in standard scripts.'
)
geometry
scripts
geometry
__init__.py
Generated on Fri Apr 12 2024 06:49:34 for Belle II Software by
1.9.1