3#ifndef EDM4EIC_MCRecoClusterParticleAssociation_H
4#define EDM4EIC_MCRecoClusterParticleAssociation_H
9#include <edm4hep/MCParticle.h>
11#include "podio/utilities/MaybeSharedPtr.h"
12#include "podio/detail/OrderKey.h"
17#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
18#include "nlohmann/json_fwd.hpp"
29class MutableMCParticle;
35OrderKey
getOrderKey(
const edm4eic::MCRecoClusterParticleAssociation& obj);
90 static constexpr std::string_view
typeName =
"edm4eic::MCRecoClusterParticleAssociation";
99 const edm4hep::MCParticle
getSim()
const;
102 [[deprecated(
"use getSim().getObjectID().index instead")]]
int getSimID()
const {
return getSim().getObjectID().index; }
109 void unlink() { m_obj = podio::utils::MaybeSharedPtr<MCRecoClusterParticleAssociationObj>{
nullptr}; }
124 friend std::hash<MCRecoClusterParticleAssociation>;
128 swap(a.m_obj, b.m_obj);
141#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
151struct std::hash<
edm4eic::MCRecoClusterParticleAssociation> {
153 return std::hash<edm4eic::MCRecoClusterParticleAssociationObj*>{}(obj.m_obj.get());
161#if defined(__clang__)
162 #pragma clang diagnostic push
163 #pragma clang diagnostic ignored "-Wunknown-warning-option"
164 #pragma clang diagnostic ignored "-Wdeprecated-redundant-constexpr-static-def"
165 #pragma clang diagnostic ignored "-Wdeprecated"
167 #pragma clang diagnostic pop
168#elif defined(__GNUC__)
169 #pragma GCC diagnostic push
170 #pragma GCC diagnostic ignored "-Wdeprecated"
172 #pragma GCC diagnostic pop
const podio::ObjectID getObjectID() const
Definition Cluster.cc:347
Definition MCRecoClusterParticleAssociationCollectionData.h:33
Definition MCRecoClusterParticleAssociationCollection.h:139
Definition MCRecoClusterParticleAssociation.h:48
constexpr bool operator!=(const MCRecoClusterParticleAssociation &other) const
Definition MCRecoClusterParticleAssociation.h:114
const podio::ObjectID getObjectID() const
Definition MCRecoClusterParticleAssociation.cc:81
friend void swap(MCRecoClusterParticleAssociation &a, MCRecoClusterParticleAssociation &b)
Definition MCRecoClusterParticleAssociation.h:126
MCRecoClusterParticleAssociation(const MCRecoClusterParticleAssociation &other) noexcept=default
copy constructor
friend class MCRecoClusterParticleAssociationCollectionIterator
Definition MCRecoClusterParticleAssociation.h:53
static MCRecoClusterParticleAssociation makeEmpty()
Definition MCRecoClusterParticleAssociation.cc:52
MCRecoClusterParticleAssociation & operator=(MCRecoClusterParticleAssociation other) &&=delete
friend class MutableMCRecoClusterParticleAssociation
Definition MCRecoClusterParticleAssociation.h:50
constexpr bool operator==(const MCRecoClusterParticleAssociation &other) const
Definition MCRecoClusterParticleAssociation.h:111
MutableMCRecoClusterParticleAssociation mutable_type
Definition MCRecoClusterParticleAssociation.h:57
void unlink()
disconnect from MCRecoClusterParticleAssociationObj instance
Definition MCRecoClusterParticleAssociation.h:109
MCRecoClusterParticleAssociation()=default
default constructor
int getSimID() const
Definition MCRecoClusterParticleAssociation.h:102
float getWeight() const
Access the weight of this association.
Definition MCRecoClusterParticleAssociation.cc:56
bool isAvailable() const
check whether the object is actually available
Definition MCRecoClusterParticleAssociation.cc:77
const edm4eic::Cluster getRec() const
Access the reference to the cluster.
Definition MCRecoClusterParticleAssociation.cc:58
MCRecoClusterParticleAssociation & operator=(MCRecoClusterParticleAssociation other) &
copy-assignment operator
Definition MCRecoClusterParticleAssociation.cc:26
static constexpr std::string_view typeName
Definition MCRecoClusterParticleAssociation.h:90
const edm4hep::MCParticle getSim() const
Access the reference to the Monte-Carlo particle.
Definition MCRecoClusterParticleAssociation.cc:65
int getRecID() const
Definition MCRecoClusterParticleAssociation.h:103
bool operator<(const MCRecoClusterParticleAssociation &other) const
Definition MCRecoClusterParticleAssociation.h:118
~MCRecoClusterParticleAssociation()=default
destructor
MCRecoClusterParticleAssociation(MCRecoClusterParticleAssociation &&other) noexcept=default
move constructor
friend class MCRecoClusterParticleAssociationCollection
Definition MCRecoClusterParticleAssociation.h:51
bool operator!=(const MutableMCRecoClusterParticleAssociation &other) const
Definition MCRecoClusterParticleAssociation.h:115
podio::ObjectID id() const
Definition MCRecoClusterParticleAssociation.h:120
MutableMCRecoClusterParticleAssociation clone(bool cloneRelations=true) const
Definition MCRecoClusterParticleAssociation.cc:31
MCRecoClusterParticleAssociationCollection collection_type
Definition MCRecoClusterParticleAssociation.h:58
Definition MCRecoClusterParticleAssociationObj.h:24
Definition MutableCluster.h:41
Definition MutableMCRecoClusterParticleAssociation.h:40
Definition ArrowMapper.cc:63
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition CalorimeterHit.cc:99
Definition CalorimeterHit.h:25
Definition CalorimeterHit.h:31
OrderKey getOrderKey(const edm4eic::CalorimeterHit &obj)
Definition CalorimeterHit.cc:146
std::size_t operator()(const edm4eic::MCRecoClusterParticleAssociation &obj) const
Definition MCRecoClusterParticleAssociation.h:152