iLCSoft / LCIO

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

Improve handling of vectors in streaming handlers #144

Open tmadlener opened 2 years ago

tmadlener commented 2 years ago

In some places vector elements are copied element by element into the sio stream, e.g.

https://github.com/iLCSoft/LCIO/blob/1287e9475357c8ce641483233f29c5e98f4fc6bf/src/cpp/src/SIO/SIOLCParameters.cc#L62-L65

sio should be able to handle vectors as a whole, without having to read each element separately. We do this in podio: https://github.com/AIDASoft/podio/blob/master/src/SIOBlock.cc#L47-L67

    SIO_SDATA(device, intVec);

_Originally posted by @tmadlener in https://github.com/iLCSoft/LCIO/pull/143#discussion_r739039871_