18 from ROOT
import Belle2
19 import modularAnalysis
as ma
23 """Select all things related to a Particle"""
26 """reimplementation of Module::initialize()."""
31 """reimplementation of Module::event()."""
38 if abs(p.getPDGCode()) == 413:
39 b2.B2WARNING(
"highlighting D*+ candidate")
41 daughters = p.getFinalStateDaughters()
44 mcp = d.getRelated(
'MCParticles')
45 displayData.obj().select(mcp)
49 main = b2.create_path()
51 main.add_module(
'RootInput')
52 main.add_module(
'Gearbox')
53 geometry = main.add_module(
'Geometry')
54 geometry.param(
'excludedComponents', [
'ECL'])
57 ma.fillParticleList(
'K-',
'kaonID > 0.1', path=main)
58 ma.fillParticleList(
'pi+',
'pionID > 0.1', path=main)
59 ma.fillParticleList(
'gamma',
'', path=main)
61 ma.reconstructDecay(
'pi0 -> gamma gamma',
'0.110 < M < 0.150', path=main)
63 ma.reconstructDecay(
'D0 -> K- pi+',
'1.7 < M < 2.0', path=main)
64 ma.reconstructDecay(
'D*+ -> D0 pi+',
'1.9 < M < 2.1', path=main)
69 main.add_module(
'Display')
A (simplified) python wrapper for StoreArray.
a (simplified) python wrapper for StoreObjPtr.