20 The trivial example to inspect the particle data table from the data base
24 __author__ =
"Vanya BELYAEV vanya@nikhef.nl"
28 from Configurables
import ApplicationMgr, Gaudi__ParticlePropertySvc
31 ApplicationMgr().ExtSvc += [Gaudi__ParticlePropertySvc()]
51 ppsvc = gaudi.gaudiPartProp()
56 print(
" Self-charge conjugated particles ")
57 selfcc = ppsvc.get(
lambda x: x.selfcc())
61 print(
" CC-neutral mesons")
62 mesonscc = ppsvc.get(
lambda x: (x.selfcc()
and x.isMeson()))
66 print(
" CC-neutral beauty mesons")
67 mesonscc = ppsvc.get(
lambda x: (x.isMeson()
and x.hasBottom()))
71 print(
" STABLE particles (c*tau> 1 um)")
72 stable = ppsvc.get(
lambda x: (x.ctau() > micrometer))