3#ifndef EDM4EIC_MutableTrackClusterMatch_H
4#define EDM4EIC_MutableTrackClusterMatch_H
11#include "podio/utilities/MaybeSharedPtr.h"
15#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
16#include "nlohmann/json_fwd.hpp"
81 [[deprecated(
"use getWeight instead")]]
96 void unlink() { m_obj = podio::utils::MaybeSharedPtr<TrackClusterMatchObj>{
nullptr}; }
113 swap(a.m_obj, b.m_obj);
120 podio::utils::MaybeSharedPtr<TrackClusterMatchObj> m_obj{
nullptr};
123#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
124void to_json(nlohmann::json& j,
const MutableTrackClusterMatch& value);
Definition MutableTrackClusterMatch.h:35
friend void swap(MutableTrackClusterMatch &a, MutableTrackClusterMatch &b)
Definition MutableTrackClusterMatch.h:111
MutableTrackClusterMatch()
default constructor
Definition MutableTrackClusterMatch.cc:20
MutableTrackClusterMatch(const MutableTrackClusterMatch &other)=default
copy constructor
void unlink()
disconnect from TrackClusterMatchObj instance
Definition MutableTrackClusterMatch.h:96
void setTrack(const edm4eic::Track &value)
Set the reference to the track.
Definition MutableTrackClusterMatch.cc:69
bool operator!=(const TrackClusterMatch &other) const
Definition MutableTrackClusterMatch.h:102
void setCluster(const edm4eic::Cluster &value)
Set the reference to the cluster.
Definition MutableTrackClusterMatch.cc:64
friend class TrackClusterMatchCollection
Definition MutableTrackClusterMatch.h:37
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:80
podio::ObjectID id() const
Definition MutableTrackClusterMatch.h:107
const podio::ObjectID getObjectID() const
Definition MutableTrackClusterMatch.cc:84
friend class TrackClusterMatch
Definition MutableTrackClusterMatch.h:39
bool operator!=(const MutableTrackClusterMatch &other) const
Definition MutableTrackClusterMatch.h:101
MutableTrackClusterMatch & operator=(MutableTrackClusterMatch other)
copy-assignment operator
Definition MutableTrackClusterMatch.cc:28
void setWeight(float value)
Set the weight of this association.
Definition MutableTrackClusterMatch.cc:60
bool operator<(const MutableTrackClusterMatch &other) const
Definition MutableTrackClusterMatch.h:105
bool operator==(const MutableTrackClusterMatch &other) const
Definition MutableTrackClusterMatch.h:98
float getWeight() const
Access the weight of this association.
Definition MutableTrackClusterMatch.cc:43
~MutableTrackClusterMatch()=default
destructor
float & weight()
Get reference to weight of this association.
Definition MutableTrackClusterMatch.cc:62
MutableTrackClusterMatch clone(bool cloneRelations=true) const
Definition MutableTrackClusterMatch.cc:33
const edm4eic::Cluster getCluster() const
Access the reference to the cluster.
Definition MutableTrackClusterMatch.cc:45
Definition TrackClusterMatchCollection.h:92
Definition TrackClusterMatch.h:37
Definition TrackClusterMatchCollection.h:63
Definition CalorimeterHit.cc:17