3#ifndef EICD_MutableMCRecoVertexParticleAssociation_H
4#define EICD_MutableMCRecoVertexParticleAssociation_H
11#include "podio/ObjectID.h"
14#ifdef PODIO_JSON_OUTPUT
15#include "nlohmann/json.hpp"
25class MutableMCParticle;
69 const std::uint32_t&
getSimID()
const;
72 const std::uint32_t&
getRecID()
const;
81 const edm4hep::MCParticle
getSim()
const;
96 void setSim(edm4hep::MCParticle value);
118 swap(a.m_obj, b.m_obj);
125#ifdef PODIO_JSON_OUTPUT
126void to_json(nlohmann::json& j,
const MutableMCRecoVertexParticleAssociation& value);
Definition: MCRecoVertexParticleAssociationCollection.h:82
Definition: MCRecoVertexParticleAssociation.h:35
Definition: MCRecoVertexParticleAssociationCollection.h:57
Definition: MCRecoVertexParticleAssociationObj.h:24
Definition: MutableMCRecoVertexParticleAssociation.h:36
MutableMCRecoVertexParticleAssociation clone() const
create a mutable deep-copy of the object with identical relations
Definition: MutableMCRecoVertexParticleAssociation.cc:44
void setRecID(std::uint32_t value)
Set the Index of corresponding Vertex (position in Vertices array)
Definition: MutableMCRecoVertexParticleAssociation.cc:75
void setRec(eicd::Vertex value)
Set the reference to the vertex.
Definition: MutableMCRecoVertexParticleAssociation.cc:78
MutableMCRecoVertexParticleAssociation & operator=(MutableMCRecoVertexParticleAssociation other)
copy-assignment operator
Definition: MutableMCRecoVertexParticleAssociation.cc:33
friend class MCRecoVertexParticleAssociation
Definition: MutableMCRecoVertexParticleAssociation.h:40
void setWeight(float value)
Set the weight of this association.
Definition: MutableMCRecoVertexParticleAssociation.cc:76
~MutableMCRecoVertexParticleAssociation()
destructor
Definition: MutableMCRecoVertexParticleAssociation.cc:48
void unlink()
disconnect from MCRecoVertexParticleAssociationObj instance
Definition: MutableMCRecoVertexParticleAssociation.h:104
bool operator==(const MutableMCRecoVertexParticleAssociation &other) const
Definition: MutableMCRecoVertexParticleAssociation.h:106
friend void swap(MutableMCRecoVertexParticleAssociation &a, MutableMCRecoVertexParticleAssociation &b)
Definition: MutableMCRecoVertexParticleAssociation.h:116
const std::uint32_t & getSimID() const
Access the Index of corresponding MCParticle (position in MCParticles array)
Definition: MutableMCRecoVertexParticleAssociation.cc:55
void setSim(edm4hep::MCParticle value)
Set the reference to the Monte-Carlo particle.
Definition: MutableMCRecoVertexParticleAssociation.cc:85
const float & getWeight() const
Access the weight of this association.
Definition: MutableMCRecoVertexParticleAssociation.cc:57
void setSimID(std::uint32_t value)
Set the Index of corresponding MCParticle (position in MCParticles array)
Definition: MutableMCRecoVertexParticleAssociation.cc:74
unsigned int id() const
Definition: MutableMCRecoVertexParticleAssociation.h:112
const edm4hep::MCParticle getSim() const
Access the reference to the Monte-Carlo particle.
Definition: MutableMCRecoVertexParticleAssociation.cc:66
bool isAvailable() const
check whether the object is actually available
Definition: MutableMCRecoVertexParticleAssociation.cc:98
const eicd::Vertex getRec() const
Access the reference to the vertex.
Definition: MutableMCRecoVertexParticleAssociation.cc:59
MutableMCRecoVertexParticleAssociation()
default constructor
Definition: MutableMCRecoVertexParticleAssociation.cc:18
bool operator<(const MutableMCRecoVertexParticleAssociation &other) const
Definition: MutableMCRecoVertexParticleAssociation.h:110
const podio::ObjectID getObjectID() const
Definition: MutableMCRecoVertexParticleAssociation.cc:105
const std::uint32_t & getRecID() const
Access the Index of corresponding Vertex (position in Vertices array)
Definition: MutableMCRecoVertexParticleAssociation.cc:56
Definition: MCRecoClusterParticleAssociation.h:21
Definition: CalorimeterHit.cc:13