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
caf_vxd.py
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3
4
11
12
import
os
13
import
sys
14
15
16
from
caf.framework
import
CAF
17
18
19
def
main
(argv):
20
inputFiles = []
21
for
file
in
argv[0:]:
22
inputFiles.append(os.path.abspath(file))
23
if
not
len(inputFiles):
24
print(
' Usage: basf2 SCRIPT_NAME DST_FILE.root [DST_FILE2.root ... ]'
)
25
sys.exit(1)
26
27
# The Calibration and Alignment Framework
28
caf = CAF()
29
30
# predefined scenarios
31
from
alignment
import
setups
32
# run std reco and select alignment particles/decays
33
setups.do_reconstruction =
True
34
setups.do_analysis =
True
35
36
millepede = setups.setup_VXDHalfShells()
37
38
# Align primary beamspot simultaneously with VXD half shells in addition
39
millepede.set_components([
'VXDAlignment'
,
'BeamSpot'
])
40
41
caf.add_calibration(millepede.create(
'vxd_shells_beamspot'
, inputFiles))
42
43
caf.output_dir =
'caf_output'
44
caf.run()
45
46
print(
"Finished CAF Processing"
)
47
48
49
if
__name__ ==
"__main__"
:
50
# Pass arguments after script name as input files
51
main
(sys.argv[1:])
main
int main(int argc, char **argv)
Run all tests.
Definition:
test_main.cc:75
calibration
examples
caf_vxd.py
Generated on Fri Dec 8 2023 04:14:47 for Belle II Software by
1.9.1