3#ifndef EDM4EIC_MutableMCRecoClusterParticleAssociation_H
4#define EDM4EIC_MutableMCRecoClusterParticleAssociation_H
12#include "podio/utilities/MaybeSharedPtr.h"
16#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
17#include "nlohmann/json_fwd.hpp"
27class MutableMCParticle;
83 const edm4hep::MCParticle
getSim()
const;
90 [[deprecated(
"use getSimID instead")]]
91 std::uint32_t&
simID();
98 [[deprecated(
"use getRecID instead")]]
99 std::uint32_t&
recID();
106 [[deprecated(
"use getWeight instead")]]
113 void setSim(
const edm4hep::MCParticle& value);
121 void unlink() { m_obj = podio::utils::MaybeSharedPtr<MCRecoClusterParticleAssociationObj>{
nullptr}; }
138 swap(a.m_obj, b.m_obj);
145 podio::utils::MaybeSharedPtr<MCRecoClusterParticleAssociationObj> m_obj{
nullptr};
148#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
149void to_json(nlohmann::json& j,
const MutableMCRecoClusterParticleAssociation& value);
Definition MCRecoClusterParticleAssociationCollection.h:92
Definition MCRecoClusterParticleAssociation.h:40
Definition MCRecoClusterParticleAssociationCollection.h:63
Definition MutableMCRecoClusterParticleAssociation.h:38
bool operator==(const MutableMCRecoClusterParticleAssociation &other) const
Definition MutableMCRecoClusterParticleAssociation.h:123
const podio::ObjectID getObjectID() const
Definition MutableMCRecoClusterParticleAssociation.cc:94
MutableMCRecoClusterParticleAssociation()
default constructor
Definition MutableMCRecoClusterParticleAssociation.cc:20
const edm4hep::MCParticle getSim() const
Access the reference to the Monte-Carlo particle.
Definition MutableMCRecoClusterParticleAssociation.cc:56
friend class MCRecoClusterParticleAssociation
Definition MutableMCRecoClusterParticleAssociation.h:42
MutableMCRecoClusterParticleAssociation & operator=(MutableMCRecoClusterParticleAssociation other)
copy-assignment operator
Definition MutableMCRecoClusterParticleAssociation.cc:30
bool operator<(const MutableMCRecoClusterParticleAssociation &other) const
Definition MutableMCRecoClusterParticleAssociation.h:130
bool operator!=(const MCRecoClusterParticleAssociation &other) const
Definition MutableMCRecoClusterParticleAssociation.h:127
void setSimID(std::uint32_t value)
Set the Index of corresponding MCParticle (position in MCParticles array)
Definition MutableMCRecoClusterParticleAssociation.cc:64
std::uint32_t getSimID() const
Access the Index of corresponding MCParticle (position in MCParticles array)
Definition MutableMCRecoClusterParticleAssociation.cc:45
std::uint32_t getRecID() const
Access the Index of corresponding Cluster (position in Clusters array)
Definition MutableMCRecoClusterParticleAssociation.cc:46
void setRec(const edm4eic::Cluster &value)
Set the reference to the cluster.
Definition MutableMCRecoClusterParticleAssociation.cc:74
void setWeight(float value)
Set the weight of this association.
Definition MutableMCRecoClusterParticleAssociation.cc:70
bool operator!=(const MutableMCRecoClusterParticleAssociation &other) const
Definition MutableMCRecoClusterParticleAssociation.h:126
std::uint32_t & simID()
Get reference to Index of corresponding MCParticle (position in MCParticles array)
Definition MutableMCRecoClusterParticleAssociation.cc:66
~MutableMCRecoClusterParticleAssociation()=default
destructor
void unlink()
disconnect from MCRecoClusterParticleAssociationObj instance
Definition MutableMCRecoClusterParticleAssociation.h:121
float getWeight() const
Access the weight of this association.
Definition MutableMCRecoClusterParticleAssociation.cc:47
MutableMCRecoClusterParticleAssociation clone(bool cloneRelations=true) const
Definition MutableMCRecoClusterParticleAssociation.cc:35
float & weight()
Get reference to weight of this association.
Definition MutableMCRecoClusterParticleAssociation.cc:72
bool isAvailable() const
check whether the object is actually available
Definition MutableMCRecoClusterParticleAssociation.cc:90
MutableMCRecoClusterParticleAssociation(const MutableMCRecoClusterParticleAssociation &other)=default
copy constructor
friend class MCRecoClusterParticleAssociationCollection
Definition MutableMCRecoClusterParticleAssociation.h:40
std::uint32_t & recID()
Get reference to Index of corresponding Cluster (position in Clusters array)
Definition MutableMCRecoClusterParticleAssociation.cc:69
friend void swap(MutableMCRecoClusterParticleAssociation &a, MutableMCRecoClusterParticleAssociation &b)
Definition MutableMCRecoClusterParticleAssociation.h:136
void setRecID(std::uint32_t value)
Set the Index of corresponding Cluster (position in Clusters array)
Definition MutableMCRecoClusterParticleAssociation.cc:67
void setSim(const edm4hep::MCParticle &value)
Set the reference to the Monte-Carlo particle.
Definition MutableMCRecoClusterParticleAssociation.cc:79
podio::ObjectID id() const
Definition MutableMCRecoClusterParticleAssociation.h:132
const edm4eic::Cluster getRec() const
Access the reference to the cluster.
Definition MutableMCRecoClusterParticleAssociation.cc:49
Definition CalorimeterHit.cc:17
Definition CalorimeterHit.h:21