Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

IMPL::LCGenericObjectImpl Class Reference

#include <LCGenericObjectImpl.h>

Inheritance diagram for IMPL::LCGenericObjectImpl:

EVENT::LCGenericObject IMPL::AccessChecked EVENT::LCObject lcrtrel::LCRTRelations IOIMPL::LCGenericObjectIOImpl List of all members.

Public Types

typedef LCGenericObject lcobject_type

Public Member Functions

 LCGenericObjectImpl ()
 LCGenericObjectImpl (int nInt, int nFloat, int nDouble)
virtual ~LCGenericObjectImpl ()
 Destructor.
virtual int id () const
virtual int getNInt () const
virtual int getNFloat () const
virtual int getNDouble () const
virtual int getIntVal (int index) const
virtual float getFloatVal (int index) const
virtual double getDoubleVal (int index) const
virtual void setIntVal (unsigned index, int value)
virtual void setFloatVal (unsigned index, float value)
virtual void setDoubleVal (unsigned index, double value)
virtual bool isFixedSize () const
virtual const std::string getTypeName () const
virtual const std::string getDataDescription () const
virtual LCObject * clone () const
template<class V>
V::ext_type ext ()
template<class V>
V::rel_type rel ()
virtual int simpleUID () const

Protected Member Functions

template<class V>
V::ptr & ptr ()
virtual void setReadOnly (bool readOnly)
void checkAccess () throw ( EVENT::ReadOnlyException )
void checkAccess (const char *what) throw ( EVENT::ReadOnlyException )

Protected Attributes

std::vector< int > _intVec
std::vector< float > _floatVec
std::vector< double > _doubleVec
bool _isFixedSize
bool _readOnly
int _id

Static Protected Attributes

std::string _typeName = "LCGenericObject"
std::string _dataDescription = ""

Detailed Description

Default LCIO implementation of the interface to store generic user data.

Author:
gaede
Version:
Id
LCGenericObjectImpl.h,v 1.5 2006/08/04 16:52:46 gaede Exp

Definition at line 18 of file LCGenericObjectImpl.h.


Member Typedef Documentation

typedef LCGenericObject EVENT::LCGenericObject::lcobject_type [inherited]
 

Useful typedef for template programming with LCIO

Definition at line 35 of file LCGenericObject.h.


Constructor & Destructor Documentation

IMPL::LCGenericObjectImpl::LCGenericObjectImpl  ) 
 

Variable size c'tor.

Definition at line 14 of file LCGenericObjectImpl.cc.

IMPL::LCGenericObjectImpl::LCGenericObjectImpl int  nInt,
int  nFloat,
int  nDouble
 

Fixed size c'tor.

Definition at line 20 of file LCGenericObjectImpl.cc.

References _doubleVec, _floatVec, and _intVec.

virtual IMPL::LCGenericObjectImpl::~LCGenericObjectImpl  )  [inline, virtual]
 

Destructor.

Definition at line 31 of file LCGenericObjectImpl.h.


Member Function Documentation

void IMPL::AccessChecked::checkAccess const char *  what  )  throw ( EVENT::ReadOnlyException ) [protected, inherited]
 

Definition at line 20 of file AccessChecked.cc.

void IMPL::AccessChecked::checkAccess  )  throw ( EVENT::ReadOnlyException ) [protected, inherited]
 

Definition at line 16 of file AccessChecked.cc.

