3#ifndef EDM4EIC_MCRecoVertexParticleAssociation_H
4#define EDM4EIC_MCRecoVertexParticleAssociation_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"
28class MutableMCParticle;
34OrderKey
getOrderKey(
const edm4eic::MCRecoVertexParticleAssociation& obj);
86 static constexpr std::string_view
typeName =
"edm4eic::MCRecoVertexParticleAssociation";
101 const edm4hep::MCParticle
getSim()
const;
108 void unlink() { m_obj = podio::utils::MaybeSharedPtr<MCRecoVertexParticleAssociationObj>{
nullptr}; }
123 friend std::hash<MCRecoVertexParticleAssociation>;
127 swap(a.m_obj, b.m_obj);
135 podio::utils::MaybeSharedPtr<MCRecoVertexParticleAssociationObj> m_obj{
nullptr};
140#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
150struct std::hash<
edm4eic::MCRecoVertexParticleAssociation> {
152 return std::hash<edm4eic::MCRecoVertexParticleAssociationObj*>{}(obj.m_obj.get());
160#if defined(__clang__)
161#pragma clang diagnostic push
162#pragma clang diagnostic ignored "-Wunknown-warning-option"
163#pragma clang diagnostic ignored "-Wdeprecated-redundant-constexpr-static-def"
164#pragma clang diagnostic ignored "-Wdeprecated"
166#pragma clang diagnostic pop
167#elif defined(__GNUC__)
168#pragma GCC diagnostic push
169#pragma GCC diagnostic ignored "-Wdeprecated"
171#pragma GCC diagnostic pop
Definition MCRecoVertexParticleAssociationCollectionData.h:32
Definition MCRecoVertexParticleAssociationCollection.h:137
Definition MCRecoVertexParticleAssociation.h:47
bool operator<(const MCRecoVertexParticleAssociation &other) const
Definition MCRecoVertexParticleAssociation.h:117
const edm4hep::MCParticle getSim() const
Access the reference to the Monte-Carlo particle.
Definition MCRecoVertexParticleAssociation.cc:73
MCRecoVertexParticleAssociation()
default constructor
Definition MCRecoVertexParticleAssociation.cc:22
podio::ObjectID id() const
Definition MCRecoVertexParticleAssociation.h:119
bool operator!=(const MCRecoVertexParticleAssociation &other) const
Definition MCRecoVertexParticleAssociation.h:113
friend void swap(MCRecoVertexParticleAssociation &a, MCRecoVertexParticleAssociation &b)
Definition MCRecoVertexParticleAssociation.h:125
MutableMCRecoVertexParticleAssociation mutable_type
Definition MCRecoVertexParticleAssociation.h:56
MCRecoVertexParticleAssociation(const MCRecoVertexParticleAssociation &other)=default
copy constructor
float getWeight() const
Access the weight of this association.
Definition MCRecoVertexParticleAssociation.cc:64
MutableMCRecoVertexParticleAssociation clone(bool cloneRelations=true) const
Definition MCRecoVertexParticleAssociation.cc:37
MCRecoVertexParticleAssociation & operator=(MCRecoVertexParticleAssociation other) &&=delete
static constexpr std::string_view typeName
Definition MCRecoVertexParticleAssociation.h:86
friend class MCRecoVertexParticleAssociationCollectionIterator
Definition MCRecoVertexParticleAssociation.h:52
friend class MCRecoVertexParticleAssociationCollection
Definition MCRecoVertexParticleAssociation.h:50
friend class MutableMCRecoVertexParticleAssociation
Definition MCRecoVertexParticleAssociation.h:49
std::uint32_t getRecID() const
Access the Index of corresponding Vertex (position in Vertices array)
Definition MCRecoVertexParticleAssociation.cc:63
bool operator==(const MCRecoVertexParticleAssociation &other) const
Definition MCRecoVertexParticleAssociation.h:110
MCRecoVertexParticleAssociationCollection collection_type
Definition MCRecoVertexParticleAssociation.h:57
MCRecoVertexParticleAssociation & operator=(MCRecoVertexParticleAssociation other) &
copy-assignment operator
Definition MCRecoVertexParticleAssociation.cc:32
static MCRecoVertexParticleAssociation makeEmpty()
Definition MCRecoVertexParticleAssociation.cc:58
void unlink()
disconnect from MCRecoVertexParticleAssociationObj instance
Definition MCRecoVertexParticleAssociation.h:108
bool isAvailable() const
check whether the object is actually available
Definition MCRecoVertexParticleAssociation.cc:85
bool operator!=(const MutableMCRecoVertexParticleAssociation &other) const
Definition MCRecoVertexParticleAssociation.h:114
const podio::ObjectID getObjectID() const
Definition MCRecoVertexParticleAssociation.cc:89
std::uint32_t getSimID() const
Access the Index of corresponding MCParticle (position in MCParticles array)
Definition MCRecoVertexParticleAssociation.cc:62
~MCRecoVertexParticleAssociation()=default
destructor
const edm4eic::Vertex getRec() const
Access the reference to the vertex.
Definition MCRecoVertexParticleAssociation.cc:66
Definition MCRecoVertexParticleAssociationObj.h:24
Definition MutableMCRecoVertexParticleAssociation.h:39
Definition MutableVertex.h:38
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
std::size_t operator()(const edm4eic::MCRecoVertexParticleAssociation &obj) const
Definition MCRecoVertexParticleAssociation.h:151