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
muonTrackingValidation.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>MuonGenSimNoBkg.root</input>
16
<output>MuonTrackingValidation.root</output>
17
<description>This script validates the full track finding chain in easy 1 muon events.</description>
18
</header>
19
"""
20
21
from
tracking.validation.run
import
TrackingValidationRun
22
import
tracking
23
import
logging
24
import
basf2
25
VALIDATION_OUTPUT_FILE =
'MuonTrackingValidation.root'
26
N_EVENTS = 10000
27
ACTIVE =
True
28
29
basf2.set_random_seed(1337)
30
31
32
class
Muon
(
TrackingValidationRun
):
33
"""Validate the full track-finding chain with single-muon events"""
34
35
n_events = N_EVENTS
36
37
generator_module =
'gun'
38
39
root_input_file =
'../MuonGenSimNoBkg.root'
40
41
finder_module = staticmethod(tracking.add_tracking_reconstruction)
42
43
tracking_coverage = {
44
'WhichParticles'
: [],
# Include all particles, also secondaries
45
'UsePXDHits'
:
True
,
46
'UseSVDHits'
:
True
,
47
'UseCDCHits'
:
True
,
48
"UseReassignedHits"
:
True
,
49
'UseOnlyBeforeTOP'
:
True
,
50
'UseNLoops'
: 1,
51
}
52
54
fit_tracks =
False
55
56
use_fit_information =
True
57
58
use_expert_folder =
False
59
60
pulls =
True
61
62
resolution =
True
63
64
output_file_name = VALIDATION_OUTPUT_FILE
65
66
67
def
main
():
68
validation_run =
Muon
()
69
validation_run.configure_and_execute_from_commandline()
70
71
72
if
__name__ ==
'__main__'
:
73
logging.basicConfig(level=logging.INFO)
74
if
ACTIVE:
75
main
()
muonTrackingValidation.Muon
Definition:
muonTrackingValidation.py:32
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
muonTrackingValidation.py
Generated on Fri Dec 8 2023 04:33:21 for Belle II Software by
1.9.1