iLCSoft / LCIO

Linear Collider I/O
BSD 3-Clause "New" or "Revised" License
17 stars 34 forks source link

MT::LCWriter writes old format files #145

Open fdplacido opened 2 years ago

fdplacido commented 2 years ago

When writing files using the MT::LCWriter, the format seems to be old. When checking the number of events with lcio_event_counter one gets the following:

$ lcio_event_counter examples/cpp/rootDict/DST01-06_ppr004_bbcsdu.slcio
 LCIORandomAccessMgr::getEventMap() recreating event map for direct access (old file)
49

which is one event less than it should (off by 1).

This happens with the *.slcio files found in this repo, within the examples folder, and files written using MT::LCWriter. When using the regular writer lcio_event_counter reports correctly.