Belle II Software light-2406-ragdoll
MinModule Class Reference
Inheritance diagram for MinModule:
Collaboration diagram for MinModule:

Public Member Functions

def event (self)
 

Detailed Description

Example module to drop into ipython and create some objects to look at.
If you just want to start IPython and create PyStoreArray etc.
interactively in your own steering file, the 'Interactive' module
might be of interest.

Definition at line 22 of file interactive_python.py.

Member Function Documentation

◆ event()

def event (   self)
reimplement Module::event()

Definition at line 30 of file interactive_python.py.

30 def event(self):
31 """
32 reimplement Module::event()
33 """
34 evtmetadata = Belle2.PyStoreObj("EventMetaData") # noqa
35 particles = Belle2.PyStoreArray("MCParticles") # noqa
36 B2INFO(80 * '=')
37 B2INFO("Dropping into interactive python shell. Try:"
38 "\n print evtmetadata.obj().getEvent()"
39 "\n particles[0].Dump()"
40 "\n help(particles[0])"
41 "\nTo continue non-interactively (until next event), press Ctrl+D."
42 "\nPress Ctrl+C followed by Ctrl+D to exit basf2.")
43 B2INFO(80 * '=')
44 interactive.embed()
45
46
A (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:72
a (simplified) python wrapper for StoreObjPtr.
Definition: PyStoreObj.h:67

The documentation for this class was generated from the following file: