17from basf2
import Module, Path, process, B2INFO
19from ROOT
import Belle2
24 Example module to drop into ipython and create some objects to look at.
25 If you just want to start IPython
and create PyStoreArray etc.
26 interactively
in your own steering file, the
'Interactive' module
32 reimplement Module::event()
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.")
48main.add_module(
'EventInfoSetter', evtNumList=[2])
49main.add_module(
'ParticleGun')
A (simplified) python wrapper for StoreArray.
a (simplified) python wrapper for StoreObjPtr.