6ROOT.gROOT.ProcessLine(
'#include "Geant4/G4ParticleTable.hh"')
7ROOT.gROOT.ProcessLine(
'#include "Geant4/G4DecayTable.hh"')
8ROOT.gROOT.ProcessLine(
'#include "Geant4/G4PhaseSpaceDecayChannel.hh"')
13 pt = ROOT.G4ParticleTable.GetParticleTable()
14 for vreso
in [223, 333, 113]:
15 particleG4 = pt.FindParticle(vreso)
16 particleP8 = p8.particleData.particleDataEntryPtr(vreso)
17 decayTable = ROOT.G4DecayTable()
18 for i
in range(particleP8.sizeChannels()):
19 achannel = particleP8.channel(i)
20 bR = achannel.bRatio()
21 mul = achannel.multiplicity()
23 for daughter
in range(4):
25 pid = achannel.product(daughter)
26 dl.append(pt.FindParticle(pid).GetParticleName())
28 dl.append(ROOT.G4String(
""))
29 mode = ROOT.G4PhaseSpaceDecayChannel(particleG4.GetParticleName(), bR, mul, dl[0], dl[1], dl[2], dl[3])
30 decayTable.Insert(mode)
31 particleG4.SetDecayTable(decayTable)
32 particleG4.DumpTable()