LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
IMPL::VertexImpl Class Reference

Implementation of Vertex Class. More...

#include <VertexImpl.h>

+ Inheritance diagram for IMPL::VertexImpl:

Public Member Functions

 VertexImpl ()
 Default constructor, initializes values to 0. More...
 
 VertexImpl (const VertexImpl &)=default
 default copy constructor - use with care More...
 
VertexImploperator= (const VertexImpl &)=default
 default assignment operator - use with care More...
 
virtual ~VertexImpl ()
 
virtual int id () const
 Returns an object id for internal (debugging) use in LCIO. More...
 
virtual bool isPrimary () const
 Checks if the Vertex is the primary vertex of the event. More...
 
virtual const std::stringgetAlgorithmType () const
 Type code for the algorithm that has been used to create the vertex - check/set the collection parameters AlgorithmName and AlgorithmType. More...
 
virtual float getChi2 () const
 Chi squared of the vertex fit. More...
 
virtual float getProbability () const
 Probability of the vertex fit. More...
 
virtual const float * getPosition () const
 Position of the vertex. More...
 
virtual const EVENT::FloatVecgetCovMatrix () const
 Covariance matrix of the position (stored as lower triangle matrix, i.e. More...
 
virtual const EVENT::FloatVecgetParameters () const
 Additional parameters related to this vertex - check/set the collection parameter "VertexParameterNames" for the parameters' meaning. More...
 
virtual
EVENT::ReconstructedParticle
getAssociatedParticle () const
 Returns Reconstructed Particle associated to the Vertex. More...
 
void setPrimary (bool primary)
 
void setAlgorithmType (std::string type)
 
void setChi2 (float chi2)
 
void setProbability (float probability)
 
void setPosition (const 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)
 
- Public Member Functions inherited from EVENT::Vertex
virtual ~Vertex ()
 Destructor. More...
 
- Public Member Functions inherited from EVENT::LCObject
virtual ~LCObject ()
 Destructor. More...
 
virtual LCObjectclone () const
 Returns an object id for internal (debugging) use in LCIO. More...
 
- Public Member Functions inherited from lcrtrel::LCRTRelations
template<class V >
V::ext_type ext ()
 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,... More...
 
template<class V >
const V::ext_type ext () const
 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,... More...
 
template<class V >
V::rel_type rel ()
 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. More...
 
- Public Member Functions inherited from IMPL::AccessChecked
 AccessChecked ()
 
virtual ~AccessChecked ()
 
virtual int simpleUID () const
 

Protected Attributes

int _primary
 
std::string _type
 
float _chi2
 
float _probability
 
float _vpos [3] ={0,0,0}
 
EVENT::FloatVec _cov
 
EVENT::FloatVec _par
 
EVENT::ReconstructedParticle_aParticle
 
- Protected Attributes inherited from IMPL::AccessChecked
bool _readOnly {false}
 
int _id {-1}
 

Additional Inherited Members

- Public Types inherited from EVENT::Vertex
typedef Vertex lcobject_type
 Useful typedef for template programming with LCIO. More...
 
- Public Types inherited from lcrtrel::LCRTRelations
typedef std::type_index ext_index
 
typedef std::shared_ptr< void > ext_type
 
typedef std::map< ext_index,
ext_type
ext_map
 
- Protected Member Functions inherited from IMPL::AccessChecked
virtual void setReadOnly (bool readOnly)
 
void checkAccess ()
 
void checkAccess (const char *what)
 
- Static Protected Attributes inherited from IMPL::AccessChecked
static std::atomic_int _lCObjectId
 

Detailed Description

Implementation of Vertex Class.

See Also
Vertex
Author
gaede, engels
Version
Aug 09, 2006

Definition at line 21 of file VertexImpl.h.

Constructor & Destructor Documentation

IMPL::VertexImpl::VertexImpl ( )

Default constructor, initializes values to 0.

Definition at line 8 of file VertexImpl.cc.

IMPL::VertexImpl::VertexImpl ( const VertexImpl )
default

default copy constructor - use with care

IMPL::VertexImpl::~VertexImpl ( )
virtual

Definition at line 18 of file VertexImpl.cc.

Member Function Documentation

void IMPL::VertexImpl::addParameter ( float  p)
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 22 of file VertexImpl.cc.

References _type.

EVENT::ReconstructedParticle * IMPL::VertexImpl::getAssociatedParticle ( ) const
virtual

Returns Reconstructed Particle associated to the Vertex.

Implements EVENT::Vertex.

Definition at line 28 of file VertexImpl.cc.

References _aParticle.

float IMPL::VertexImpl::getChi2 ( ) const
virtual

Chi squared of the vertex fit.

Implements EVENT::Vertex.

Definition at line 23 of file VertexImpl.cc.

References _chi2.

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 26 of file VertexImpl.cc.

References _cov.

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 27 of file VertexImpl.cc.

References _par.

const float * IMPL::VertexImpl::getPosition ( ) const
virtual

Position of the vertex.

Implements EVENT::Vertex.

Definition at line 25 of file VertexImpl.cc.

References _vpos.

float IMPL::VertexImpl::getProbability ( ) const
virtual

Probability of the vertex fit.

Implements EVENT::Vertex.

Definition at line 24 of file VertexImpl.cc.

References _probability.

virtual int IMPL::VertexImpl::id ( ) const
inlinevirtual

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

Implements EVENT::LCObject.

Definition at line 40 of file VertexImpl.h.

References IMPL::AccessChecked::simpleUID().

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 20 of file VertexImpl.cc.

References _primary.

VertexImpl& IMPL::VertexImpl::operator= ( const VertexImpl )
default

default assignment operator - use with care

void IMPL::VertexImpl::setAlgorithmType ( std::string  type)

Definition at line 42 of file VertexImpl.cc.

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

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

Definition at line 78 of file VertexImpl.cc.

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

void IMPL::VertexImpl::setChi2 ( float  chi2)

Definition at line 47 of file VertexImpl.cc.

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

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

Definition at line 68 of file VertexImpl.cc.

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

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

Definition at line 73 of file VertexImpl.cc.

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

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

Definition at line 57 of file VertexImpl.cc.

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

Definition at line 61 of file VertexImpl.cc.

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

void IMPL::VertexImpl::setPrimary ( bool  primary)

Definition at line 32 of file VertexImpl.cc.

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

void IMPL::VertexImpl::setProbability ( float  probability)

Definition at line 52 of file VertexImpl.cc.

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

Member Data Documentation

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

Definition at line 100 of file VertexImpl.h.

Referenced by getAssociatedParticle(), and setAssociatedParticle().

float IMPL::VertexImpl::_chi2
protected

Definition at line 95 of file VertexImpl.h.

Referenced by getChi2(), and setChi2().

EVENT::FloatVec IMPL::VertexImpl::_cov
protected

Definition at line 98 of file VertexImpl.h.

Referenced by getCovMatrix(), and setCovMatrix().

EVENT::FloatVec IMPL::VertexImpl::_par
protected

Definition at line 99 of file VertexImpl.h.

Referenced by addParameter(), and getParameters().

int IMPL::VertexImpl::_primary
protected

Definition at line 93 of file VertexImpl.h.

Referenced by isPrimary(), and setPrimary().

float IMPL::VertexImpl::_probability
protected

Definition at line 96 of file VertexImpl.h.

Referenced by getProbability(), and setProbability().

std::string IMPL::VertexImpl::_type
protected

Definition at line 94 of file VertexImpl.h.

Referenced by getAlgorithmType(), and setAlgorithmType().

float IMPL::VertexImpl::_vpos[3] ={0,0,0}
protected

Definition at line 97 of file VertexImpl.h.

Referenced by getPosition(), and setPosition().


The documentation for this class was generated from the following files: