3#ifndef EDM4EIC_MutableMCRecoVertexParticleAssociation_H
4#define EDM4EIC_MutableMCRecoVertexParticleAssociation_H
12#include "podio/utilities/MaybeSharedPtr.h"
17#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
18#include "nlohmann/json_fwd.hpp"
28class MutableMCParticle;
86 const edm4hep::MCParticle
getSim()
const;
101 void setSim(edm4hep::MCParticle value);
109 void unlink() { m_obj = podio::utils::MaybeSharedPtr<MCRecoVertexParticleAssociationObj>{
nullptr}; }
123 swap(a.m_obj, b.m_obj);
130 podio::utils::MaybeSharedPtr<MCRecoVertexParticleAssociationObj> m_obj{
nullptr};
133#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
134void to_json(nlohmann::json& j,
const MutableMCRecoVertexParticleAssociation& value);
Definition MCRecoVertexParticleAssociationCollection.h:95
Definition MCRecoVertexParticleAssociation.h:40
Definition MCRecoVertexParticleAssociationCollection.h:66
Definition MutableMCRecoVertexParticleAssociation.h:39
bool operator<(const MutableMCRecoVertexParticleAssociation &other) const
Definition MutableMCRecoVertexParticleAssociation.h:115
void setRec(edm4eic::Vertex value)
Set the reference to the vertex.
Definition MutableMCRecoVertexParticleAssociation.cc:68
podio::ObjectID id() const
Definition MutableMCRecoVertexParticleAssociation.h:117
MutableMCRecoVertexParticleAssociation(const MutableMCRecoVertexParticleAssociation &other)=default
copy constructor
const edm4eic::Vertex getRec() const
Access the reference to the vertex.
Definition MutableMCRecoVertexParticleAssociation.cc:49
void setSimID(std::uint32_t value)
Set the Index of corresponding MCParticle (position in MCParticles array)
Definition MutableMCRecoVertexParticleAssociation.cc:64
void setSim(edm4hep::MCParticle value)
Set the reference to the Monte-Carlo particle.
Definition MutableMCRecoVertexParticleAssociation.cc:75
bool isAvailable() const
check whether the object is actually available
Definition MutableMCRecoVertexParticleAssociation.cc:88
friend class MCRecoVertexParticleAssociation
Definition MutableMCRecoVertexParticleAssociation.h:43
const podio::ObjectID getObjectID() const
Definition MutableMCRecoVertexParticleAssociation.cc:95
bool operator==(const MutableMCRecoVertexParticleAssociation &other) const
Definition MutableMCRecoVertexParticleAssociation.h:111
void setWeight(float value)
Set the weight of this association.
Definition MutableMCRecoVertexParticleAssociation.cc:66
friend void swap(MutableMCRecoVertexParticleAssociation &a, MutableMCRecoVertexParticleAssociation &b)
Definition MutableMCRecoVertexParticleAssociation.h:121
MutableMCRecoVertexParticleAssociation & operator=(MutableMCRecoVertexParticleAssociation other)
copy-assignment operator
Definition MutableMCRecoVertexParticleAssociation.cc:33
void setRecID(std::uint32_t value)
Set the Index of corresponding Vertex (position in Vertices array)
Definition MutableMCRecoVertexParticleAssociation.cc:65
std::uint32_t getRecID() const
Access the Index of corresponding Vertex (position in Vertices array)
Definition MutableMCRecoVertexParticleAssociation.cc:46
friend class MCRecoVertexParticleAssociationCollection
Definition MutableMCRecoVertexParticleAssociation.h:41
~MutableMCRecoVertexParticleAssociation()=default
destructor
void unlink()
disconnect from MCRecoVertexParticleAssociationObj instance
Definition MutableMCRecoVertexParticleAssociation.h:109
std::uint32_t getSimID() const
Access the Index of corresponding MCParticle (position in MCParticles array)
Definition MutableMCRecoVertexParticleAssociation.cc:45
MutableMCRecoVertexParticleAssociation clone() const
create a mutable deep-copy of the object with identical relations
Definition MutableMCRecoVertexParticleAssociation.cc:38
MutableMCRecoVertexParticleAssociation()
default constructor
Definition MutableMCRecoVertexParticleAssociation.cc:23
float getWeight() const
Access the weight of this association.
Definition MutableMCRecoVertexParticleAssociation.cc:47
const edm4hep::MCParticle getSim() const
Access the reference to the Monte-Carlo particle.
Definition MutableMCRecoVertexParticleAssociation.cc:56
Definition CalorimeterHit.cc:18
Definition CalorimeterHit.h:21