3#ifndef EDM4EIC_MutableMCRecoTrackParticleAssociation_H
4#define EDM4EIC_MutableMCRecoTrackParticleAssociation_H
12#include "podio/utilities/MaybeSharedPtr.h"
17#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
18#include "nlohmann/json_fwd.hpp"
28class MutableMCParticle;
86 const edm4hep::MCParticle
getSim()
const;
101 void setSim(edm4hep::MCParticle value);
109 void unlink() { m_obj = podio::utils::MaybeSharedPtr<MCRecoTrackParticleAssociationObj>{
nullptr}; }
123 swap(a.m_obj, b.m_obj);
130 podio::utils::MaybeSharedPtr<MCRecoTrackParticleAssociationObj> m_obj{
nullptr};
133#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
134void to_json(nlohmann::json& j,
const MutableMCRecoTrackParticleAssociation& value);
Definition MCRecoTrackParticleAssociationCollection.h:95
Definition MCRecoTrackParticleAssociation.h:40
Definition MCRecoTrackParticleAssociationCollection.h:66
Definition MutableMCRecoTrackParticleAssociation.h:39
friend class MCRecoTrackParticleAssociationCollection
Definition MutableMCRecoTrackParticleAssociation.h:41
bool operator==(const MutableMCRecoTrackParticleAssociation &other) const
Definition MutableMCRecoTrackParticleAssociation.h:111
std::uint32_t getSimID() const
Access the Index of corresponding MCParticle (position in MCParticles array)
Definition MutableMCRecoTrackParticleAssociation.cc:45
const edm4hep::MCParticle getSim() const
Access the reference to the Monte-Carlo particle.
Definition MutableMCRecoTrackParticleAssociation.cc:56
podio::ObjectID id() const
Definition MutableMCRecoTrackParticleAssociation.h:117
std::uint32_t getRecID() const
Access the Index of corresponding Track (position in Tracks array)
Definition MutableMCRecoTrackParticleAssociation.cc:46
~MutableMCRecoTrackParticleAssociation()=default
destructor
void setSim(edm4hep::MCParticle value)
Set the reference to the Monte-Carlo particle.
Definition MutableMCRecoTrackParticleAssociation.cc:75
void setRecID(std::uint32_t value)
Set the Index of corresponding Track (position in Tracks array)
Definition MutableMCRecoTrackParticleAssociation.cc:65
const podio::ObjectID getObjectID() const
Definition MutableMCRecoTrackParticleAssociation.cc:95
friend void swap(MutableMCRecoTrackParticleAssociation &a, MutableMCRecoTrackParticleAssociation &b)
Definition MutableMCRecoTrackParticleAssociation.h:121
bool operator<(const MutableMCRecoTrackParticleAssociation &other) const
Definition MutableMCRecoTrackParticleAssociation.h:115
MutableMCRecoTrackParticleAssociation & operator=(MutableMCRecoTrackParticleAssociation other)
copy-assignment operator
Definition MutableMCRecoTrackParticleAssociation.cc:33
void unlink()
disconnect from MCRecoTrackParticleAssociationObj instance
Definition MutableMCRecoTrackParticleAssociation.h:109
void setRec(edm4eic::Track value)
Set the reference to the track.
Definition MutableMCRecoTrackParticleAssociation.cc:68
float getWeight() const
Access the weight of this association.
Definition MutableMCRecoTrackParticleAssociation.cc:47
MutableMCRecoTrackParticleAssociation(const MutableMCRecoTrackParticleAssociation &other)=default
copy constructor
friend class MCRecoTrackParticleAssociation
Definition MutableMCRecoTrackParticleAssociation.h:43
const edm4eic::Track getRec() const
Access the reference to the track.
Definition MutableMCRecoTrackParticleAssociation.cc:49
bool isAvailable() const
check whether the object is actually available
Definition MutableMCRecoTrackParticleAssociation.cc:88
MutableMCRecoTrackParticleAssociation clone() const
create a mutable deep-copy of the object with identical relations
Definition MutableMCRecoTrackParticleAssociation.cc:38
MutableMCRecoTrackParticleAssociation()
default constructor
Definition MutableMCRecoTrackParticleAssociation.cc:23
void setWeight(float value)
Set the weight of this association.
Definition MutableMCRecoTrackParticleAssociation.cc:66
void setSimID(std::uint32_t value)
Set the Index of corresponding MCParticle (position in MCParticles array)
Definition MutableMCRecoTrackParticleAssociation.cc:64
Definition CalorimeterHit.cc:18
Definition CalorimeterHit.h:21