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
cosmicsAxialHoughTrackingValidation.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>CosmicsSimNoBkg.root</input>
16
<description>Validates the axial hough finder working on segments in cosmics events.</description>
17
</header>
18
"""
19
20
from
tracking.validation.run
import
TrackingValidationRun
21
import
logging
22
import
trackfindingcdc.cdcdisplay
as
cdcdisplay
23
import
os
24
import
basf2
25
VALIDATION_OUTPUT_FILE =
'CosmicsAxialHoughTrackingValidation.root'
26
N_EVENTS = 1000
27
ACTIVE =
False
28
29
basf2.set_random_seed(1337)
30
31
32
class
CosmicsAxialHough
(
TrackingValidationRun
):
33
"""Validate the CDC axial Hough track finder with cosmic rays"""
34
35
n_events = N_EVENTS
36
37
generator_module =
'Cosmics'
38
39
root_input_file =
'../CosmicsSimNoBkg.root'
40
41
components =
None
42
43
def
finder_module
(self, path):
44
"""Add the CDC track-finding module to the basf2 path"""
45
path.add_module(
'TFCDC_WireHitPreparer'
)
46
path.add_module(
"TFCDC_ClusterPreparer"
)
47
path.add_module(
'TFCDC_SegmentFinderFacetAutomaton'
,
48
SegmentOrientation=
"downwards"
)
49
path.add_module(
'TFCDC_AxialTrackCreatorSegmentHough'
)
50
path.add_module(
'TFCDC_TrackExporter'
)
51
52
interactive_display =
False
53
if
interactive_display:
54
cdc_display_module = cdcdisplay.CDCSVGDisplayModule(os.getcwd(), interactive=
True
)
55
cdc_display_module.draw_recotracks =
True
56
cdc_display_module.draw_recotrack_seed_trajectories =
True
57
path.add_module(cdc_display_module)
58
59
60
tracking_coverage = {
61
'WhichParticles'
: [
'CDC'
],
# Include all particles seen in CDC, also secondaries
62
'UsePXDHits'
:
False
,
63
'UseSVDHits'
:
False
,
64
'UseCDCHits'
:
True
,
65
'UseOnlyAxialCDCHits'
:
True
,
66
"UseReassignedHits"
:
True
,
67
}
68
69
70
pulls =
True
71
72
output_file_name = VALIDATION_OUTPUT_FILE
73
74
75
def
main
():
76
validation_run =
CosmicsAxialHough
()
77
validation_run.configure_and_execute_from_commandline()
78
79
80
if
__name__ ==
'__main__'
:
81
logging.basicConfig(level=logging.INFO)
82
if
ACTIVE:
83
main
()
cosmicsAxialHoughTrackingValidation.CosmicsAxialHough
Definition:
cosmicsAxialHoughTrackingValidation.py:32
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
trackfindingcdc.cdcdisplay
Definition:
__init__.py:1
tracking.validation.run
Definition:
run.py:1
main
int main(int argc, char **argv)
Run all tests.
Definition:
test_main.cc:75
tracking
validation
cosmicsAxialHoughTrackingValidation.py
Generated on Fri Dec 8 2023 04:33:19 for Belle II Software by
1.9.1