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