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
test_density_scaler.py
1
8
9
'''
10
Test if the DensityScaler module works.
11
N.B.: this test can not be run in a light-release enviroment.
12
'''
13
14
import
basf2
as
b2
15
import
b2test_utils
as
b2tu
16
17
b2tu.skip_test_if_light()
18
19
import
generators
as
ge
# noqa
20
import
simulation
as
si
# noqa
21
22
23
main = b2.Path()
24
25
main.add_module(
'EventInfoSetter'
)
26
27
main.add_module(
'Progress'
)
28
29
ge.add_evtgen_generator(main,
'mixed'
)
30
31
# This is the relevant piece of this test.
32
main.add_module(
'DensityScaler'
, scaling={
'BeamPipe'
: 0.85,
'ECL'
: 1.5})
33
34
si.add_simulation(main)
35
36
b2.process(main)
geometry
tests
test_density_scaler.py
Generated on Fri Apr 12 2024 06:51:46 for Belle II Software by
1.9.1