LCIO
02.17
|
#include <LCIORecords.h>
Static Public Member Functions | |
static void | readBlocks (const sio::buffer_span &buffer, EVENT::LCEvent *event, const std::vector< std::string > &readCol) |
Read an event header record. More... | |
static void | writeRecord (sio::buffer &outbuf, EVENT::LCEvent *event, sio::record_info &rec_info, sio::options_type opts=0) |
Write an event header to the raw sio buffer. More... | |
static void | writeRecord (sio::buffer &outbuf, EVENT::LCEvent *event, sio::record_info &rec_info, const std::set< std::string > &colsOnly, sio::options_type opts=0) |
Write an event header to the raw sio buffer. More... | |
Private Member Functions | |
SIOEventHeaderRecord ()=delete | |
Definition at line 26 of file LCIORecords.h.
|
privatedelete |
|
static |
Read an event header record.
Decode the buffer and setup the collections in the event. The buffer must have been uncompressed before hand and must start on the first block
buffer | the raw SIO buffer to decode |
event | the event to populate |
readCol | the collections to read only |
Definition at line 17 of file LCIORecords.cc.
References std::vector< T >::begin(), and std::vector< T >::end().
Referenced by MT::LCReader::readEvent(), MT::LCReader::readNextEvent(), MT::LCReader::readStream(), and SIO::LCIORandomAccessMgr::recreateEventMap().
|
static |
Write an event header to the raw sio buffer.
Write the full record to the buffer. The record is not compressed
outbuf | the buffer to fill |
event | the event to write |
rec_info | the record info to receive |
opts | an optional word with encoded options |
Definition at line 28 of file LCIORecords.cc.
References SIO::LCSIO::HeaderRecordName.
Referenced by SIO::SIOWriter::writeEvent(), and MT::LCWriter::writeEvent().
|
static |
Write an event header to the raw sio buffer.
Write the full record to the buffer. The record is not compressed
outbuf | the buffer to fill |
event | the event to write |
rec_info | the record info to receive |
colsOnly | the list of collections to write only |
opts | an optional word with encoded options |
Definition at line 38 of file LCIORecords.cc.
References SIO::LCSIO::HeaderRecordName.