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