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"
21class TrackClusterMatchCollection;
82 [[deprecated(
"use getWeight instead")]]
97 void unlink() { m_obj = podio::utils::MaybeSharedPtr<TrackClusterMatchObj>{
nullptr}; }
114 swap(a.m_obj, b.m_obj);
121 podio::utils::MaybeSharedPtr<TrackClusterMatchObj> m_obj{
nullptr};
124#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
125void to_json(nlohmann::json& j,
const MutableTrackClusterMatch& value);
Definition MutableTrackClusterMatch.h:36
friend void swap(MutableTrackClusterMatch &a, MutableTrackClusterMatch &b)
Definition MutableTrackClusterMatch.h:112
MutableTrackClusterMatch()
default constructor
Definition MutableTrackClusterMatch.cc:20
MutableTrackClusterMatch(const MutableTrackClusterMatch &other)=default
copy constructor
void unlink()
disconnect from TrackClusterMatchObj instance
Definition MutableTrackClusterMatch.h:97
void setTrack(const edm4eic::Track &value)
Set the reference to the track.
Definition MutableTrackClusterMatch.cc:68
bool operator!=(const TrackClusterMatch &other) const
Definition MutableTrackClusterMatch.h:103
void setCluster(const edm4eic::Cluster &value)
Set the reference to the cluster.
Definition MutableTrackClusterMatch.cc:64
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:78
podio::ObjectID id() const
Definition MutableTrackClusterMatch.h:108
const podio::ObjectID getObjectID() const
Definition MutableTrackClusterMatch.cc:82
friend class TrackClusterMatch
Definition MutableTrackClusterMatch.h:40
bool operator!=(const MutableTrackClusterMatch &other) const
Definition MutableTrackClusterMatch.h:102
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:106
bool operator==(const MutableTrackClusterMatch &other) const
Definition MutableTrackClusterMatch.h:99
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:91
Definition TrackClusterMatch.h:44
Definition TrackClusterMatchCollection.h:62
Definition CalorimeterHit.cc:17
OrderKey getOrderKey(const edm4eic::CalorimeterHit &obj)
Definition CalorimeterHit.cc:150