3 #include "EVENT/LCIO.h"
8 #include <sio/io_device.h>
9 #include <sio/version.h>
22 SIO_PNTR( device , &(rel->_from ) );
23 SIO_PNTR( device , &(rel->_to ) ) ;
25 SIO_SDATA( device , rel->_weight ) ;
34 SIO_PNTR( device, &from ) ;
35 auto to = rel->getTo() ;
36 SIO_PNTR( device, &to ) ;
38 SIO_SDATA( device , rel->getWeight() ) ;
The generic object that is held in an LCCollection.
void read(sio::read_device &device, EVENT::LCObject *objP, sio::version_type vers)
Reads lcio objects from an SIO stream.
SIOLCRelationHandler()
Constructor.
Interface for all lcio object SIO-handlers, has to be implemented for all event entities (hits...
void write(sio::write_device &device, const EVENT::LCObject *obj)
Writes lcio objects to an SIO stream.
unsigned int _flag
The collection flag.
Implementation of helper class to create and interpret the 32-bit flag word in LCCollections.
Adding stuff needed for io (friend declarations, etc.)
A single weighted relationship between two LCObjects.
EVENT::LCObject * create() const
Factory method to create an object of the type of the collection.
virtual LCObject * getFrom() const =0
The 'from' object of the given relation.