Belle II Software
development
Toggle main menu visibility
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
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 Functions
b
c
d
g
i
o
r
s
t
Files
File List
File Members
All
Functions
Typedefs
Macros
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 environment.
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 Wed Apr 9 2025 02:42:14 for Belle II Software by
1.9.6