3#ifndef EDM4EIC_MutableTrackClusterMatch_H
4#define EDM4EIC_MutableTrackClusterMatch_H
11#include "podio/utilities/MaybeSharedPtr.h"
16#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
17#include "nlohmann/json_fwd.hpp"
94 void unlink() { m_obj = podio::utils::MaybeSharedPtr<TrackClusterMatchObj>{
nullptr}; }
108 swap(a.m_obj, b.m_obj);
115 podio::utils::MaybeSharedPtr<TrackClusterMatchObj> m_obj{
nullptr};
118#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
119void to_json(nlohmann::json& j,
const MutableTrackClusterMatch& value);
Definition MutableTrackClusterMatch.h:36
friend void swap(MutableTrackClusterMatch &a, MutableTrackClusterMatch &b)
Definition MutableTrackClusterMatch.h:106
MutableTrackClusterMatch()
default constructor
Definition MutableTrackClusterMatch.cc:23
MutableTrackClusterMatch(const MutableTrackClusterMatch &other)=default
copy constructor
void unlink()
disconnect from TrackClusterMatchObj instance
Definition MutableTrackClusterMatch.h:94
friend class TrackClusterMatchCollection
Definition MutableTrackClusterMatch.h:38
const edm4eic::Track getTrack() const
Access the reference to the track.
Definition MutableTrackClusterMatch.cc:52
bool isAvailable() const
check whether the object is actually available
Definition MutableTrackClusterMatch.cc:82
podio::ObjectID id() const
Definition MutableTrackClusterMatch.h:102
const podio::ObjectID getObjectID() const
Definition MutableTrackClusterMatch.cc:89
friend class TrackClusterMatch
Definition MutableTrackClusterMatch.h:40
void setTrack(edm4eic::Track value)
Set the reference to the track.
Definition MutableTrackClusterMatch.cc:69
MutableTrackClusterMatch & operator=(MutableTrackClusterMatch other)
copy-assignment operator
Definition MutableTrackClusterMatch.cc:31
void setWeight(float value)
Set the weight of this association.
Definition MutableTrackClusterMatch.cc:60
bool operator<(const MutableTrackClusterMatch &other) const
Definition MutableTrackClusterMatch.h:100
MutableTrackClusterMatch clone() const
create a mutable deep-copy of the object with identical relations
Definition MutableTrackClusterMatch.cc:36
bool operator==(const MutableTrackClusterMatch &other) const
Definition MutableTrackClusterMatch.h:96
float getWeight() const
Access the weight of this association.
Definition MutableTrackClusterMatch.cc:43
~MutableTrackClusterMatch()=default
destructor
const edm4eic::Cluster getCluster() const
Access the reference to the cluster.
Definition MutableTrackClusterMatch.cc:45
void setCluster(edm4eic::Cluster value)
Set the reference to the cluster.
Definition MutableTrackClusterMatch.cc:62
Definition TrackClusterMatchCollection.h:95
Definition TrackClusterMatch.h:37
Definition TrackClusterMatchCollection.h:66
Definition CalorimeterHit.cc:18