Belle II Software
release-06-02-00
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 Thu Dec 28 2023 02:20:44 for Belle II Software by
1.9.1