5 #include "EVENT/LCIO.h"
10 #include <sio/io_device.h>
11 #include <sio/version.h>
24 SIO_DATA( device , &(hit->_cellID0) , 1 ) ;
26 if( lcFlag.
bitSet( EVENT::LCIO::TRAWBIT_ID1 ) ) {
27 SIO_DATA( device , &(hit->_cellID1) , 1 ) ;
29 SIO_DATA( device , &(hit->_time) , 1 ) ;
30 SIO_SDATA( device , hit->_charge ) ;
31 SIO_PTAG( device , dynamic_cast<const EVENT::TrackerData*>(hit) ) ;
38 SIO_SDATA( device, hit->getCellID0() ) ;
40 if( lcFlag.bitSet( EVENT::LCIO::TRAWBIT_ID1 ) ) {
41 SIO_SDATA( device, hit->getCellID1() ) ;
43 SIO_SDATA( device, hit->getTime() ) ;
44 SIO_SDATA( device, hit->getChargeValues() ) ;
45 SIO_PTAG( device , hit ) ;
The generic object that is held in an LCCollection.
virtual bool bitSet(int index) const
Returns true if bit at given index is set.
void read(sio::read_device &device, EVENT::LCObject *objP, sio::version_type vers) override
Reads lcio objects from an SIO stream.
Interface for all lcio object SIO-handlers, has to be implemented for all event entities (hits...
TrackerData contains the corrected (calibrated) raw tracker data.
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.)
EVENT::LCObject * create() const override
Factory method to create an object of the type of the collection.
SIOTrackerDataHandler()
Constructor.
void write(sio::write_device &device, const EVENT::LCObject *obj) override
Writes lcio objects to an SIO stream.