The Gaudi Framework  master (37c0b60a)
DumpParticleProperties.py
Go to the documentation of this file.
1 #!/usr/bin/env python3
2 
19 """Trivial script to dump the table of Particle Properties"""
20 
21 # =============================================================================
22 __author__ = "Vanya BELYAEV Ivan.Belyaev@nikhef.nl"
23 # =============================================================================
24 
25 
26 def dump():
27  from Configurables import MessageSvc
28 
30 
31  # The following is misunderstood by flake8 - the import is needed as it
32  # has necessary side effects
33  import GaudiPartProp.Service # noqa: F401
34 
35  MessageSvc(OutputLevel=6)
36 
37  from GaudiPython.Bindings import AppMgr
38 
39  gaudi = AppMgr()
40 
41  gaudi.initialize()
42 
43  pps = gaudi.gaudiPartProp()
44 
45  print(pps.all())
46 
47 
48 # =============================================================================
49 if "__main__" == __name__:
50  dump()
GaudiPartProp.Service.AppMgr
AppMgr
Definition: Service.py:41
GaudiPartProp.Service
Definition: Service.py:1
GaudiPartProp.DumpParticleProperties.dump
def dump()
Definition: DumpParticleProperties.py:26
GaudiPartProp.PartPropAlg
Definition: PartPropAlg.py:1
GaudiPython.Bindings
Definition: Bindings.py:1
MessageSvc
Definition: MessageSvc.h:40