Belle II Python Interface
5. Belle II Python Interface#
The Belle II Software has an extensive interface to the Python 3 scripting
language: All configuration and steering is done via python and in principle
also simple algorithms can be implemented directly in python. All main
functions are implemented in a module called basf2
and most people will just
start their steering file or script with
import basf2
main = basf2.Path()
- 5.1. Modules and Paths
- 5.2. Logging
- 5.3. Module Statistics
- 5.4. Conditions Database
- 5.5. Additional Functions
- 5.6. Other Modules
- 5.6.1. basf2.utils - Helper functions for printing basf2 objects
- 5.6.2. basf2.pickle_path - Functions necessary to pickle and unpickle a Path
- 5.6.3. B2Tools
- 5.6.4. b2test_utils - Helper functions useful for test scripts
- 5.6.5. conditions_db
- 5.6.6. conditions_db.iov
- 5.6.7. hep_ipython_tools
- 5.6.8. iov_conditional - Functions to Execute Paths Depending on Experiment Phases
- 5.6.9. pdg - access particle definitions
- 5.6.10. rundb - Helper classes for retrieving information from the RunDB
- 5.6.11. terminal_utils - Helper functions for input from/output to a terminal