LCIO
02.17
|
Implementation of SIOObjectHandler to handle IO of Clusters. More...
#include <SIOClusterHandler.h>
Public Member Functions | |
SIOClusterHandler () | |
Constructor. More... | |
void | read (sio::read_device &device, EVENT::LCObject *objP, sio::version_type vers) |
Reads lcio objects from an SIO stream. More... | |
void | write (sio::write_device &device, const EVENT::LCObject *obj) |
Writes lcio objects to an SIO stream. More... | |
EVENT::LCObject * | create () const |
Factory method to create an object of the type of the collection. More... | |
![]() | |
SIOObjectHandler (const std::string &colType) | |
Constructor with collection type. More... | |
virtual | ~SIOObjectHandler ()=default |
Default destructor. More... | |
unsigned int | flag () const |
Get the collection flag. More... | |
const std::string & | collectionType () const |
Get the collection type associated to the object handler (see EVENT/LCIO.h) More... | |
virtual void | initReading (sio::read_device &device, EVENT::LCCollection *collection, sio::version_type vers) |
Init collection reading. More... | |
virtual void | initWriting (sio::write_device &device, EVENT::LCCollection *collection) |
Init collection writing. More... | |
Additional Inherited Members | |
![]() | |
const std::string | _collectionType |
The collection type associated to LCIO object. More... | |
unsigned int | _flag {0} |
The collection flag. More... | |
Implementation of SIOObjectHandler to handle IO of Clusters.
Definition at line 16 of file SIOClusterHandler.h.
SIO::SIOClusterHandler::SIOClusterHandler | ( | ) |
Constructor.
Definition at line 15 of file SIOClusterHandler.cc.
|
virtual |
Factory method to create an object of the type of the collection.
Implements SIO::SIOObjectHandler.
Definition at line 173 of file SIOClusterHandler.cc.
|
virtual |
Reads lcio objects from an SIO stream.
Implements SIO::SIOObjectHandler.
Definition at line 22 of file SIOClusterHandler.cc.
References IMPL::ParticleIDImpl::_algorithmType, IMPL::ClusterImpl::_clusters, IMPL::ClusterImpl::_energy, IMPL::ClusterImpl::_energyError, SIO::SIOObjectHandler::_flag, IMPL::ClusterImpl::_hits, IMPL::ParticleIDImpl::_likelihood, IMPL::ParticleIDImpl::_pdg, IMPL::ClusterImpl::_phi, IMPL::ClusterImpl::_position, IMPL::ClusterImpl::_shape, IMPL::ClusterImpl::_subdetectorEnergies, IMPL::ClusterImpl::_theta, IMPL::ParticleIDImpl::_type, IMPL::ClusterImpl::_weights, IMPL::ParticleIDImpl::addParameter(), IMPL::ClusterImpl::addParticleID(), NERRDIR, NERRPOS, NSHAPE_OLD, std::vector< T >::resize(), IMPL::ClusterImpl::setDirectionError(), IMPL::ClusterImpl::setPositionError(), and IMPL::ClusterImpl::setType().
|
virtual |
Writes lcio objects to an SIO stream.
Implements SIO::SIOObjectHandler.
Definition at line 105 of file SIOClusterHandler.cc.
References SIO::SIOObjectHandler::_flag, EVENT::Cluster::getCalorimeterHits(), EVENT::Cluster::getClusters(), EVENT::Cluster::getDirectionError(), EVENT::Cluster::getEnergy(), EVENT::Cluster::getEnergyError(), EVENT::Cluster::getHitContributions(), EVENT::Cluster::getIPhi(), EVENT::Cluster::getITheta(), EVENT::Cluster::getParticleIDs(), EVENT::Cluster::getPosition(), EVENT::Cluster::getPositionError(), EVENT::Cluster::getShape(), EVENT::Cluster::getSubdetectorEnergies(), EVENT::Cluster::getType(), and std::vector< T >::size().