11 from ROOT
import Belle2
12 from ROOT
import gSystem
13 gSystem.Load(
'libcdc')
16 b2.use_database_chain()
17 b2.use_central_database(
"Calibration_Offline_Development", b2.LogLevel.INFO)
19 d = datetime.datetime.today()
20 print(d.strftime(
'This Calculution is done at : %d-%m-%y %H:%M:%S\n'))
26 with 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
37 inputfiles = rootdir +
"/output_*"
42 main = b2.create_path()
43 main.add_module(
'EventInfoSetter',
46 main.add_module(
'Gearbox')
47 main.add_module(
'CDCJobCntlParModifier',
50 main.add_module(
'Geometry',
54 Corr.inputFileNames(inputfiles)
55 Corr.outputFileName(
"t0.dat")
60 Corr.setMinimumNDF(10)
61 Corr.setMinimumPval(0.)
Class for T0 Correction .