Belle II Software
release-06-01-15
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
z
Typedefs
a
b
c
d
e
i
k
l
m
n
p
r
s
t
u
v
w
Enumerations
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
vxdHoughTrackingValidation.py
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3
4
11
12
"""
13
<header>
14
<contact>software-tracking@belle2.org</contact>
15
<input>EvtGenSimNoBkg.root</input>
16
<output>VXDHoughTrackingValidation.root</output>
17
<description>
18
This module validates that the DATCON SVD only track finding is capable of reconstructing tracks in Y(4S) runs.
19
</description>
20
</header>
21
"""
22
23
import
tracking
24
from
tracking.validation.run
import
TrackingValidationRun
25
import
logging
26
import
basf2
27
from
vxdHoughTracking.vxdHoughTracking_functions
import
add_VXDHoughTracking
28
29
VALIDATION_OUTPUT_FILE =
'VXDHoughTrackingValidation.root'
30
N_EVENTS = 1000
31
ACTIVE =
True
32
33
basf2.set_random_seed(1337)
34
35
36
class
VXDHoughTrackingValidation
(
TrackingValidationRun
):
37
"""
38
Validation class for the four 4-SVD Layer tracking
39
"""
40
41
n_events = N_EVENTS
42
43
generator_module =
'generic'
44
45
root_input_file =
'../EvtGenSimNoBkg.root'
46
47
components =
None
48
49
@staticmethod
50
def
finder_module
(path):
51
"""Add the VXDHoughTracking module and related modules to the basf2 path"""
52
tracking.add_hit_preparation_modules(path, components=[
"SVD"
])
53
add_VXDHoughTracking(path, reco_tracks=
'RecoTracks'
, use_simple_roi_calculation=
False
)
54
55
56
tracking_coverage = {
57
'WhichParticles'
: [
'SVD'
],
# Include all particles seen in the SVD detector, also secondaries
58
'UsePXDHits'
:
False
,
59
'UseSVDHits'
:
True
,
60
'UseCDCHits'
:
False
,
61
}
62
63
64
fit_tracks =
True
65
66
pulls =
True
67
68
use_expert_folder =
True
69
70
resolution =
True
71
72
use_fit_information =
True
73
74
output_file_name = VALIDATION_OUTPUT_FILE
75
76
77
def
main
():
78
"""
79
create SVD validation class and execute
80
"""
81
validation_run =
VXDHoughTrackingValidation
()
82
validation_run.configure_and_execute_from_commandline()
83
84
85
if
__name__ ==
'__main__'
:
86
logging.basicConfig(level=logging.INFO)
87
if
ACTIVE:
88
main
()
tracking.run.tracked_event_generation.ReadOrGenerateTrackedEventsRun.finder_module
finder_module
Name of the finder module to be used - can be everything that is accepted by tracking....
Definition:
tracked_event_generation.py:33
tracking.validation.run.TrackingValidationRun
Definition:
run.py:25
vxdHoughTrackingValidation.VXDHoughTrackingValidation
Definition:
vxdHoughTrackingValidation.py:36
tracking.validation.run
Definition:
run.py:1
vxdHoughTracking.vxdHoughTracking_functions
Definition:
vxdHoughTracking_functions.py:1
main
int main(int argc, char **argv)
Run all tests.
Definition:
test_main.cc:75
tracking
validation
vxdHoughTrackingValidation.py
Generated on Fri Dec 8 2023 04:33:23 for Belle II Software by
1.9.1