Belle II Software  release-05-02-19
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 15 of file interactive_python.py.

Member Function Documentation

◆ event()

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

Definition at line 23 of file interactive_python.py.

23  def event(self):
24  """
25  reimplement Module::event()
26  """
27  evtmetadata = Belle2.PyStoreObj("EventMetaData")
28  particles = Belle2.PyStoreArray("MCParticles")
29  B2INFO(80 * '=')
30  B2INFO("Dropping into interactive python shell. Try:"
31  "\n print evtmetadata.obj().getEvent()"
32  "\n particles[0].Dump()"
33  "\n help(particles[0])"
34  "\nTo continue non-interactively (until next event), press Ctrl+D."
35  "\nPress Ctrl+C followed by Ctrl+D to exit basf2.")
36  B2INFO(80 * '=')
37  interactive.embed()
38 
39 

The documentation for this class was generated from the following file:
Belle2::PyStoreObj
a (simplified) python wrapper for StoreObjPtr.
Definition: PyStoreObj.h:69
ClusterEfficiency.ClusterEfficiency.event
def event(self)
Definition: ClusterEfficiency.py:146
Belle2::PyStoreArray
a (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:58