BASF - BELLE AnalysiS Framework

Paper: 244
Session: A (talk)
Speaker: Itoh, Ryosuke, KEK, Tsukuba
Keywords: analysis, application programming, data management, mixed language programming, software tools


BASF - BELLE AnalysiS Framework
Ryosuke Itoh

Physics Division, National Laboratory for High Energy Physics (KEK),
1-1 Oho, Tsukuba, Ibaraki 305, Japan

The software framework for the data analysis at BELLE experiment
(called BASF) has been developed. The framework accepts a set of
user-written ``modules'' as building blocks of the analysis
software. An analysis program is made by a chain of modules
linked with the framework.
A module is built as a shared object and linked with the framework
by the dynamic link at runtime.

BASF is coded in C++ and a module for BASF is written as a class
object derived from the ``module'' class. The module class consists of several
virtual member functions for the event and other record processing with some
utility functions. A module written in Fortran and C is also used
with BASF by the wrapper functions. Modules written in any of Fortran,
C and C++ can be mixed together on BASF.

The data transfer between modules is managed by BELLE's home-made
memory management system called Panther. Panther is based on the
entity relationship model and has the interface for Fortran, C and
C++. The management of data file I/O's is also done by the Panther
package.

BASF has the parallel event processing capability when it runs on a SMP
server. The FPDA package reported at the last conference is utilized
and multiple CPU's on a SMP server can be used for the simultaneous
processing of multiple event data.

The user interface for BASF is completely separated from the BASF
kernel. The user inteface subsystem is linked with BASF at runtime using
dynamic link so that users can choose their favorite user interface
subsystem for BASF. The BASF kernel works as the server for the user
interface and is controlled by receiving messages consisted of a
ASCII string from the user interface.

The BASF system was already developed and has been released for the
group-wide use in the BELLE collaboration as the official framework
for data analysis. The detail of the architecture of the BASF is
reprted at the conference.