LCIO
02.17
|
Implementation of Vertex Class. More...
#include <VertexImpl.h>
Public Member Functions | |
VertexImpl () | |
Default constructor, initializes values to 0. More... | |
VertexImpl (const VertexImpl &)=default | |
default copy constructor - use with care More... | |
VertexImpl & | operator= (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::string & | getAlgorithmType () 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::FloatVec & | getCovMatrix () const |
Covariance matrix of the position (stored as lower triangle matrix, i.e. More... | |
virtual const EVENT::FloatVec & | getParameters () 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) |
![]() | |
virtual | ~Vertex () |
Destructor. More... | |
![]() | |
virtual | ~LCObject () |
Destructor. More... | |
virtual LCObject * | clone () const |
Returns an object id for internal (debugging) use in LCIO. More... | |
![]() | |
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... | |
![]() | |
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 |
![]() | |
bool | _readOnly {false} |
int | _id {-1} |
Additional Inherited Members | |
![]() | |
typedef Vertex | lcobject_type |
Useful typedef for template programming with LCIO. More... | |
![]() | |
typedef std::type_index | ext_index |
typedef std::shared_ptr< void > | ext_type |
typedef std::map< ext_index, ext_type > | ext_map |
![]() | |
virtual void | setReadOnly (bool readOnly) |
void | checkAccess () |
void | checkAccess (const char *what) |
![]() | |
static std::atomic_int | _lCObjectId |
Implementation of Vertex Class.
Definition at line 21 of file VertexImpl.h.
IMPL::VertexImpl::VertexImpl | ( | ) |
Default constructor, initializes values to 0.
Definition at line 8 of file VertexImpl.cc.
|
default |
default copy constructor - use with care
|
virtual |
Definition at line 18 of file VertexImpl.cc.
void IMPL::VertexImpl::addParameter | ( | float | p | ) |
Definition at line 83 of file VertexImpl.cc.
References _par, IMPL::AccessChecked::checkAccess(), and std::vector< T >::push_back().
|
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.
|
virtual |
Returns Reconstructed Particle associated to the Vertex.
Implements EVENT::Vertex.
Definition at line 28 of file VertexImpl.cc.
References _aParticle.
|
virtual |
Chi squared of the vertex fit.
Implements EVENT::Vertex.
Definition at line 23 of file VertexImpl.cc.
References _chi2.
|
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.
|
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.
|
virtual |
Position of the vertex.
Implements EVENT::Vertex.
Definition at line 25 of file VertexImpl.cc.
References _vpos.
|
virtual |
Probability of the vertex fit.
Implements EVENT::Vertex.
Definition at line 24 of file VertexImpl.cc.
References _probability.
|
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().
|
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.
|
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().
|
protected |
Definition at line 100 of file VertexImpl.h.
Referenced by getAssociatedParticle(), and setAssociatedParticle().
|
protected |
Definition at line 95 of file VertexImpl.h.
|
protected |
Definition at line 98 of file VertexImpl.h.
Referenced by getCovMatrix(), and setCovMatrix().
|
protected |
Definition at line 99 of file VertexImpl.h.
Referenced by addParameter(), and getParameters().
|
protected |
Definition at line 93 of file VertexImpl.h.
Referenced by isPrimary(), and setPrimary().
|
protected |
Definition at line 96 of file VertexImpl.h.
Referenced by getProbability(), and setProbability().
|
protected |
Definition at line 94 of file VertexImpl.h.
Referenced by getAlgorithmType(), and setAlgorithmType().
|
protected |
Definition at line 97 of file VertexImpl.h.
Referenced by getPosition(), and setPosition().