6 #include "EVENT/LCIO.h" 
    9 #include <sio/io_device.h> 
   10 #include <sio/version.h> 
   15     sio::block( 
LCSIO::RunBlockName, 
LCSIO::blockVersion() ) {
 
   32     SIO_SDATA( device, rnTmp ) ;
 
   33     rhdr->setRunNumber( rnTmp ) ;
 
   36     SIO_SDATA( device,  detNameTmp ) ;
 
   37     rhdr->setDetectorName( detNameTmp  )  ;
 
   40     SIO_SDATA( device,  descTmp ) ;
 
   41     rhdr->setDescription( descTmp  )  ;
 
   44     SIO_SDATA( device, nSDN ) ;
 
   45     for( 
int i=0; i<nSDN ; i++ ) {
 
   47       SIO_SDATA( device,  sdnTmp ) ;
 
   48       rhdr->addActiveSubdetector( sdnTmp ) ;
 
   51     if( vers > SIO_VERSION_ENCODE( 1, 1 ) ) {
 
   60     int nSDN = strVec->
size() ;
 
   64     SIO_SDATA( device, nSDN ) ;
 
   65     for( 
auto detstr : *strVec ) {
 
   66       SIO_SDATA( device, detstr ) ;
 
static void write(sio::write_device &device, const EVENT::LCParameters ¶ms)
Writes lcio objects to an SIO stream. 
 
EVENT::LCRunHeader * _runHeader
Run header for reading/writing. 
 
static void checkVersion(sio::version_type versionID)
Check for old version of LCIO (> v01-08 ar no longer supported) Throws an exception if not supported...
 
Collection of constants and helper functions. 
 
void read(sio::read_device &device, sio::version_type vers) override
 
static void read(sio::read_device &device, EVENT::LCParameters ¶ms, sio::version_type vers)
Reads objects from an SIO stream. 
 
void setRunHeader(EVENT::LCRunHeader *hdr)
Set the run header to read/write. 
 
void write(sio::write_device &device) override
 
SIORunHeaderHandler()
Constructor.