LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | Private Member Functions | List of all members
SIO::SIOEventHeaderRecord Class Reference

#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
 

Detailed Description

Definition at line 26 of file LCIORecords.h.

Constructor & Destructor Documentation

SIO::SIOEventHeaderRecord::SIOEventHeaderRecord ( )
privatedelete

Member Function Documentation

void SIO::SIOEventHeaderRecord::readBlocks ( const sio::buffer_span &  buffer,
EVENT::LCEvent event,
const std::vector< std::string > &  readCol 
)
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
Parameters
bufferthe raw SIO buffer to decode
eventthe event to populate
readColthe 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().

void SIO::SIOEventHeaderRecord::writeRecord ( sio::buffer &  outbuf,
EVENT::LCEvent event,
sio::record_info &  rec_info,
sio::options_type  opts = 0 
)
static

Write an event header to the raw sio buffer.

    Write the full record to the buffer. The record is not compressed
Parameters
outbufthe buffer to fill
eventthe event to write
rec_infothe record info to receive
optsan 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().

void SIO::SIOEventHeaderRecord::writeRecord ( sio::buffer &  outbuf,
EVENT::LCEvent event,
sio::record_info &  rec_info,
const std::set< std::string > &  colsOnly,
sio::options_type  opts = 0 
)
static

Write an event header to the raw sio buffer.

    Write the full record to the buffer. The record is not compressed
Parameters
outbufthe buffer to fill
eventthe event to write
rec_infothe record info to receive
colsOnlythe list of collections to write only
optsan optional word with encoded options

Definition at line 38 of file LCIORecords.cc.

References SIO::LCSIO::HeaderRecordName.


The documentation for this class was generated from the following files: