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::SIOEventRecord Class Reference

#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
 

Detailed Description

Definition at line 69 of file LCIORecords.h.

Constructor & Destructor Documentation

SIO::SIOEventRecord::SIOEventRecord ( )
privatedelete

Member Function Documentation

void SIO::SIOEventRecord::readBlocks ( const sio::buffer_span &  buffer,
EVENT::LCEvent event,
const SIOHandlerMgr handlerMgr 
)
static

Read the blocks (collections) from the sio buffer.

Parameters
bufferthe input raw buffer
eventthe event containing the collections to populate
handlerMgrthe 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().

void SIO::SIOEventRecord::setupBlocks ( EVENT::LCEvent event,
const SIOHandlerMgr handlerMgr,
sio::block_list &  blocks,
const std::set< std::string > &  colsOnly = {} 
)
static

Setup the record blocks for the given event.

    Works for reading and writing
Parameters
eventthe event containing the collections
handlerMgrthe handler manager to get the collection block handler
blocksthe 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().

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

Write an event record.

Setup the blocks, write the blocks and write an event record into the buffer

Parameters
outbufthe sio buffer to write to
eventthe event to write
handlerMgrthe collection block handler manager to setup the blocks
rec_infothe record info object to receive from sio
optsan 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().

void SIO::SIOEventRecord::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 
)
static

Write an event record.

Setup the blocks, write the blocks and write an event record into the buffer

Parameters
outbufthe sio buffer to write to
eventthe event to write
handlerMgrthe collection block handler manager to setup the blocks
rec_infothe record info object to receive from sio
colsOnlythelist of collections only to write
optsan optional word with encoded options

Definition at line 86 of file LCIORecords.cc.

References SIO::LCSIO::EventRecordName, and setupBlocks().


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