3#ifndef EDM4EIC_MCRecoVertexParticleAssociation_H
4#define EDM4EIC_MCRecoVertexParticleAssociation_H
10#include "podio/utilities/MaybeSharedPtr.h"
15#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
16#include "nlohmann/json_fwd.hpp"
26class MutableMCParticle;
32class MutableMCRecoVertexParticleAssociation;
33class MCRecoVertexParticleAssociationCollection;
34class MCRecoVertexParticleAssociationCollectionData;
87 const edm4hep::MCParticle
getSim()
const;
94 void unlink() { m_obj = podio::utils::MaybeSharedPtr<MCRecoVertexParticleAssociationObj>{
nullptr}; }
108 swap(a.m_obj, b.m_obj);
116 podio::utils::MaybeSharedPtr<MCRecoVertexParticleAssociationObj> m_obj{
nullptr};
119std::ostream&
operator<<(std::ostream& o,
const MCRecoVertexParticleAssociation& value);
121#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
122void to_json(nlohmann::json& j,
const MCRecoVertexParticleAssociation& value);
Definition MCRecoVertexParticleAssociationCollectionData.h:32
Definition MCRecoVertexParticleAssociationCollection.h:95
Definition MCRecoVertexParticleAssociationCollection.h:40
Definition MCRecoVertexParticleAssociation.h:40
bool operator<(const MCRecoVertexParticleAssociation &other) const
Definition MCRecoVertexParticleAssociation.h:100
const edm4hep::MCParticle getSim() const
Access the reference to the Monte-Carlo particle.
Definition MCRecoVertexParticleAssociation.cc:61
MCRecoVertexParticleAssociation()
default constructor
Definition MCRecoVertexParticleAssociation.cc:23
podio::ObjectID id() const
Definition MCRecoVertexParticleAssociation.h:102
friend void swap(MCRecoVertexParticleAssociation &a, MCRecoVertexParticleAssociation &b)
Definition MCRecoVertexParticleAssociation.h:106
MCRecoVertexParticleAssociation(const MCRecoVertexParticleAssociation &other)=default
copy constructor
float getWeight() const
Access the weight of this association.
Definition MCRecoVertexParticleAssociation.cc:52
friend class MCRecoVertexParticleAssociationCollection
Definition MCRecoVertexParticleAssociation.h:43
friend class MutableMCRecoVertexParticleAssociation
Definition MCRecoVertexParticleAssociation.h:42
std::uint32_t getRecID() const
Access the Index of corresponding Vertex (position in Vertices array)
Definition MCRecoVertexParticleAssociation.cc:51
bool operator==(const MCRecoVertexParticleAssociation &other) const
Definition MCRecoVertexParticleAssociation.h:96
MCRecoVertexParticleAssociation & operator=(MCRecoVertexParticleAssociation other)
copy-assignment operator
Definition MCRecoVertexParticleAssociation.cc:33
static MCRecoVertexParticleAssociation makeEmpty()
Definition MCRecoVertexParticleAssociation.cc:46
MutableMCRecoVertexParticleAssociation clone() const
create a mutable deep-copy of the object with identical relations
Definition MCRecoVertexParticleAssociation.cc:38
void unlink()
disconnect from MCRecoVertexParticleAssociationObj instance
Definition MCRecoVertexParticleAssociation.h:94
bool isAvailable() const
check whether the object is actually available
Definition MCRecoVertexParticleAssociation.cc:73
const podio::ObjectID getObjectID() const
Definition MCRecoVertexParticleAssociation.cc:80
std::uint32_t getSimID() const
Access the Index of corresponding MCParticle (position in MCParticles array)
Definition MCRecoVertexParticleAssociation.cc:50
~MCRecoVertexParticleAssociation()=default
destructor
const edm4eic::Vertex getRec() const
Access the reference to the vertex.
Definition MCRecoVertexParticleAssociation.cc:54
Definition MCRecoVertexParticleAssociationObj.h:24
Definition MutableMCRecoVertexParticleAssociation.h:39
Definition CalorimeterHit.cc:18
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition CalorimeterHit.cc:97
Definition CalorimeterHit.h:21