Belle II Software
release-06-02-00
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
cdcAutomatonTrackingValidation.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>CDCAutomatonTrackingValidation.root</output>
17
<description>
18
This module validates that cdc cellular automaton track finding
19
is capable of reconstructing tracks in Y(4S) runs.
20
</description>
21
</header>
22
"""
23
24
from
tracking.validation.run
import
TrackingValidationRun
25
import
logging
26
import
basf2
27
VALIDATION_OUTPUT_FILE =
'CDCAutomatonTrackingValidation.root'
28
CONTACT =
'software-tracking@belle2.org'
29
N_EVENTS = 1000
30
ACTIVE =
True
31
32
basf2.set_random_seed(1337)
33
34
35
class
CDCAutomaton
(
TrackingValidationRun
):
36
"""Validate the CDC TrackFinderAutomaton"""
37
38
n_events = N_EVENTS
39
40
generator_module =
'generic'
41
42
root_input_file =
'../EvtGenSimNoBkg.root'
43
44
def
finder_module
(self, path):
45
"""Add the CDC TrackFinderAutomaton to the basf2 path"""
46
path.add_module(
'TFCDC_TrackFinderAutomaton'
,
47
# UseNLoops = 1,
48
)
49
50
51
tracking_coverage = {
52
'WhichParticles'
: [
'CDC'
],
# Include all particles seen in CDC, also secondaries
53
'UsePXDHits'
:
False
,
54
'UseSVDHits'
:
False
,
55
'UseCDCHits'
:
True
,
56
'UseOnlyAxialCDCHits'
:
False
,
57
"UseReassignedHits"
:
True
,
58
"UseNLoops"
: 1.0,
59
"UseOnlyBeforeTOP"
:
True
,
60
'MinCDCAxialHits'
: 8,
61
'MinCDCStereoHits'
: 6,
62
"AllowFirstCDCSuperLayerOnly"
:
True
,
63
'EnergyCut'
: 0,
64
}
65
66
pulls =
True
67
68
contact = CONTACT
69
70
output_file_name = VALIDATION_OUTPUT_FILE
71
72
73
def
main
():
74
validation_run =
CDCAutomaton
()
75
validation_run.configure_and_execute_from_commandline()
76
77
78
if
__name__ ==
'__main__'
:
79
logging.basicConfig(level=logging.INFO)
80
if
ACTIVE:
81
main
()
cdcAutomatonTrackingValidation.CDCAutomaton
Definition:
cdcAutomatonTrackingValidation.py:35
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
cdcAutomatonTrackingValidation.py
Generated on Thu Dec 28 2023 02:39:44 for Belle II Software by
1.9.1