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
0_dedxPID_ParticleGun.py
1
#!/usr/bin/env python3
2
3
10
11
"""
12
<header>
13
<input>PartGunChargedStableGenSim.root</input>
14
<output>ParticleGunSimRec_dedx.root</output>
15
<description>Generates dE/dx debug data (DedxTracks)
for
testing</description>
16
<contact>renu2
@andrew.cmu.edu
</contact>
17
</header>
18
"""
19
20
import basf2
21
from reconstruction import add_reconstruction
22
23
main = basf2.create_path()
24
25
# Read input.
26
inputFileName = "../PartGunChargedStableGenSim.root"
27
main.add_module("RootInput", inputFileName=inputFileName)
28
29
# Load parameters.
30
main.add_module("Gearbox")
31
# Create geometry.
32
main.add_module("Geometry")
33
34
# Reconstruct events.
35
add_reconstruction(main)
36
37
# enable debug output for the module added by add_reconstruction()
38
for m in main.modules():
39
if
m.name() ==
'CDCDedxPIDCreator'
:
40
m.param(
'enableDebugOutput'
,
True
)
41
42
43
output = basf2.register_module(
'RootOutput'
)
44
output.param(
'outputFileName'
,
'../ParticleGunSimRec_dedx.root'
)
45
# let's keep this small
46
output.param(
'branchNames'
, [
'CDCDedxLikelihoods'
,
'CDCDedxTracks'
,
'VXDDedxLikelihoods'
,
'VXDDedxTracks'
,
'EventMetaData'
])
47
main.add_module(output)
48
49
main.add_module(
"ProgressBar"
)
50
51
basf2.process(main)
52
print(basf2.statistics)
cdc
validation
0_dedxPID_ParticleGun.py
Generated on Thu Apr 10 2025 02:32:46 for Belle II Software by
1.9.6