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.INFO
21 b2.set_debug_level(200)
23 d = datetime.datetime.today()
24 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'sigma_file', line):
38 sigma_file = line.split(
'"')[1]
39 sigmafile = param_dir + sigma_file
41 rootfile = rootdir +
"/output_*"
44 main = b2.create_path()
45 main.add_module(
'EventInfoSetter',
48 main.add_module(
'Gearbox')
49 main.add_module(
'Geometry',
55 fit.inputFileNames(rootfile)
56 fit.ProfileFileNames(
"sigma_profile.dat")
57 fit.useProfileFromInputSigma(
False)
58 fit.setSigmaFileName(sigmafile)
59 fit.setStoreHisto(
True)
64 fit.setMinimumPval(0.001)
Class for Space resolution calibration.