11from ROOT
import Belle2
12from ROOT
import gSystem
16b2.use_database_chain()
17b2.use_central_database(
"Calibration_Offline_Development", b2.LogLevel.INFO)
19d = datetime.datetime.today()
20print(d.strftime(
'This Calculution is done at : %d-%m-%y %H:%M:%S\n'))
26with open(
'location')
as file:
27 lines = file.readlines()
29 if re.match(
r'dir_root', line):
30 rootdir = line.split(
'"')[1]
31 if re.match(
r'dir_params', line):
32 param_dir = line.split(
'"')[1]
33 if re.match(
r't0_file', line):
34 t0_file = line.split(
'"')[1]
35 t0file = param_dir + t0_file
37inputfiles = rootdir +
"/output_*"
42main = b2.create_path()
43main.add_module(
'EventInfoSetter',
46main.add_module(
'Gearbox')
47main.add_module(
'CDCJobCntlParModifier',
50main.add_module(
'Geometry',
54Corr.inputFileNames(inputfiles)
55Corr.outputFileName(
"t0.dat")
61Corr.setMinimumPval(0.)
Class for T0 Correction .