8. B2BII¶
The b2bii package in basf2 converts Belle MDST files (BASF data format) to Belle II MDST (basf2 data format). This enables performing physics analysis using data collected with Belle detector with the analysis software and algorithms developed for the analysis of data collected with the Belle II detector. The B2BII converter allows for estimation and validation of performances of various advanced algorithms being developed for Belle II.
8.1. Overview¶
The B2BII converter reads and converts Belle MDST within basf2. The converted data is to be analysed within the same job, without any intermediate conversion to output ROOT file (Belle II MDST format). The B2BII conversion plus analysis workflow is illustrated in this figure:

and is divided between
Conversion modules:
B2BIIMdstInput: opens and reads Belle MDST file,
B2BIIFixMdst: performs correction to Belle MDST data before the conversion is performed,
B2BIIConvertMdst: performs Belle mdst to Belle II mdst conversion. After this final step the DataStore is filled with Belle II-type MDST dataobjects (Tracks, ECLClusters, PIDLikelihhoods,…).
basf2 analysis:
This part contains the usual sequence of basf2 physics analysis modules.
8.2. B2BII Analysis¶
8.2.1. Prerequisites¶
The recommended versions to be used are release-06-00-08
or the latest light release.
8.2.2. B2BII Converter¶
The most straightforward way to perform the analysis is to execute the B2BII Converter on-the-fly, meaning in the same job as the physics analysis is performed (reconstruction of specific decay, …, producing flat ntuples for offline analysis). Note that it’s also possible (and is as well more convenient) first to produce the converted ROOT files in the Belle II MDST format and then run the analysis script over converted ROOT files.
8.3. Converted data objects and other information¶
This section briefly describes what is converted, in what way, and how the converted objects should be used in the analysis.
8.4. Belle MDST samples¶
The most important argument in convertBelleMdstToBelleIIMdst
function is the first
one, specifying the input Belle MDST sample to be converted and analysed. You can
either specify the location of the input Belle MDST file (e.g. when running over
your privately produced signal MC):
convertBelleMdstToBelleIIMdst('/location_to_my_mdst_files/myMDSTFile.mdst', path=mypath)
or specify the url of real data or generic MC samples. For example:
convertBelleMdstToBelleIIMdst('http://bweb3/montecarlo.php?ex=37&rs=100&re=200&ty=evtgen-mixed&dt=on_resonance&bl=caseB&st=0', path=mypath)
The form of the url is the same as used in BASF. More information is available at the Belle analysis software page.
Note
Belle index files cannot be used in the conversion, please use HadronB(J) skim files, or convert your index files to mdst files first and then perform b2bii conversion.
There are different kind of MC/data samples available at Belle.