3#ifndef EICD_MCRecoVertexParticleAssociation_H
4#define EICD_MCRecoVertexParticleAssociation_H
9#include "podio/ObjectID.h"
12#ifdef PODIO_JSON_OUTPUT
13#include "nlohmann/json.hpp"
23class MutableMCParticle;
29class MutableMCRecoVertexParticleAssociation;
65 const std::uint32_t&
getSimID()
const;
68 const std::uint32_t&
getRecID()
const;
77 const edm4hep::MCParticle
getSim()
const;
98 swap(a.m_obj, b.m_obj);
105std::ostream&
operator<<(std::ostream& o,
const MCRecoVertexParticleAssociation& value);
107#ifdef PODIO_JSON_OUTPUT
108void to_json(nlohmann::json& j,
const MCRecoVertexParticleAssociation& value);
Definition: MCRecoVertexParticleAssociationCollection.h:82
Definition: MCRecoVertexParticleAssociationCollection.h:35
Definition: MCRecoVertexParticleAssociation.h:35
void unlink()
disconnect from MCRecoVertexParticleAssociationObj instance
Definition: MCRecoVertexParticleAssociation.h:84
bool isAvailable() const
check whether the object is actually available
Definition: MCRecoVertexParticleAssociation.cc:77
unsigned int id() const
Definition: MCRecoVertexParticleAssociation.h:92
const eicd::Vertex getRec() const
Access the reference to the vertex.
Definition: MCRecoVertexParticleAssociation.cc:58
const podio::ObjectID getObjectID() const
Definition: MCRecoVertexParticleAssociation.cc:84
MCRecoVertexParticleAssociation()
default constructor
Definition: MCRecoVertexParticleAssociation.cc:18
friend void swap(MCRecoVertexParticleAssociation &a, MCRecoVertexParticleAssociation &b)
Definition: MCRecoVertexParticleAssociation.h:96
MutableMCRecoVertexParticleAssociation clone() const
create a mutable deep-copy of the object with identical relations
Definition: MCRecoVertexParticleAssociation.cc:44
bool operator<(const MCRecoVertexParticleAssociation &other) const
Definition: MCRecoVertexParticleAssociation.h:90
const edm4hep::MCParticle getSim() const
Access the reference to the Monte-Carlo particle.
Definition: MCRecoVertexParticleAssociation.cc:65
bool operator==(const MCRecoVertexParticleAssociation &other) const
Definition: MCRecoVertexParticleAssociation.h:86
const std::uint32_t & getRecID() const
Access the Index of corresponding Vertex (position in Vertices array)
Definition: MCRecoVertexParticleAssociation.cc:55
const std::uint32_t & getSimID() const
Access the Index of corresponding MCParticle (position in MCParticles array)
Definition: MCRecoVertexParticleAssociation.cc:54
const float & getWeight() const
Access the weight of this association.
Definition: MCRecoVertexParticleAssociation.cc:56
MCRecoVertexParticleAssociation & operator=(MCRecoVertexParticleAssociation other)
copy-assignment operator
Definition: MCRecoVertexParticleAssociation.cc:33
~MCRecoVertexParticleAssociation()
destructor
Definition: MCRecoVertexParticleAssociation.cc:48
Definition: MCRecoVertexParticleAssociationObj.h:24
Definition: MutableMCRecoVertexParticleAssociation.h:36
Definition: MCRecoClusterParticleAssociation.h:21
Definition: CalorimeterHit.cc:13
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition: CalorimeterHit.cc:93