7 from ROOT
import Belle2
8 from ROOT.Belle2
import FileSystem
9 from ROOT
import gSystem
10 gSystem.Load(
'libcdc')
15 use_central_database(
"Calibration_Offline_Development", LogLevel.INFO)
17 logging.log_level = LogLevel.ERROR
19 d = datetime.datetime.today()
20 print(d.strftime(
'This Calculution is done at : %d-%m-%y %H:%M:%S\n'))
27 with open(
'location')
as file:
28 lines = file.readlines()
30 if re.match(
r'dir_root', line):
31 rootdir = line.split(
'"')[1]
32 if re.match(
r'dir_params', line):
33 param_dir = line.split(
'"')[1]
34 if re.match(
r'tw_file', line):
35 tw_file = line.split(
'"')[1]
36 twfile = param_dir + tw_file
39 main.add_module(
'EventInfoSetter',
42 main.add_module(
'Gearbox')
43 main.add_module(
'Geometry',
49 tw.InputFileNames(rootdir +
"/output_*")
50 tw.InputTWFileName(twfile)
51 tw.OutputTWFileName(
"tw.dat")
52 tw.setStoreHisto(
True)
56 tw.setMinimumPval(0.001)