12 from ROOT
import Belle2
13 from modularAnalysis
import *
17 """Select all things related to a Particle"""
20 """reimplementation of Module::initialize()."""
25 """reimplementation of Module::event()."""
32 if abs(p.getPDGCode()) == 413:
33 B2WARNING(
"highlighting D*+ candidate")
35 daughters = p.getFinalStateDaughters()
38 mcp = d.getRelated(
'MCParticles')
39 displayData.obj().select(mcp)
45 main.add_module(
'RootInput')
46 main.add_module(
'Gearbox')
47 geometry = main.add_module(
'Geometry')
48 geometry.param(
'excludedComponents', [
'ECL'])
51 fillParticleList(
'K-',
'kaonID > 0.1', path=main)
52 fillParticleList(
'pi+',
'pionID > 0.1', path=main)
53 fillParticleList(
'gamma',
'', path=main)
55 reconstructDecay(
'pi0 -> gamma gamma',
'0.110 < M < 0.150', path=main)
57 reconstructDecay(
'D0 -> K- pi+',
'1.7 < M < 2.0', path=main)
58 reconstructDecay(
'D*+ -> D0 pi+',
'1.9 < M < 2.1', path=main)
63 main.add_module(
'Display')