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