16 from reconstruction
import add_cosmics_reconstruction
20 use_central_database(
"cdc_cr_test1", LogLevel.WARNING)
26 rootinput = register_module(
'RootInput')
27 input =
'/ghi/fs01/belle2/bdata/group/detector/CDC/unpacked/exp00/cr.cdc.0000.001733.root'
28 rootinput.param(
'inputFileName', input)
29 main.add_module(rootinput)
35 run_number = getRunNumber(input)
38 data_period = getDataPeriod(run_number)
41 if os.path.exists(data_period)
is False:
45 globalPhiRotation = getPhiRotation()
46 main.add_module(
'Gearbox',
47 override=[(
"/DetectorComponent[@name='CDC']//GlobalPhiRotation", str(globalPhiRotation),
"deg")
49 fileName=
'/geometry/Beast2_phase2.xml')
50 main.add_module(
'Geometry', components=components)
53 set_cdc_cr_parameters(data_period)
56 add_cosmics_reconstruction(main, components=components)
59 main.add_module(
'RootOutput', outputFileName=
'cr_output.root')
62 main.add_module(
'ProgressBar')