3#ifndef EICD_MCRecoParticleAssociation_H
4#define EICD_MCRecoParticleAssociation_H
9#include "podio/ObjectID.h"
12#ifdef PODIO_JSON_OUTPUT
13#include "nlohmann/json.hpp"
18class ReconstructedParticle;
19class MutableReconstructedParticle;
23class MutableMCParticle;
29class MutableMCRecoParticleAssociation;
65 const std::uint32_t&
getSimID()
const;
68 const std::uint32_t&
getRecID()
const;
77 const edm4hep::MCParticle
getSim()
const;
98 swap(a.m_obj, b.m_obj);
105std::ostream&
operator<<(std::ostream& o,
const MCRecoParticleAssociation& value);
107#ifdef PODIO_JSON_OUTPUT
108void to_json(nlohmann::json& j,
const MCRecoParticleAssociation& value);
Definition: MCRecoParticleAssociationCollection.h:82
Definition: MCRecoParticleAssociationCollection.h:35
Definition: MCRecoParticleAssociation.h:35
friend void swap(MCRecoParticleAssociation &a, MCRecoParticleAssociation &b)
Definition: MCRecoParticleAssociation.h:96
const podio::ObjectID getObjectID() const
Definition: MCRecoParticleAssociation.cc:84
void unlink()
disconnect from MCRecoParticleAssociationObj instance
Definition: MCRecoParticleAssociation.h:84
const eicd::ReconstructedParticle getRec() const
Access the reference to the reconstructed particle.
Definition: MCRecoParticleAssociation.cc:58
const float & getWeight() const
Access the weight of this association.
Definition: MCRecoParticleAssociation.cc:56
const edm4hep::MCParticle getSim() const
Access the reference to the Monte-Carlo particle.
Definition: MCRecoParticleAssociation.cc:65
const std::uint32_t & getRecID() const
Access the Index of corresponding ReconstructedParticle (position in ReconstructedParticles array)
Definition: MCRecoParticleAssociation.cc:55
MutableMCRecoParticleAssociation clone() const
create a mutable deep-copy of the object with identical relations
Definition: MCRecoParticleAssociation.cc:44
bool operator==(const MCRecoParticleAssociation &other) const
Definition: MCRecoParticleAssociation.h:86
MCRecoParticleAssociation & operator=(MCRecoParticleAssociation other)
copy-assignment operator
Definition: MCRecoParticleAssociation.cc:33
MCRecoParticleAssociation()
default constructor
Definition: MCRecoParticleAssociation.cc:18
unsigned int id() const
Definition: MCRecoParticleAssociation.h:92
bool operator<(const MCRecoParticleAssociation &other) const
Definition: MCRecoParticleAssociation.h:90
bool isAvailable() const
check whether the object is actually available
Definition: MCRecoParticleAssociation.cc:77
~MCRecoParticleAssociation()
destructor
Definition: MCRecoParticleAssociation.cc:48
const std::uint32_t & getSimID() const
Access the Index of corresponding MCParticle (position in MCParticles array)
Definition: MCRecoParticleAssociation.cc:54
Definition: MCRecoParticleAssociationObj.h:24
Definition: MutableMCRecoParticleAssociation.h:36
Definition: ReconstructedParticle.h:42
Definition: MCRecoClusterParticleAssociation.h:21
Definition: CalorimeterHit.cc:13
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition: CalorimeterHit.cc:93