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