Belle II Software
release-06-00-14
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
cdcLegendreTrackingValidation.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>CDCLegendreTrackingValidation.root</output>
17
<description>This module validates that legendre track finding is capable of reconstructing tracks in Y(4S) runs.</description>
18
</header>
19
"""
20
21
from
tracking.validation.run
import
TrackingValidationRun
22
import
logging
23
import
basf2
24
VALIDATION_OUTPUT_FILE =
'CDCLegendreTrackingValidation.root'
25
N_EVENTS = 1000
26
ACTIVE =
True
27
28
basf2.set_random_seed(1337)
29
30
31
class
CDCLegendre
(
TrackingValidationRun
):
32
"""Validate the combined CDC Legendre track-finding algorithm"""
33
34
n_events = N_EVENTS
35
36
generator_module =
'generic'
37
38
root_input_file =
'../EvtGenSimNoBkg.root'
39
40
@staticmethod
41
def
finder_module
(path):
42
"""Add the CDC Legendre track-finding module and related modules to the basf2 path"""
43
path.add_module(
'TFCDC_WireHitPreparer'
)
44
45
use_legendre_finder =
True
46
if
use_legendre_finder:
47
path.add_module(
'TFCDC_AxialTrackFinderLegendre'
)
48
else
:
49
path.add_module(
'TFCDC_AxialTrackFinderHough'
)
50
51
path.add_module(
'TFCDC_TrackExporter'
)
52
53
54
tracking_coverage = {
55
'WhichParticles'
: [
'CDC'
],
# Include all particles seen in CDC, also secondaries
56
'UsePXDHits'
:
False
,
57
'UseSVDHits'
:
False
,
58
'UseCDCHits'
:
True
,
59
'UseOnlyAxialCDCHits'
:
True
,
60
"UseReassignedHits"
:
True
,
61
'UseOnlyBeforeTOP'
:
True
,
62
'UseNLoops'
: 1,
63
'MinCDCAxialHits'
: 8,
64
'EnergyCut'
: 0,
65
}
66
67
68
pulls =
True
69
70
output_file_name = VALIDATION_OUTPUT_FILE
71
72
74
exclude_profile_pr_parameter = [
"Seed tan #lambda"
,
"Seed #theta"
]
75
76
77
def
main
():
78
validation_run =
CDCLegendre
()
79
validation_run.configure_and_execute_from_commandline()
80
81
82
if
__name__ ==
'__main__'
:
83
logging.basicConfig(level=logging.INFO)
84
if
ACTIVE:
85
main
()
cdcLegendreTrackingValidation.CDCLegendre
Definition:
cdcLegendreTrackingValidation.py:31
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
tracking.validation.run
Definition:
run.py:1
main
int main(int argc, char **argv)
Run all tests.
Definition:
test_main.cc:75
tracking
validation
cdcLegendreTrackingValidation.py
Generated on Thu Jul 14 2022 08:15:43 for Belle II Software by
1.9.1