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

IMPL::VertexImpl Class Reference

#include <VertexImpl.h>

Inheritance diagram for IMPL::VertexImpl:

EVENT::Vertex IMPL::AccessChecked EVENT::LCObject lcrtrel::LCRTRelations IOIMPL::VertexIOImpl List of all members.

Public Types

typedef Vertex lcobject_type

Public Member Functions

 VertexImpl ()
virtual ~VertexImpl ()
virtual int id () const
virtual bool isPrimary () const
virtual const std::string & getAlgorithmType () const
virtual float getChi2 () const
virtual float getProbability () const
virtual const float * getPosition () const
virtual const EVENT::FloatVecgetCovMatrix () const
virtual const EVENT::FloatVecgetParameters () const
virtual EVENT::ReconstructedParticlegetAssociatedParticle () const
void setPrimary (bool primary)
void setAlgorithmType (std::string type)
void setChi2 (float chi2)
void setProbability (float probability)
void setPosition (float vpos[3])
void setPosition (float px, float py, float pz)
void setCovMatrix (const float *cov)
void setCovMatrix (const EVENT::FloatVec &)
void setAssociatedParticle (EVENT::ReconstructedParticle *aP)
void addParameter (float p)
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

int _primary
std::string _type
float _chi2
float _probability
float _vpos [3]
EVENT::FloatVec _cov
EVENT::FloatVec _par
EVENT::ReconstructedParticle_aParticle
bool _readOnly
int _id

Detailed Description

Implementation of Vertex Class.

See also:
Vertex
Author:
gaede, engels
Version:
Aug 09, 2006

Definition at line 21 of file VertexImpl.h.


Member Typedef Documentation

typedef Vertex EVENT::Vertex::lcobject_type [inherited]
 

Useful typedef for template programming with LCIO

Definition at line 42 of file Vertex.h.


Constructor & Destructor Documentation

IMPL::VertexImpl::VertexImpl  ) 
 

Default constructor, initializes values to 0.

Definition at line 8 of file VertexImpl.cc.

References _cov, _type, _vpos, and VTXCOVMATRIX.

IMPL::VertexImpl::~VertexImpl  )  [virtual]
 

Definition at line 22 of file VertexImpl.cc.


Member Function Documentation

void IMPL::VertexImpl::addParameter float  p  ) 
 

Definition at line 87 of file VertexImpl.cc.

References _par, and IMPL::AccessChecked::checkAccess().

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

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(), 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(), setAlgorithmType(), IMPL::ParticleIDImpl::setAlgorithmType(), IMPL::RawCalorimeterHitImpl::setAmplitude(), 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(), setChi2(), IMPL::TrackImpl::setChi2(), 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(), setPosition(), IMPL::TrackerHitImpl::setPosition(), IMPL::SimTrackerHitImpl::setPosition(), IMPL::SimCalorimeterHitImpl::setPosition(), IMPL::ClusterImpl::setPosition(), IMPL::CalorimeterHitImpl::setPosition(), IMPL::ClusterImpl::setPositionError(), setPrimary(), 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::VertexImpl::getAlgorithmType  )  const [virtual]
 

Type code for the algorithm that has been used to create the vertex - check/set the collection parameters AlgorithmName and AlgorithmType.

Implements EVENT::Vertex.

Definition at line 26 of file VertexImpl.cc.

EVENT::ReconstructedParticle * IMPL::VertexImpl::getAssociatedParticle  )  const [virtual]
 

Returns Reconstructed Particle associated to the Vertex

Implements EVENT::Vertex.

Definition at line 32 of file VertexImpl.cc.

float IMPL::VertexImpl::getChi2  )  const [virtual]
 

Chi squared of the vertex fit.

Implements EVENT::Vertex.

Definition at line 27 of file VertexImpl.cc.

const EVENT::FloatVec & IMPL::VertexImpl::getCovMatrix  )  const [virtual]
 

Covariance matrix of the position (stored as lower triangle matrix, i.e. cov(xx),cov(y,x),cov(y,y) ).

Implements EVENT::Vertex.

Definition at line 30 of file VertexImpl.cc.

const EVENT::FloatVec & IMPL::VertexImpl::getParameters  )  const [virtual]
 

Additional parameters related to this vertex - check/set the collection parameter "VertexParameterNames" for the parameters' meaning.

