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
cdcFullTrackingValidation.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>CDCFullTrackingValidation.root</output>
17
<description>This script validates the full CDC tracking chain with a legendre step first
18
and a cellular automaton step second in Y(4S) runs.</description>
19
</header>
20
"""
21
22
from
tracking.validation.run
import
TrackingValidationRun
23
import
tracking
24
import
logging
25
import
basf2
26
VALIDATION_OUTPUT_FILE =
'CDCFullTrackingValidation.root'
27
N_EVENTS = 1000
28
ACTIVE =
True
29
30
basf2.set_random_seed(1337)
31
32
33
class
CDCFull
(
TrackingValidationRun
):
34
"""Validate the full CDC track-finding chain include Legendre step"""
35
36
n_events = N_EVENTS
37
38
generator_module =
'generic'
39
40
root_input_file =
'../EvtGenSimNoBkg.root'
41
42
def
finder_module
(self, path):
43
"""Add the CDC track-finding module to the basf2 path"""
44
tracking.add_cdc_track_finding(path)
45
# adjust_module(path, "TFCDC_WireHitPreparer",
46
# UseNLoops=1)
47
48
49
tracking_coverage = {
50
'WhichParticles'
: [
'CDC'
],
# Include all particles seen in CDC, also secondaries
51
'UsePXDHits'
:
False
,
52
'UseSVDHits'
:
False
,
53
'UseCDCHits'
:
True
,
54
'UseOnlyAxialCDCHits'
:
False
,
55
"UseReassignedHits"
:
True
,
56
"UseNLoops"
: 1,
57
"UseOnlyBeforeTOP"
:
True
,
58
'MinCDCAxialHits'
: 8,
59
'MinCDCStereoHits'
: 6,
60
"AllowFirstCDCSuperLayerOnly"
:
True
,
61
'EnergyCut'
: 0,
62
}
63
64
pulls =
True
65
66
output_file_name = VALIDATION_OUTPUT_FILE
67
68
69
def
main
():
70
validation_run =
CDCFull
()
71
validation_run.configure_and_execute_from_commandline()
72
73
74
if
__name__ ==
'__main__'
:
75
logging.basicConfig(level=logging.INFO)
76
if
ACTIVE:
77
main
()
cdcFullTrackingValidation.CDCFull
Definition:
cdcFullTrackingValidation.py:33
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
cdcFullTrackingValidation.py
Generated on Fri Dec 8 2023 04:33:19 for Belle II Software by
1.9.1