LCIO
02.17
|
#include <LCIORecords.h>
Static Public Member Functions | |
static void | setupBlocks (EVENT::LCEvent *event, const SIOHandlerMgr &handlerMgr, sio::block_list &blocks, const std::set< std::string > &colsOnly={}) |
Setup the record blocks for the given event. More... | |
static void | readBlocks (const sio::buffer_span &buffer, EVENT::LCEvent *event, const SIOHandlerMgr &handlerMgr) |
Read the blocks (collections) from the sio buffer. More... | |
static void | writeRecord (sio::buffer &outbuf, EVENT::LCEvent *event, const SIOHandlerMgr &handlerMgr, sio::record_info &rec_info, sio::options_type opts=0) |
Write an event record. More... | |
static void | writeRecord (sio::buffer &outbuf, EVENT::LCEvent *event, const SIOHandlerMgr &handlerMgr, sio::record_info &rec_info, const std::set< std::string > &colsOnly, sio::options_type opts=0) |
Write an event record. More... | |
Private Member Functions | |
SIOEventRecord ()=delete | |
Definition at line 69 of file LCIORecords.h.
|
privatedelete |
|
static |
Read the blocks (collections) from the sio buffer.
buffer | the input raw buffer |
event | the event containing the collections to populate |
handlerMgr | the collection handler manager to setup the blocks |
Definition at line 70 of file LCIORecords.cc.
References setupBlocks().
Referenced by MT::LCReader::readEvent(), MT::LCReader::readNextEvent(), and MT::LCReader::readStream().
|
static |
Setup the record blocks for the given event.
Works for reading and writing
event | the event containing the collections |
handlerMgr | the handler manager to get the collection block handler |
blocks | the blocks to receive |
Definition at line 50 of file LCIORecords.cc.
References std::set< K >::empty(), std::set< K >::end(), std::set< K >::find(), and SIO::SIOHandlerMgr::getHandler().
Referenced by readBlocks(), and writeRecord().
|
static |
Write an event record.
Setup the blocks, write the blocks and write an event record into the buffer
outbuf | the sio buffer to write to |
event | the event to write |
handlerMgr | the collection block handler manager to setup the blocks |
rec_info | the record info object to receive from sio |
opts | an optional word with encoded options |
Definition at line 78 of file LCIORecords.cc.
References SIO::LCSIO::EventRecordName, and setupBlocks().
Referenced by SIO::SIOWriter::writeEvent(), and MT::LCWriter::writeEvent().
|
static |
Write an event record.
Setup the blocks, write the blocks and write an event record into the buffer
outbuf | the sio buffer to write to |
event | the event to write |
handlerMgr | the collection block handler manager to setup the blocks |
rec_info | the record info object to receive from sio |
colsOnly | thelist of collections only to write |
opts | an optional word with encoded options |
Definition at line 86 of file LCIORecords.cc.
References SIO::LCSIO::EventRecordName, and setupBlocks().