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)
19 b2.logging.log_level = b2.LogLevel.INFO
20 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'))
29 with open(
'location')
as file:
30 lines = file.readlines()
32 if re.match(
r'dir_root', line):
33 rootdir = line.split(
'"')[1]
34 if re.match(
r'dir_params', line):
35 param_dir = line.split(
'"')[1]
36 if re.match(
r'xt_file', line):
37 xt_file = line.split(
'"')[1]
39 xtfile = param_dir + xt_file
40 rootfile = rootdir +
"/output_*"
42 main = b2.create_path()
43 main.add_module(
'EventInfoSetter',
49 fit.inputFileNames(rootfile)
50 fit.profileFileNames(
"xt_profile.dat")
51 fit.useProfileFromInputXT(
False)
52 fit.setXTFileName(xtfile)
54 fit.setStoreHisto(
True)
58 fit.setMinimumPval(0.0001)
Class to perform xt calibration for drift chamber.