3#ifndef EDM4EIC_MCRecoClusterParticleAssociation_H
4#define EDM4EIC_MCRecoClusterParticleAssociation_H
10#include "podio/utilities/MaybeSharedPtr.h"
11#include "podio/detail/OrderKey.h"
16#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
17#include "nlohmann/json_fwd.hpp"
22class MCRecoClusterParticleAssociationCollection;
28class MutableMCParticle;
39class MutableMCRecoClusterParticleAssociation;
40class MCRecoClusterParticleAssociationCollection;
41class MCRecoClusterParticleAssociationCollectionData;
85 static constexpr auto typeName =
"edm4eic::MCRecoClusterParticleAssociation";
100 const edm4hep::MCParticle
getSim()
const;
107 void unlink() { m_obj = podio::utils::MaybeSharedPtr<MCRecoClusterParticleAssociationObj>{
nullptr}; }
124 swap(a.m_obj, b.m_obj);
132 podio::utils::MaybeSharedPtr<MCRecoClusterParticleAssociationObj> m_obj{
nullptr};
135std::ostream&
operator<<(std::ostream& o,
const MCRecoClusterParticleAssociation& value);
137#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
138void to_json(nlohmann::json& j,
const MCRecoClusterParticleAssociation& value);
Definition MCRecoClusterParticleAssociationCollectionData.h:32
Definition MCRecoClusterParticleAssociationCollection.h:91
Definition MCRecoClusterParticleAssociationCollection.h:36
Definition MCRecoClusterParticleAssociation.h:47
const podio::ObjectID getObjectID() const
Definition MCRecoClusterParticleAssociation.cc:89
friend void swap(MCRecoClusterParticleAssociation &a, MCRecoClusterParticleAssociation &b)
Definition MCRecoClusterParticleAssociation.h:122
static constexpr auto typeName
Definition MCRecoClusterParticleAssociation.h:85
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:49
bool operator==(const MCRecoClusterParticleAssociation &other) const
Definition MCRecoClusterParticleAssociation.h:109
void unlink()
disconnect from MCRecoClusterParticleAssociationObj instance
Definition MCRecoClusterParticleAssociation.h:107
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:116
~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:50
bool operator!=(const MutableMCRecoClusterParticleAssociation &other) const
Definition MCRecoClusterParticleAssociation.h:113
podio::ObjectID id() const
Definition MCRecoClusterParticleAssociation.h:118
MutableMCRecoClusterParticleAssociation clone(bool cloneRelations=true) const
Definition MCRecoClusterParticleAssociation.cc:37
bool operator!=(const MCRecoClusterParticleAssociation &other) const
Definition MCRecoClusterParticleAssociation.h:112
MCRecoClusterParticleAssociation & operator=(MCRecoClusterParticleAssociation other)
copy-assignment operator
Definition MCRecoClusterParticleAssociation.cc:32
Definition MCRecoClusterParticleAssociationObj.h:24
Definition MutableMCRecoClusterParticleAssociation.h:39
Definition CalorimeterHit.cc:17
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition CalorimeterHit.cc:103
Definition CalorimeterHit.h:25
Definition CalorimeterHit.h:31
OrderKey getOrderKey(const edm4eic::CalorimeterHit &obj)
Definition CalorimeterHit.cc:150