11 from ROOT
import Belle2
12 from ROOT
import gSystem
13 gSystem.Load(
'libcdc')
17 b2.use_database_chain()
18 b2.use_central_database(
"Calibration_Offline_Development", b2.LogLevel.INFO)
20 b2.logging.log_level = b2.LogLevel.ERROR
21 b2.set_debug_level(200)
22 d = datetime.datetime.today()
23 print(d.strftime(
'This Calculution is done at : %d-%m-%y %H:%M:%S\n'))
30 with open(
'location')
as file:
31 lines = file.readlines()
33 if re.match(
r'dir_root', line):
34 rootdir = line.split(
'"')[1]
35 if re.match(
r'dir_params', line):
36 param_dir = line.split(
'"')[1]
37 if re.match(
r'tw_file', line):
38 tw_file = line.split(
'"')[1]
39 twfile = param_dir + tw_file
41 main = b2.create_path()
42 main.add_module(
'EventInfoSetter',
45 main.add_module(
'Gearbox')
46 main.add_module(
'Geometry',
52 tw.InputFileNames(rootdir +
"/output_*")
53 tw.InputTWFileName(twfile)
54 tw.OutputTWFileName(
"tw.dat")
55 tw.setStoreHisto(
True)
59 tw.setMinimumPval(0.001)
Class for Time walk calibration.