Implementation of Vertex Class. More...
#include <IMPL/VertexImpl.h>
Public Member Functions | |
VertexImpl () | |
Default constructor, initializes values to 0. | |
VertexImpl (const VertexImpl &) | |
default copy constructor - use with care | |
VertexImpl & | operator= (const VertexImpl &) |
default assignment operator - use with care | |
virtual int | id () const |
Returns an object id for internal (debugging) use in LCIO. | |
virtual bool | isPrimary () const |
Checks if the Vertex is the primary vertex of the event. | |
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. | |
virtual float | getChi2 () const |
Chi squared of the vertex fit. | |
virtual float | getProbability () const |
Probability of the vertex fit. | |
virtual const float * | getPosition () const |
Position of the vertex. | |
virtual const EVENT::FloatVec & | getCovMatrix () const |
Covariance matrix of the position (stored as lower triangle matrix, i.e. | |
virtual const EVENT::FloatVec & | getParameters () const |
Additional parameters related to this vertex - check/set the collection parameter "VertexParameterNames" for the parameters' meaning. | |
virtual EVENT::ReconstructedParticle * | getAssociatedParticle () const |
Returns Reconstructed Particle associated to the Vertex. | |
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) |
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 |
Implementation of Vertex Class.
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.
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.