9#include "edm4hep/Vector3f.h"
10#include "podio/RelationRange.h"
13#include "podio/ObjectID.h"
16#ifdef PODIO_JSON_OUTPUT
17#include "nlohmann/json.hpp"
22class ReconstructedParticle;
23class MutableReconstructedParticle;
44 Vertex(std::int32_t primary,
float chi2,
float probability, edm4hep::Vector3f position,
eicd::Cov3f positionError, std::int32_t algorithmType,
float time);
113 swap(a.m_obj, b.m_obj);
120std::ostream&
operator<<(std::ostream& o,
const Vertex& value);
122#ifdef PODIO_JSON_OUTPUT
123void to_json(nlohmann::json& j,
const Vertex& value);
Definition: MutableVertex.h:36
Definition: ReconstructedParticle.h:42
Definition: VertexCollection.h:82
Definition: VertexCollection.h:35
~Vertex()
destructor
Definition: Vertex.cc:51
bool isAvailable() const
check whether the object is actually available
Definition: Vertex.cc:109
unsigned int id() const
Definition: Vertex.h:107
const float & getProbability() const
Access the Probability of the vertex fit.
Definition: Vertex.cc:59
const eicd::Cov3f & getPositionError() const
Access the Covariance matrix of the position.
Definition: Vertex.cc:61
Vertex()
default constructor
Definition: Vertex.cc:17
const edm4hep::Vector3f & getPosition() const
Access the [mm] position of the vertex.
Definition: Vertex.cc:60
std::vector< float >::const_iterator parameters_begin() const
Definition: Vertex.cc:74
const podio::ObjectID getObjectID() const
Definition: Vertex.cc:116
unsigned int parameters_size() const
Definition: Vertex.cc:86
bool operator<(const Vertex &other) const
Definition: Vertex.h:105
const std::int32_t & getAlgorithmType() const
Access the Type code for the algorithm that has been used to create the vertex - check/set the collec...
Definition: Vertex.cc:62
std::vector< float >::const_iterator parameters_end() const
Definition: Vertex.cc:80
const eicd::ReconstructedParticle getAssociatedParticle() const
Access the reconstructed particle associated to this vertex.
Definition: Vertex.cc:65
const std::int32_t & getPrimary() const
Access the Boolean flag, if vertex is the primary vertex of the event.
Definition: Vertex.cc:57
const float & getTime() const
Access the Vertex time.
Definition: Vertex.cc:63
friend void swap(Vertex &a, Vertex &b)
Definition: Vertex.h:111
podio::RelationRange< float > getParameters() const
Definition: Vertex.cc:97
void unlink()
disconnect from VertexObj instance
Definition: Vertex.h:99
MutableVertex clone() const
create a mutable deep-copy of the object with identical relations
Definition: Vertex.cc:47
const float & getChi2() const
Access the Chi-squared of the vertex fit.
Definition: Vertex.cc:58
Vertex & operator=(Vertex other)
copy-assignment operator
Definition: Vertex.cc:36
bool operator==(const Vertex &other) const
Definition: Vertex.h:101
Definition: VertexObj.h:22
Definition: CalorimeterHit.cc:13
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition: CalorimeterHit.cc:93