11 from ROOT
import Belle2
12 from modularAnalysis
import *
16 use_central_database(
"data_reprocessing_preproc8b")
19 ROOT.gROOT.SetBatch(
True)
25 input_files = [os.path.abspath(
26 '/mnt/data/BelleIICalibration/data/preprod8b/electron/bhabha/cdst/skinny_cdst.preprod8b.*18*.root')]
27 elif var ==
'radbhabha':
28 input_files = [os.path.abspath(
29 '/mnt/data/BelleIICalibration/data/preprod8b/electron/radbhabha/cdst/skinny_cdst.preprod8b.*18*.root')]
31 input_files = [os.path.abspath(
'/mnt/data/BelleIICalibration/data/preprod8b/hadron/cdst/skinny_cdst.preprod8b.*18*.root')]
33 print(
"Only (rad)bhabha or hadron input files are compatible")
39 moduleA = register_module(
"RootInput")
40 moduleA.param(
"inputFileNames", input_files)
41 mypath.add_module(moduleA)
44 moduleB = register_module(
"CDCDedxValidation")
45 moduleB.param(
"fnRuns", 50)
47 moduleB.param(
"SampleType",
"bhabha")
48 moduleB.param(
"outputFileName",
"bhabha_outfile.root")
49 elif var ==
'radbhabha':
50 moduleB.param(
"SampleType",
"radbhabha")
51 moduleB.param(
"outputFileName",
"radbhabha_outfile.root")
53 moduleB.param(
"SampleType",
"hadron")
54 moduleB.param(
"outputFileName",
"hadron_outfile.root")
56 print(
"Only (rad)bhabha or hadron input files are compatible")
59 mypath.add_module(moduleB)
63 print(basf2.statistics)