Implements EVENT::Vertex.

Definition at line 31 of file VertexImpl.cc.

const float * IMPL::VertexImpl::getPosition  )  const [virtual]
 

Position of the vertex

Implements EVENT::Vertex.

Definition at line 29 of file VertexImpl.cc.

float IMPL::VertexImpl::getProbability  )  const [virtual]
 

Probability of the vertex fit.

Implements EVENT::Vertex.

Definition at line 28 of file VertexImpl.cc.

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

Returns an object id for internal (debugging) use in LCIO.

Implements EVENT::LCObject.

Definition at line 33 of file VertexImpl.h.

bool IMPL::VertexImpl::isPrimary  )  const [virtual]
 

Checks if the Vertex is the primary vertex of the event. Only one primary vertex per event is allowed

Implements EVENT::Vertex.

Definition at line 24 of file VertexImpl.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::VertexImpl::setAlgorithmType std::string  type  ) 
 

Definition at line 46 of file VertexImpl.cc.

References _type, and IMPL::AccessChecked::checkAccess().

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

void IMPL::VertexImpl::setAssociatedParticle EVENT::ReconstructedParticle aP  ) 
 

Definition at line 82 of file VertexImpl.cc.

References _aParticle, and IMPL::AccessChecked::checkAccess().

void IMPL::VertexImpl::setChi2 float  chi2  ) 
 

Definition at line 51 of file VertexImpl.cc.

References _chi2, and IMPL::AccessChecked::checkAccess().

void IMPL::VertexImpl::setCovMatrix const EVENT::FloatVec  ) 
 

Definition at line 77 of file VertexImpl.cc.

References _cov, and IMPL::AccessChecked::checkAccess().

void IMPL::VertexImpl::setCovMatrix const float *  cov  ) 
 

Definition at line 72 of file VertexImpl.cc.

References _cov, and IMPL::AccessChecked::checkAccess().

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

void IMPL::VertexImpl::setPosition float  px,
float  py,
float  pz
 

Definition at line 65 of file VertexImpl.cc.

References _vpos, and IMPL::AccessChecked::checkAccess().

void IMPL::VertexImpl::setPosition float  vpos[3]  ) 
 

Definition at line 61 of file VertexImpl.cc.

void IMPL::VertexImpl::setPrimary bool  primary  ) 
 

Definition at line 36 of file VertexImpl.cc.

References _primary, and IMPL::AccessChecked::checkAccess().

void IMPL::VertexImpl::setProbability float  probability  ) 
 

Definition at line 56 of file VertexImpl.cc.

References _probability, and IMPL::AccessChecked::checkAccess().

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

EVENT::ReconstructedParticle* IMPL::VertexImpl::_aParticle [protected]
 

Definition at line 94 of file VertexImpl.h.

Referenced by SIO::SIOVertexHandler::read(), and setAssociatedParticle().

float IMPL::VertexImpl::_chi2 [protected]
 

Definition at line 89 of file VertexImpl.h.

Referenced by SIO::SIOVertexHandler::read(), and setChi2().

EVENT::FloatVec IMPL::VertexImpl::_cov [protected]
 

Definition at line 92 of file VertexImpl.h.

Referenced by setCovMatrix(), and VertexImpl().

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

Definition at line 34 of file AccessChecked.h.

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

EVENT::FloatVec IMPL::VertexImpl::_par [protected]
 

Definition at line 93 of file VertexImpl.h.

Referenced by addParameter().

int IMPL::VertexImpl::_primary [protected]
 

Definition at line 86 of file VertexImpl.h.

Referenced by SIO::SIOVertexHandler::read(), and setPrimary().

float IMPL::VertexImpl::_probability [protected]
 

Definition at line 90 of file VertexImpl.h.

Referenced by SIO::SIOVertexHandler::read(), and setProbability().

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

Definition at line 33 of file AccessChecked.h.

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

std::string IMPL::VertexImpl::_type [protected]
 

Definition at line 88 of file VertexImpl.h.

Referenced by setAlgorithmType(), and VertexImpl().

float IMPL::VertexImpl::_vpos[3] [protected]
 

Definition at line 91 of file VertexImpl.h.

Referenced by SIO::SIOVertexHandler::read(), setPosition(), and VertexImpl().


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