Referenced by IMPL::TrackerRawDataImpl::adcValues(), IMPL::ReconstructedParticleImpl::addCluster(), IMPL::ClusterImpl::addCluster(), IMPL::MCParticleImpl::addDaughter(), IMPL::SimCalorimeterHitImpl::addMCParticleContribution(), IMPL::VertexImpl::addParameter(), IMPL::ParticleIDImpl::addParameter(), IMPL::MCParticleImpl::addParent(), IMPL::ReconstructedParticleImpl::addParticle(), IMPL::ReconstructedParticleImpl::addParticleID(), IMPL::ClusterImpl::addParticleID(), IMPL::TrackImpl::addTrack(), IMPL::ReconstructedParticleImpl::addTrack(), IMPL::TrackerDataImpl::chargeValues(), IMPL::TrackerHitImpl::rawHits(), IMPL::TrackerRawDataImpl::setADCValues(), IMPL::VertexImpl::setAlgorithmType(), IMPL::ParticleIDImpl::setAlgorithmType(), IMPL::RawCalorimeterHitImpl::setAmplitude(), IMPL::VertexImpl::setAssociatedParticle(), IMPL::TPCHitImpl::setCellID(), IMPL::SimTrackerHitImpl::setCellID(), IMPL::TrackerRawDataImpl::setCellID0(), IMPL::TrackerPulseImpl::setCellID0(), IMPL::TrackerDataImpl::setCellID0(), IMPL::SimCalorimeterHitImpl::setCellID0(), IMPL::RawCalorimeterHitImpl::setCellID0(), IMPL::CalorimeterHitImpl::setCellID0(), IMPL::TrackerRawDataImpl::setCellID1(), IMPL::TrackerPulseImpl::setCellID1(), IMPL::TrackerDataImpl::setCellID1(), IMPL::SimCalorimeterHitImpl::setCellID1(), IMPL::RawCalorimeterHitImpl::setCellID1(), IMPL::CalorimeterHitImpl::setCellID1(), IMPL::TrackerPulseImpl::setCharge(), IMPL::TPCHitImpl::setCharge(), IMPL::ReconstructedParticleImpl::setCharge(), IMPL::MCParticleImpl::setCharge(), IMPL::TrackerDataImpl::setChargeValues(), IMPL::VertexImpl::setChi2(), IMPL::TrackImpl::setChi2(), IMPL::VertexImpl::setCovMatrix(), IMPL::TrackImpl::setCovMatrix(), IMPL::TrackerHitImpl::setCovMatrix(), IMPL::ReconstructedParticleImpl::setCovMatrix(), IMPL::TrackImpl::setD0(), IMPL::TrackImpl::setdEdx(), IMPL::TrackerHitImpl::setdEdx(), IMPL::SimTrackerHitImpl::setdEdx(), IMPL::TrackImpl::setdEdxError(), IMPL::LCRunHeaderImpl::setDescription(), IMPL::LCRunHeaderImpl::setDetectorName(), IMPL::LCEventImpl::setDetectorName(), IMPL::ClusterImpl::setDirectionError(), IMPL::MCParticleImpl::setEndpoint(), IMPL::SimCalorimeterHitImpl::setEnergy(), IMPL::ReconstructedParticleImpl::setEnergy(), IMPL::ClusterImpl::setEnergy(), IMPL::CalorimeterHitImpl::setEnergy(), IMPL::LCEventImpl::setEventNumber(), IMPL::MCParticleImpl::setGeneratorStatus(), IMPL::ReconstructedParticleImpl::setGoodnessOfPID(), IMPL::ClusterImpl::setIPhi(), IMPL::TrackImpl::setIsReferencePointPCA(), IMPL::ClusterImpl::setITheta(), IMPL::ParticleIDImpl::setLikelihood(), IMPL::ReconstructedParticleImpl::setMass(), IMPL::MCParticleImpl::setMass(), IMPL::SimTrackerHitImpl::setMCParticle(), IMPL::SimTrackerHitImpl::setMomentum(), IMPL::ReconstructedParticleImpl::setMomentum(), IMPL::MCParticleImpl::setMomentum(), IMPL::TrackImpl::setNdf(), IMPL::TrackImpl::setOmega(), IMPL::ReconstructedParticleImpl::setParticleIDUsed(), IMPL::SimTrackerHitImpl::setPathLength(), IMPL::ParticleIDImpl::setPDG(), IMPL::MCParticleImpl::setPDG(), IMPL::TrackImpl::setPhi(), IMPL::VertexImpl::setPosition(), IMPL::TrackerHitImpl::setPosition(), IMPL::SimTrackerHitImpl::setPosition(), IMPL::SimCalorimeterHitImpl::setPosition(), IMPL::ClusterImpl::setPosition(), IMPL::CalorimeterHitImpl::setPosition(), IMPL::ClusterImpl::setPositionError(), IMPL::VertexImpl::setPrimary(), IMPL::VertexImpl::setProbability(), IMPL::TrackerPulseImpl::setQuality(), IMPL::TPCHitImpl::setQuality(), IMPL::TrackerPulseImpl::setQualityBit(), IMPL::TrackImpl::setRadiusOfInnermostHit(), IMPL::TPCHitImpl::setRawData(), IMPL::CalorimeterHitImpl::setRawHit(), IMPL::TrackImpl::setReferencePoint(), IMPL::ReconstructedParticleImpl::setReferencePoint(), IMPL::LCRunHeaderImpl::setRunNumber(), IMPL::LCEventImpl::setRunNumber(), IMPL::ClusterImpl::setShape(), IMPL::MCParticleImpl::setSimulatorStatus(), IMPL::ReconstructedParticleImpl::setStartVertex(), IMPL::TrackImpl::setTanLambda(), IMPL::TrackerRawDataImpl::setTime(), IMPL::TrackerPulseImpl::setTime(), IMPL::TrackerHitImpl::setTime(), IMPL::TrackerDataImpl::setTime(), IMPL::TPCHitImpl::setTime(), IMPL::SimTrackerHitImpl::setTime(), IMPL::MCParticleImpl::setTime(), IMPL::CalorimeterHitImpl::setTime(), IMPL::RawCalorimeterHitImpl::setTimeStamp(), IMPL::LCEventImpl::setTimeStamp(), IMPL::TrackerPulseImpl::setTrackerData(), IMPL::TrackImpl::setType(), IMPL::TrackerHitImpl::setType(), IMPL::ReconstructedParticleImpl::setType(), IMPL::ParticleIDImpl::setType(), IMPL::ClusterImpl::setType(), IMPL::CalorimeterHitImpl::setType(), IMPL::TrackImpl::setTypeBit(), IMPL::ClusterImpl::setTypeBit(), IMPL::LCParametersImpl::setValue(), IMPL::LCParametersImpl::setValues(), IMPL::MCParticleImpl::setVertex(), IMPL::TrackImpl::setZ0(), IMPL::ClusterImpl::subdetectorEnergies(), and IMPL::TrackImpl::subdetectorHitNumbers().

