4 #include "EVENT/LCIO.h"
9 #include <sio/io_device.h>
10 #include <sio/version.h>
23 SIO_DATA( device , &(hit->_cellID0) , 1 ) ;
25 if( lcFlag.
bitSet( EVENT::LCIO::TRAWBIT_ID1 ) ) {
26 SIO_DATA( device , &(hit->_cellID1) , 1 ) ;
28 SIO_DATA( device , &(hit->_time) , 1 ) ;
29 SIO_SDATA( device , hit->_adc ) ;
30 SIO_PTAG( device , dynamic_cast<const EVENT::TrackerRawData*>(hit) ) ;
37 SIO_SDATA( device, hit->getCellID0() ) ;
39 if( lcFlag.bitSet( EVENT::LCIO::TRAWBIT_ID1 ) ) {
40 SIO_SDATA( device, hit->getCellID1() ) ;
42 SIO_SDATA( device, hit->getTime() ) ;
43 SIO_SDATA( device, hit->getADCValues() ) ;
44 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.
Interface for all lcio object SIO-handlers, has to be implemented for all event entities (hits...
unsigned int _flag
The collection flag.
void write(sio::write_device &device, const EVENT::LCObject *obj) override
Writes lcio objects to an SIO stream.
EVENT::LCObject * create() const override
Factory method to create an object of the type of the collection.
Implementation of helper class to create and interpret the 32-bit flag word in LCCollections.
SIOTrackerRawDataHandler()
Constructor.
Generic class for raw tracker data.
Adding stuff needed for io (friend declarations, etc.)
void read(sio::read_device &device, EVENT::LCObject *objP, sio::version_type vers) override
Reads lcio objects from an SIO stream.