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;
87 const edm4hep::MCParticle
getSim()
const;
94 void unlink() { m_obj = podio::utils::MaybeSharedPtr<MCRecoClusterParticleAssociationObj>{
nullptr}; }
108 swap(a.m_obj, b.m_obj);
116 podio::utils::MaybeSharedPtr<MCRecoClusterParticleAssociationObj> m_obj{
nullptr};
119std::ostream&
operator<<(std::ostream& o,
const MCRecoClusterParticleAssociation& value);
121#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
122void to_json(nlohmann::json& j,
const MCRecoClusterParticleAssociation& value);
Definition MCRecoClusterParticleAssociationCollectionData.h:32
Definition MCRecoClusterParticleAssociationCollection.h:95
Definition MCRecoClusterParticleAssociationCollection.h:40
Definition MCRecoClusterParticleAssociation.h:40
const podio::ObjectID getObjectID() const
Definition MCRecoClusterParticleAssociation.cc:80
friend void swap(MCRecoClusterParticleAssociation &a, MCRecoClusterParticleAssociation &b)
Definition MCRecoClusterParticleAssociation.h:106
std::uint32_t getRecID() const
Access the Index of corresponding Cluster (position in Clusters array)
Definition MCRecoClusterParticleAssociation.cc:51
static MCRecoClusterParticleAssociation makeEmpty()
Definition MCRecoClusterParticleAssociation.cc:46
MCRecoClusterParticleAssociation(const MCRecoClusterParticleAssociation &other)=default
copy constructor
MCRecoClusterParticleAssociation()
default constructor
Definition MCRecoClusterParticleAssociation.cc:23
friend class MutableMCRecoClusterParticleAssociation
Definition MCRecoClusterParticleAssociation.h:42
bool operator==(const MCRecoClusterParticleAssociation &other) const
Definition MCRecoClusterParticleAssociation.h:96
void unlink()
disconnect from MCRecoClusterParticleAssociationObj instance
Definition MCRecoClusterParticleAssociation.h:94
float getWeight() const
Access the weight of this association.
Definition MCRecoClusterParticleAssociation.cc:52
bool isAvailable() const
check whether the object is actually available
Definition MCRecoClusterParticleAssociation.cc:73
const edm4eic::Cluster getRec() const
Access the reference to the cluster.
Definition MCRecoClusterParticleAssociation.cc:54
const edm4hep::MCParticle getSim() const
Access the reference to the Monte-Carlo particle.
Definition MCRecoClusterParticleAssociation.cc:61
bool operator<(const MCRecoClusterParticleAssociation &other) const
Definition MCRecoClusterParticleAssociation.h:100
~MCRecoClusterParticleAssociation()=default
destructor
std::uint32_t getSimID() const
Access the Index of corresponding MCParticle (position in MCParticles array)
Definition MCRecoClusterParticleAssociation.cc:50
friend class MCRecoClusterParticleAssociationCollection
Definition MCRecoClusterParticleAssociation.h:43
MutableMCRecoClusterParticleAssociation clone() const
create a mutable deep-copy of the object with identical relations
Definition MCRecoClusterParticleAssociation.cc:38
podio::ObjectID id() const
Definition MCRecoClusterParticleAssociation.h:102
MCRecoClusterParticleAssociation & operator=(MCRecoClusterParticleAssociation other)
copy-assignment operator
Definition MCRecoClusterParticleAssociation.cc:33
Definition MCRecoClusterParticleAssociationObj.h:24
Definition MutableMCRecoClusterParticleAssociation.h:39
Definition CalorimeterHit.cc:18
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition CalorimeterHit.cc:97
Definition CalorimeterHit.h:21