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);
87 static constexpr std::string_view
typeName =
"edm4eic::MCRecoClusterParticleAssociation";
96 const edm4hep::MCParticle
getSim()
const;
99 [[deprecated(
"use getSim().getObjectID().index instead")]]
int getSimID()
const {
return getSim().getObjectID().index; }
106 void unlink() { m_obj = podio::utils::MaybeSharedPtr<MCRecoClusterParticleAssociationObj>{
nullptr}; }
121 friend std::hash<MCRecoClusterParticleAssociation>;
125 swap(a.m_obj, b.m_obj);
138#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
148struct std::hash<
edm4eic::MCRecoClusterParticleAssociation> {
150 return std::hash<edm4eic::MCRecoClusterParticleAssociationObj*>{}(obj.m_obj.get());
158#if defined(__clang__)
159 #pragma clang diagnostic push
160 #pragma clang diagnostic ignored "-Wunknown-warning-option"
161 #pragma clang diagnostic ignored "-Wdeprecated-redundant-constexpr-static-def"
162 #pragma clang diagnostic ignored "-Wdeprecated"
164 #pragma clang diagnostic pop
165#elif defined(__GNUC__)
166 #pragma GCC diagnostic push
167 #pragma GCC diagnostic ignored "-Wdeprecated"
169 #pragma GCC diagnostic pop
const podio::ObjectID getObjectID() const
Definition Cluster.cc:337
Definition MCRecoClusterParticleAssociationCollectionData.h:33
Definition MCRecoClusterParticleAssociationCollection.h:138
Definition MCRecoClusterParticleAssociation.h:48
const podio::ObjectID getObjectID() const
Definition MCRecoClusterParticleAssociation.cc:81
friend void swap(MCRecoClusterParticleAssociation &a, MCRecoClusterParticleAssociation &b)
Definition MCRecoClusterParticleAssociation.h:123
friend class MCRecoClusterParticleAssociationCollectionIterator
Definition MCRecoClusterParticleAssociation.h:53
static MCRecoClusterParticleAssociation makeEmpty()
Definition MCRecoClusterParticleAssociation.cc:52
MCRecoClusterParticleAssociation(const MCRecoClusterParticleAssociation &other)=default
copy constructor
MCRecoClusterParticleAssociation & operator=(MCRecoClusterParticleAssociation other) &&=delete
friend class MutableMCRecoClusterParticleAssociation
Definition MCRecoClusterParticleAssociation.h:50
MutableMCRecoClusterParticleAssociation mutable_type
Definition MCRecoClusterParticleAssociation.h:57
bool operator==(const MCRecoClusterParticleAssociation &other) const
Definition MCRecoClusterParticleAssociation.h:108
void unlink()
disconnect from MCRecoClusterParticleAssociationObj instance
Definition MCRecoClusterParticleAssociation.h:106
MCRecoClusterParticleAssociation()=default
default constructor
int getSimID() const
Definition MCRecoClusterParticleAssociation.h:99
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:87
const edm4hep::MCParticle getSim() const
Access the reference to the Monte-Carlo particle.
Definition MCRecoClusterParticleAssociation.cc:65
int getRecID() const
Definition MCRecoClusterParticleAssociation.h:100
bool operator<(const MCRecoClusterParticleAssociation &other) const
Definition MCRecoClusterParticleAssociation.h:115
~MCRecoClusterParticleAssociation()=default
destructor
friend class MCRecoClusterParticleAssociationCollection
Definition MCRecoClusterParticleAssociation.h:51
bool operator!=(const MutableMCRecoClusterParticleAssociation &other) const
Definition MCRecoClusterParticleAssociation.h:112
podio::ObjectID id() const
Definition MCRecoClusterParticleAssociation.h:117
MutableMCRecoClusterParticleAssociation clone(bool cloneRelations=true) const
Definition MCRecoClusterParticleAssociation.cc:31
bool operator!=(const MCRecoClusterParticleAssociation &other) const
Definition MCRecoClusterParticleAssociation.h:111
MCRecoClusterParticleAssociationCollection collection_type
Definition MCRecoClusterParticleAssociation.h:58
Definition MCRecoClusterParticleAssociationObj.h:24
Definition MutableCluster.h:40
Definition MutableMCRecoClusterParticleAssociation.h:40
Definition CalorimeterHit.cc:17
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:149