3#ifndef EDM4EIC_MCRecoClusterParticleAssociation_H
4#define EDM4EIC_MCRecoClusterParticleAssociation_H
10#include "podio/utilities/MaybeSharedPtr.h"
15#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
16#include "nlohmann/json_fwd.hpp"
26class MutableMCParticle;
32class MutableMCRecoClusterParticleAssociation;
33class MCRecoClusterParticleAssociationCollection;
34class MCRecoClusterParticleAssociationCollectionData;
90 const edm4hep::MCParticle
getSim()
const;
97 void unlink() { m_obj = podio::utils::MaybeSharedPtr<MCRecoClusterParticleAssociationObj>{
nullptr}; }
114 swap(a.m_obj, b.m_obj);
122 podio::utils::MaybeSharedPtr<MCRecoClusterParticleAssociationObj> m_obj{
nullptr};
125std::ostream&
operator<<(std::ostream& o,
const MCRecoClusterParticleAssociation& value);
127#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
128void to_json(nlohmann::json& j,
const MCRecoClusterParticleAssociation& value);
Definition MCRecoClusterParticleAssociationCollectionData.h:32
Definition MCRecoClusterParticleAssociationCollection.h:92
Definition MCRecoClusterParticleAssociationCollection.h:37
Definition MCRecoClusterParticleAssociation.h:40
const podio::ObjectID getObjectID() const
Definition MCRecoClusterParticleAssociation.cc:89
friend void swap(MCRecoClusterParticleAssociation &a, MCRecoClusterParticleAssociation &b)
Definition MCRecoClusterParticleAssociation.h:112
std::uint32_t getRecID() const
Access the Index of corresponding Cluster (position in Clusters array)
Definition MCRecoClusterParticleAssociation.cc:63
static MCRecoClusterParticleAssociation makeEmpty()
Definition MCRecoClusterParticleAssociation.cc:58
MCRecoClusterParticleAssociation(const MCRecoClusterParticleAssociation &other)=default
copy constructor
MCRecoClusterParticleAssociation()
default constructor
Definition MCRecoClusterParticleAssociation.cc:22
friend class MutableMCRecoClusterParticleAssociation
Definition MCRecoClusterParticleAssociation.h:42
bool operator==(const MCRecoClusterParticleAssociation &other) const
Definition MCRecoClusterParticleAssociation.h:99
void unlink()
disconnect from MCRecoClusterParticleAssociationObj instance
Definition MCRecoClusterParticleAssociation.h:97
float getWeight() const
Access the weight of this association.
Definition MCRecoClusterParticleAssociation.cc:64
bool isAvailable() const
check whether the object is actually available
Definition MCRecoClusterParticleAssociation.cc:85
const edm4eic::Cluster getRec() const
Access the reference to the cluster.
Definition MCRecoClusterParticleAssociation.cc:66
const edm4hep::MCParticle getSim() const
Access the reference to the Monte-Carlo particle.
Definition MCRecoClusterParticleAssociation.cc:73
bool operator<(const MCRecoClusterParticleAssociation &other) const
Definition MCRecoClusterParticleAssociation.h:106
~MCRecoClusterParticleAssociation()=default
destructor
std::uint32_t getSimID() const
Access the Index of corresponding MCParticle (position in MCParticles array)
Definition MCRecoClusterParticleAssociation.cc:62
friend class MCRecoClusterParticleAssociationCollection
Definition MCRecoClusterParticleAssociation.h:43
bool operator!=(const MutableMCRecoClusterParticleAssociation &other) const
Definition MCRecoClusterParticleAssociation.h:103
podio::ObjectID id() const
Definition MCRecoClusterParticleAssociation.h:108
MutableMCRecoClusterParticleAssociation clone(bool cloneRelations=true) const
Definition MCRecoClusterParticleAssociation.cc:37
bool operator!=(const MCRecoClusterParticleAssociation &other) const
Definition MCRecoClusterParticleAssociation.h:102
MCRecoClusterParticleAssociation & operator=(MCRecoClusterParticleAssociation other)
copy-assignment operator
Definition MCRecoClusterParticleAssociation.cc:32
Definition MCRecoClusterParticleAssociationObj.h:24
Definition MutableMCRecoClusterParticleAssociation.h:38
Definition CalorimeterHit.cc:17
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition CalorimeterHit.cc:103
Definition CalorimeterHit.h:21