5 from ROOT
import Belle2
6 from reconstruction
import add_top_modules, add_cdst_output
17 ''' replacing TOP likelihoods in PIDLikelihoods with new values '''
20 ''' event function '''
22 chargedStableSet = [Belle2.Const.electron,
27 Belle2.Const.deuteron]
30 pid = track.getRelated(
'PIDLikelihoods')
32 top = track.getRelated(
'TOPLikelihoods')
34 if top.getFlag() == 1:
35 for chargedStable
in chargedStableSet:
36 logL = top.getLogL(chargedStable)
37 pid.setLogLikelihood(Belle2.Const.TOP, chargedStable, logL)
44 use_central_database(
'data_reprocessing_proc7')
45 use_local_database(
'localDB/localDB.txt',
'localDB/')
51 roinput = register_module(
'RootInput')
52 main.add_module(roinput)
55 main.add_module(
'TOPGeometryParInitializer')
58 recalibrator = register_module(
'TOPTimeRecalibrator')
59 recalibrator.param(
'subtractBunchTime',
False)
60 main.add_module(recalibrator)
64 for m
in main.modules():
65 if m.type() ==
"TOPBunchFinder":
66 m.param(
'usePIDLikelihoods',
True)
75 progress = register_module(
'Progress')
76 main.add_module(progress)