virtual LCObject* EVENT::LCObject::clone  )  const [inline, virtual, inherited]
 

Deep copy of the object. C++ implementations should return the concrete type (virtual constructor). No reasonable implementation yet. Do not use this method.

Reimplemented in IMPL::SimCalorimeterHitImpl.

Definition at line 52 of file LCObject.h.

template<class V>
V::ext_type lcrtrel::LCRTRelations::ext  )  [inline, inherited]
 

Provides access to an extension object - the type and ownership is defined by the class V which should be a subtype of LCExtension, LCOwnedExtension, LCExtensionVector, LCExtensionList,...

Definition at line 430 of file LCRTRelations.h.

const std::string IMPL::LCGenericObjectImpl::getDataDescription  )  const [virtual]
 

The description string. A comma separated list of pairs of type identifier, one of 'i','f','d' followed by ':' and an attribute name, e.g. "i:cellId,f:offset,f:gain".

Implements EVENT::LCGenericObject.

Definition at line 76 of file LCGenericObjectImpl.cc.

double IMPL::LCGenericObjectImpl::getDoubleVal int  index  )  const [virtual]
 

Returns the double value for the given index.

Implements EVENT::LCGenericObject.

Definition at line 46 of file LCGenericObjectImpl.cc.

References _doubleVec.

float IMPL::LCGenericObjectImpl::getFloatVal int  index  )  const [virtual]
 

Returns the float value for the given index.

Implements EVENT::LCGenericObject.

Definition at line 42 of file LCGenericObjectImpl.cc.

References _floatVec.

int IMPL::LCGenericObjectImpl::getIntVal int  index  )  const [virtual]
 

Returns the integer value for the given index.

Implements EVENT::LCGenericObject.

Definition at line 38 of file LCGenericObjectImpl.cc.

References _intVec.

int IMPL::LCGenericObjectImpl::getNDouble  )  const [virtual]
 

Number of double values stored in this object.

Implements EVENT::LCGenericObject.

Definition at line 34 of file LCGenericObjectImpl.cc.

References _doubleVec.

int IMPL::LCGenericObjectImpl::getNFloat  )  const [virtual]
 

Number of float values stored in this object.

Implements EVENT::LCGenericObject.

Definition at line 30 of file LCGenericObjectImpl.cc.

References _floatVec.

int IMPL::LCGenericObjectImpl::getNInt  )  const [virtual]
 

Number of integer values stored in this object.

Implements EVENT::LCGenericObject.

Definition at line 27 of file LCGenericObjectImpl.cc.

References _intVec.

const std::string IMPL::LCGenericObjectImpl::getTypeName  )  const [virtual]
 

The type name of the user class (typically the class name)

Implements EVENT::LCGenericObject.

Definition at line 72 of file LCGenericObjectImpl.cc.

