Simple module to collect some information about MCParticles
Definition at line 48 of file KoralWPlots.py.
◆ event()
Fill the histograms with the values of the MCParticle collection
Definition at line 52 of file KoralWPlots.py.
53 """Fill the histograms with the values of the MCParticle collection"""
56 nTracks = mcParticles.getEntries()
57 h_nTracks.Fill(nTracks)
58 for i
in range(nTracks):
60 if mc.hasStatus(Belle2.MCParticle.c_PrimaryParticle):
62 h_momentum.Fill(p.Mag())
64 h_phi.Fill(p.Phi() / math.pi * 180)
65 h_theta.Fill(p.Theta() / math.pi * 180)
66 h_costheta.Fill(math.cos(p.Theta()))
67 h_pdg.Fill(mc.getPDG())
68 h_vertex.Fill(mc.getProductionVertex().X(),
69 mc.getProductionVertex().Y())
A (simplified) python wrapper for StoreArray.
The documentation for this class was generated from the following file: