3#ifndef EICD_MutableVertex_H
4#define EICD_MutableVertex_H
11#include "edm4hep/Vector3f.h"
12#include "podio/RelationRange.h"
15#include "podio/ObjectID.h"
18#ifdef PODIO_JSON_OUTPUT
19#include "nlohmann/json.hpp"
24class ReconstructedParticle;
25class MutableReconstructedParticle;
148 swap(a.m_obj, b.m_obj);
155#ifdef PODIO_JSON_OUTPUT
156void to_json(nlohmann::json& j,
const MutableVertex& value);
Definition: MutableVertex.h:36
MutableVertex clone() const
create a mutable deep-copy of the object with identical relations
Definition: MutableVertex.cc:47
friend class Vertex
Definition: MutableVertex.h:40
const edm4hep::Vector3f & getPosition() const
Access the [mm] position of the vertex.
Definition: MutableVertex.cc:61
bool isAvailable() const
check whether the object is actually available
Definition: MutableVertex.cc:133
const eicd::ReconstructedParticle getAssociatedParticle() const
Access the reconstructed particle associated to this vertex.
Definition: MutableVertex.cc:66
edm4hep::Vector3f & position()
Get reference to [mm] position of the vertex.
Definition: MutableVertex.cc:78
void setPositionError(eicd::Cov3f value)
Set the Covariance matrix of the position.
Definition: MutableVertex.cc:79
void unlink()
disconnect from VertexObj instance
Definition: MutableVertex.h:134
const eicd::Cov3f & getPositionError() const
Access the Covariance matrix of the position.
Definition: MutableVertex.cc:62
~MutableVertex()
destructor
Definition: MutableVertex.cc:51
const float & getTime() const
Access the Vertex time.
Definition: MutableVertex.cc:64
void addToParameters(float)
Definition: MutableVertex.cc:92
podio::RelationRange< float > getParameters() const
Definition: MutableVertex.cc:120
const float & getProbability() const
Access the Probability of the vertex fit.
Definition: MutableVertex.cc:60
MutableVertex()
default constructor
Definition: MutableVertex.cc:17
unsigned int id() const
Definition: MutableVertex.h:142
void setChi2(float value)
Set the Chi-squared of the vertex fit.
Definition: MutableVertex.cc:75
void setPrimary(std::int32_t value)
Set the Boolean flag, if vertex is the primary vertex of the event.
Definition: MutableVertex.cc:74
const std::int32_t & getPrimary() const
Access the Boolean flag, if vertex is the primary vertex of the event.
Definition: MutableVertex.cc:58
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: MutableVertex.cc:63
unsigned int parameters_size() const
Definition: MutableVertex.cc:109
bool operator==(const MutableVertex &other) const
Definition: MutableVertex.h:136
void setTime(float value)
Set the Vertex time.
Definition: MutableVertex.cc:82
MutableVertex & operator=(MutableVertex other)
copy-assignment operator
Definition: MutableVertex.cc:36
const float & getChi2() const
Access the Chi-squared of the vertex fit.
Definition: MutableVertex.cc:59
void setPosition(edm4hep::Vector3f value)
Set the [mm] position of the vertex.
Definition: MutableVertex.cc:77
friend void swap(MutableVertex &a, MutableVertex &b)
Definition: MutableVertex.h:146
const podio::ObjectID getObjectID() const
Definition: MutableVertex.cc:140
void setProbability(float value)
Set the Probability of the vertex fit.
Definition: MutableVertex.cc:76
bool operator<(const MutableVertex &other) const
Definition: MutableVertex.h:140
void setAlgorithmType(std::int32_t value)
Set the Type code for the algorithm that has been used to create the vertex - check/set the collectio...
Definition: MutableVertex.cc:81
std::vector< float >::const_iterator parameters_end() const
Definition: MutableVertex.cc:103
eicd::Cov3f & positionError()
Get reference to Covariance matrix of the position.
Definition: MutableVertex.cc:80
std::vector< float >::const_iterator parameters_begin() const
Definition: MutableVertex.cc:97
void setAssociatedParticle(eicd::ReconstructedParticle value)
Set the reconstructed particle associated to this vertex.
Definition: MutableVertex.cc:84
Definition: ReconstructedParticle.h:42
Definition: VertexCollection.h:82
Definition: VertexCollection.h:57
Definition: VertexObj.h:22
Definition: CalorimeterHit.cc:13