virtual int IMPL::LCGenericObjectImpl::id  )  const [inline, virtual]
 

Provide default implementation for id

Reimplemented from EVENT::LCGenericObject.

Definition at line 33 of file LCGenericObjectImpl.h.

bool IMPL::LCGenericObjectImpl::isFixedSize  )  const [virtual]
 

True if objects of the implementation class have a fixed size, i.e getNInt, getNFloat and getNDouble will return values that are constant during the lifetime of the object.

Implements EVENT::LCGenericObject.

Definition at line 50 of file LCGenericObjectImpl.cc.

template<class V>
V::ptr& lcrtrel::LCRTRelations::ptr  )  [inline, protected, inherited]
 

Returns the reference to the pointer to the extension/relation object

Definition at line 508 of file LCRTRelations.h.

template<class V>
V::rel_type lcrtrel::LCRTRelations::rel  )  [inline, inherited]
 

Provides read access to relations - the object types and their connectivity are defined by the class V which has to be a subtype of either LC1To1Relation, LC1ToNRelation or LCNToNRelation.

Definition at line 444 of file LCRTRelations.h.

void IMPL::LCGenericObjectImpl::setDoubleVal unsigned  index,
double  value
[virtual]
 

Sets the double value at the given index.

Definition at line 66 of file LCGenericObjectImpl.cc.

References _doubleVec.

void IMPL::LCGenericObjectImpl::setFloatVal unsigned  index,
float  value
[virtual]
 

Sets the float value at the given index.

Definition at line 60 of file LCGenericObjectImpl.cc.

References _floatVec.

void IMPL::LCGenericObjectImpl::setIntVal unsigned  index,
int  value
[virtual]
 

Sets the integer value at the given index.

Definition at line 54 of file LCGenericObjectImpl.cc.

References _intVec.

void IMPL::AccessChecked::setReadOnly bool  readOnly  )  [protected, virtual, inherited]
 

Reimplemented in IMPL::LCCollectionVec, and IMPL::LCRunHeaderImpl.

Definition at line 14 of file AccessChecked.cc.

References IMPL::AccessChecked::_readOnly.

Referenced by IMPL::LCEventImpl::setAccessMode(), and IMPL::LCCollectionVec::setReadOnly().

virtual int IMPL::AccessChecked::simpleUID  )  const [inline, virtual, inherited]
 

Definition at line 24 of file AccessChecked.h.


Member Data Documentation

std::string IMPL::LCGenericObjectImpl::_dataDescription = "" [static, protected]
 

Definition at line 10 of file LCGenericObjectImpl.cc.

std::vector<double> IMPL::LCGenericObjectImpl::_doubleVec [protected]
 

Definition at line 94 of file LCGenericObjectImpl.h.

Referenced by getDoubleVal(), getNDouble(), LCGenericObjectImpl(), SIO::SIOLCGenericObjectHandler::read(), and setDoubleVal().

std::vector<float> IMPL::LCGenericObjectImpl::_floatVec [protected]
 

Definition at line 93 of file LCGenericObjectImpl.h.

Referenced by getFloatVal(), getNFloat(), LCGenericObjectImpl(), SIO::SIOLCGenericObjectHandler::read(), and setFloatVal().

int IMPL::AccessChecked::_id [protected, inherited]
 

Definition at line 34 of file AccessChecked.h.

Referenced by IMPL::AccessChecked::AccessChecked().

std::vector<int> IMPL::LCGenericObjectImpl::_intVec [protected]
 

Definition at line 92 of file LCGenericObjectImpl.h.

Referenced by getIntVal(), getNInt(), LCGenericObjectImpl(), SIO::SIOLCGenericObjectHandler::read(), and setIntVal().

bool IMPL::LCGenericObjectImpl::_isFixedSize [protected]
 

Definition at line 95 of file LCGenericObjectImpl.h.

Referenced by SIO::SIOLCGenericObjectHandler::read().

bool IMPL::AccessChecked::_readOnly [protected, inherited]
 

Definition at line 33 of file AccessChecked.h.

Referenced by IMPL::AccessChecked::setReadOnly().

std::string IMPL::LCGenericObjectImpl::_typeName = "LCGenericObject" [static, protected]
 

Definition at line 9 of file LCGenericObjectImpl.cc.


The documentation for this class was generated from the following files:
Generated on Sun Jun 3 06:32:26 2007 for A TPC Tracking Environment by  doxygen 1.3.9.1