25 from ROOT.Belle2
import eclMuMuEAlgorithm
26 from caf.framework
import Calibration, CAF
30 inputFileNames = glob.glob(
'/nfs/dust/belle2/user/ferber/data/kkmc_mumu/kkmc-mumu-1485213008/*.root')
32 b2.set_log_level(b2.LogLevel.INFO)
35 eclMuMuE = b2.register_module(
'eclMuMuECollector')
36 eclMuMuE.param(
'minPairMass', 9.0)
37 eclMuMuE.param(
'minTrackLength', 30.)
38 eclMuMuE.param(
'MaxNeighborAmp', 200.)
40 eclMuMuE.param(
'thetaLabMinDeg', 24.)
41 eclMuMuE.param(
'thetaLabMaxDeg', 134.)
43 eclMuMuE.param(
'useTrueEnergy',
False)
46 pre_path = b2.create_path()
47 gearbox = b2.register_module(
'Gearbox')
48 pre_path.add_module(gearbox)
49 geometry = b2.register_module(
'Geometry')
50 pre_path.add_module(geometry)
51 pre_path.add_module(
'SetupGenfitExtrapolation')
52 ext = b2.register_module(
'Ext')
54 ext.param(
'pdgCodes', pdgcodes)
55 pre_path.add_module(ext)
58 algorithm = eclMuMuEAlgorithm()
59 algorithm.cellIDLo = 1008
60 algorithm.cellIDHi = 7919
61 algorithm.minEntries = 150
62 algorithm.maxIterations = 10
63 algorithm.tRatioMin = 0.2
64 algorithm.tRatioMax = 0.25
65 algorithm.performFits =
True
68 cal =
Calibration(name=
'eclMuMuECalibration', collector=eclMuMuE, algorithms=algorithm, input_files=inputFileNames)
69 cal.pre_collector_path = pre_path
73 cal_fw.add_calibration(cal)
74 cal_fw.output_dir =
'fullBG'