4 #include "EVENT/LCIO.h" 
   10 #include <sio/io_device.h> 
   11 #include <sio/version.h> 
   25     SIO_DATA( device ,  &(hit->_cellID0) , 1  ) ;
 
   26     if( lcFlag.
bitSet( EVENT::LCIO::RCHBIT_ID1 ) || vers == SIO_VERSION_ENCODE( 0, 8 ) ) {  
 
   27       SIO_DATA( device ,  &(hit->_cellID1) , 1  ) ;
 
   29     SIO_DATA( device ,  &(hit->_amplitude) , 1  ) ;
 
   30     if( lcFlag.
bitSet( EVENT::LCIO::RCHBIT_TIME ) ){
 
   31       SIO_DATA( device ,  &(hit->_timeStamp)  , 1 ) ;
 
   33     if( ! lcFlag.
bitSet( EVENT::LCIO::RCHBIT_NO_PTR )  ) {
 
   34       SIO_PTAG( device , dynamic_cast<const EVENT::RawCalorimeterHit*>(hit) ) ;
 
   42     SIO_SDATA( device, hit->getCellID0()  ) ;
 
   44     if( lcFlag.bitSet( EVENT::LCIO::RCHBIT_ID1 ) ){
 
   45       SIO_SDATA( device, hit->getCellID1()  ) ;
 
   47     SIO_SDATA( device, hit->getAmplitude()  ) ;
 
   48     if( lcFlag.bitSet( EVENT::LCIO::RCHBIT_TIME ) ){
 
   49       SIO_SDATA( device, hit->getTimeStamp()  ) ;
 
   51     if( ! lcFlag.bitSet( EVENT::LCIO::RCHBIT_NO_PTR ) ){
 
   52       SIO_PTAG( device , hit  ) ;
 
The generic object that is held in an LCCollection. 
 
SIORawCalHitHandler()
Constructor. 
 
virtual bool bitSet(int index) const 
Returns true if bit at given index is set. 
 
void write(sio::write_device &device, const EVENT::LCObject *obj) override
Writes lcio objects to an SIO stream. 
 
Interface for all lcio object SIO-handlers, has to be implemented for all event entities (hits...
 
unsigned int _flag
The collection flag. 
 
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. 
 
Implementation of helper class to create and interpret the 32-bit flag word in LCCollections. 
 
The generic calorimeter hit for real data (or simulation thereof). 
 
EVENT::LCObject * create() const override
Factory method to create an object of the type of the collection.