17from ROOT
import Belle2
18import modularAnalysis
as ma
22 """Select all things related to a Particle"""
25 """reimplementation of Module::initialize()."""
30 """reimplementation of Module::event()."""
37 if abs(p.getPDGCode()) == 413:
38 b2.B2WARNING(
"highlighting D*+ candidate")
40 daughters = p.getFinalStateDaughters()
43 mcp = d.getRelated(
'MCParticles')
44 displayData.obj().select(mcp)
48main = b2.create_path()
50main.add_module(
'RootInput')
51main.add_module(
'Gearbox')
52geometry = main.add_module(
'Geometry')
53geometry.param(
'excludedComponents', [
'ECL'])
56ma.fillParticleList(
'K-',
'kaonID > 0.1', path=main)
57ma.fillParticleList(
'pi+',
'pionID > 0.1', path=main)
58ma.fillParticleList(
'gamma',
'', path=main)
60ma.reconstructDecay(
'pi0 -> gamma gamma',
'0.110 < M < 0.150', path=main)
62ma.reconstructDecay(
'D0 -> K- pi+',
'1.7 < M < 2.0', path=main)
63ma.reconstructDecay(
'D*+ -> D0 pi+',
'1.9 < M < 2.1', path=main)
68main.add_module(
'Display')
A (simplified) python wrapper for StoreArray.
a (simplified) python wrapper for StoreObjPtr.