3#ifndef EDM4EIC_MCRecoParticleAssociation_H
4#define EDM4EIC_MCRecoParticleAssociation_H
10#include "podio/utilities/MaybeSharedPtr.h"
15#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
16#include "nlohmann/json_fwd.hpp"
21class ReconstructedParticle;
22class MutableReconstructedParticle;
26class MutableMCParticle;
32class MutableMCRecoParticleAssociation;
33class MCRecoParticleAssociationCollection;
34class MCRecoParticleAssociationCollectionData;
87 const edm4hep::MCParticle
getSim()
const;
94 void unlink() { m_obj = podio::utils::MaybeSharedPtr<MCRecoParticleAssociationObj>{
nullptr}; }
108 swap(a.m_obj, b.m_obj);
116 podio::utils::MaybeSharedPtr<MCRecoParticleAssociationObj> m_obj{
nullptr};
119std::ostream&
operator<<(std::ostream& o,
const MCRecoParticleAssociation& value);
121#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
122void to_json(nlohmann::json& j,
const MCRecoParticleAssociation& value);
Definition MCRecoParticleAssociationCollectionData.h:32
Definition MCRecoParticleAssociationCollection.h:95
Definition MCRecoParticleAssociationCollection.h:40
Definition MCRecoParticleAssociation.h:40
friend class MutableMCRecoParticleAssociation
Definition MCRecoParticleAssociation.h:42
friend void swap(MCRecoParticleAssociation &a, MCRecoParticleAssociation &b)
Definition MCRecoParticleAssociation.h:106
bool operator<(const MCRecoParticleAssociation &other) const
Definition MCRecoParticleAssociation.h:100
MutableMCRecoParticleAssociation clone() const
create a mutable deep-copy of the object with identical relations
Definition MCRecoParticleAssociation.cc:38
const podio::ObjectID getObjectID() const
Definition MCRecoParticleAssociation.cc:80
const edm4eic::ReconstructedParticle getRec() const
Access the reference to the reconstructed particle.
Definition MCRecoParticleAssociation.cc:54
const edm4hep::MCParticle getSim() const
Access the reference to the Monte-Carlo particle.
Definition MCRecoParticleAssociation.cc:61
bool operator==(const MCRecoParticleAssociation &other) const
Definition MCRecoParticleAssociation.h:96
std::uint32_t getSimID() const
Access the Index of corresponding MCParticle (position in MCParticles array)
Definition MCRecoParticleAssociation.cc:50
void unlink()
disconnect from MCRecoParticleAssociationObj instance
Definition MCRecoParticleAssociation.h:94
~MCRecoParticleAssociation()=default
destructor
bool isAvailable() const
check whether the object is actually available
Definition MCRecoParticleAssociation.cc:73
MCRecoParticleAssociation(const MCRecoParticleAssociation &other)=default
copy constructor
float getWeight() const
Access the weight of this association.
Definition MCRecoParticleAssociation.cc:52
std::uint32_t getRecID() const
Access the Index of corresponding ReconstructedParticle (position in ReconstructedParticles array)
Definition MCRecoParticleAssociation.cc:51
static MCRecoParticleAssociation makeEmpty()
Definition MCRecoParticleAssociation.cc:46
MCRecoParticleAssociation()
default constructor
Definition MCRecoParticleAssociation.cc:23
MCRecoParticleAssociation & operator=(MCRecoParticleAssociation other)
copy-assignment operator
Definition MCRecoParticleAssociation.cc:33
friend class MCRecoParticleAssociationCollection
Definition MCRecoParticleAssociation.h:43
podio::ObjectID id() const
Definition MCRecoParticleAssociation.h:102
Definition MCRecoParticleAssociationObj.h:24
Definition MutableMCRecoParticleAssociation.h:39
Definition ReconstructedParticle.h:47
Definition CalorimeterHit.cc:18
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition CalorimeterHit.cc:97
Definition CalorimeterHit.h:21