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
cosmicsTrackingValidation.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>CosmicsSimNoBkgTrackingVolume.root</input>
16
<output>CosmicsTrackingValidation.root</output>
17
<description>Validation of the default cosmic track finding (VXD+CDC).</description>
18
</header>
19
"""
20
21
from
tracking.validation.run
import
TrackingValidationRun
22
from
tracking
import
add_cr_tracking_reconstruction
23
import
logging
24
import
basf2
25
VALIDATION_OUTPUT_FILE =
'CosmicsTrackingValidation.root'
26
CONTACT =
'software-tracking@belle2.org'
27
N_EVENTS = 10000
28
ACTIVE =
True
29
30
basf2.set_random_seed(1337)
31
32
33
class
Cosmics
(
TrackingValidationRun
):
34
"""
35
derived class that sets up the cosmics validation
36
"""
37
38
n_events = N_EVENTS
39
40
generator_module =
'Cosmics'
41
42
root_input_file =
'../CosmicsSimNoBkgTrackingVolume.root'
43
44
components =
None
45
46
finder_module = staticmethod(add_cr_tracking_reconstruction)
47
48
tracking_coverage = {
49
'WhichParticles'
: [
'CDC'
],
# Include all particles seen in CDC, also secondaries (dont put SVD, PXD here)
50
'UsePXDHits'
:
True
,
51
'UseSVDHits'
:
True
,
52
'UseCDCHits'
:
True
,
53
'UseOnlyAxialCDCHits'
:
False
,
54
"UseReassignedHits"
:
True
,
55
'UseNLoops'
: 1
56
}
57
58
pulls =
True
59
60
contact = CONTACT
61
62
output_file_name = VALIDATION_OUTPUT_FILE
63
64
65
def
main
():
66
validation_run =
Cosmics
()
67
validation_run.configure_and_execute_from_commandline()
68
69
70
if
__name__ ==
'__main__'
:
71
logging.basicConfig(level=logging.INFO)
72
if
ACTIVE:
73
main
()
cosmicsTrackingValidation.Cosmics
Definition:
cosmicsTrackingValidation.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
cosmicsTrackingValidation.py
Generated on Thu Dec 28 2023 02:39:46 for Belle II Software by
1.9.1