18basf2.use_database_chain()
19basf2.use_central_database(
"data_reprocessing_preproc8b")
22ROOT.gROOT.SetBatch(
True)
28 input_files = [os.path.abspath(
29 '/mnt/data/BelleIICalibration/data/preprod8b/electron/bhabha/cdst/skinny_cdst.preprod8b.*18*.root')]
30elif var ==
'radbhabha':
31 input_files = [os.path.abspath(
32 '/mnt/data/BelleIICalibration/data/preprod8b/electron/radbhabha/cdst/skinny_cdst.preprod8b.*18*.root')]
34 input_files = [os.path.abspath(
'/mnt/data/BelleIICalibration/data/preprod8b/hadron/cdst/skinny_cdst.preprod8b.*18*.root')]
36 print(
"Only (rad)bhabha or hadron input files are compatible")
42moduleA = basf2.register_module(
"RootInput")
43moduleA.param(
"inputFileNames", input_files)
44mypath.add_module(moduleA)
47moduleB = basf2.register_module(
"CDCDedxValidation")
48moduleB.param(
"fnRuns", 50)
50 moduleB.param(
"SampleType",
"bhabha")
51 moduleB.param(
"outputFileName",
"bhabha_outfile.root")
52elif var ==
'radbhabha':
53 moduleB.param(
"SampleType",
"radbhabha")
54 moduleB.param(
"outputFileName",
"radbhabha_outfile.root")
56 moduleB.param(
"SampleType",
"hadron")
57 moduleB.param(
"outputFileName",
"hadron_outfile.root")
59 print(
"Only (rad)bhabha or hadron input files are compatible")
62mypath.add_module(moduleB)
66print(basf2.statistics)