3#ifndef EDM4EIC_TrackClusterMatch_H
4#define EDM4EIC_TrackClusterMatch_H
9#include "podio/utilities/MaybeSharedPtr.h"
14#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
15#include "nlohmann/json_fwd.hpp"
29class MutableTrackClusterMatch;
30class TrackClusterMatchCollection;
31class TrackClusterMatchCollectionData;
85 void unlink() { m_obj = podio::utils::MaybeSharedPtr<TrackClusterMatchObj>{
nullptr}; }
99 swap(a.m_obj, b.m_obj);
104 explicit TrackClusterMatch(podio::utils::MaybeSharedPtr<TrackClusterMatchObj> obj);
107 podio::utils::MaybeSharedPtr<TrackClusterMatchObj> m_obj{
nullptr};
110std::ostream&
operator<<(std::ostream& o,
const TrackClusterMatch& value);
112#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
113void to_json(nlohmann::json& j,
const TrackClusterMatch& value);
Definition MutableTrackClusterMatch.h:36
Definition TrackClusterMatchCollectionData.h:32
Definition TrackClusterMatchCollection.h:95
Definition TrackClusterMatchCollection.h:40
Definition TrackClusterMatch.h:37
static TrackClusterMatch makeEmpty()
Definition TrackClusterMatch.cc:44
MutableTrackClusterMatch clone() const
create a mutable deep-copy of the object with identical relations
Definition TrackClusterMatch.cc:36
TrackClusterMatch & operator=(TrackClusterMatch other)
copy-assignment operator
Definition TrackClusterMatch.cc:31
const edm4eic::Cluster getCluster() const
Access the reference to the cluster.
Definition TrackClusterMatch.cc:50
const edm4eic::Track getTrack() const
Access the reference to the track.
Definition TrackClusterMatch.cc:57
bool isAvailable() const
check whether the object is actually available
Definition TrackClusterMatch.cc:69
~TrackClusterMatch()=default
destructor
friend class TrackClusterMatchCollection
Definition TrackClusterMatch.h:40
void unlink()
disconnect from TrackClusterMatchObj instance
Definition TrackClusterMatch.h:85
bool operator<(const TrackClusterMatch &other) const
Definition TrackClusterMatch.h:91
bool operator==(const TrackClusterMatch &other) const
Definition TrackClusterMatch.h:87
TrackClusterMatch(const TrackClusterMatch &other)=default
copy constructor
friend class MutableTrackClusterMatch
Definition TrackClusterMatch.h:39
TrackClusterMatch()
default constructor
Definition TrackClusterMatch.cc:23
float getWeight() const
Access the weight of this association.
Definition TrackClusterMatch.cc:48
friend void swap(TrackClusterMatch &a, TrackClusterMatch &b)
Definition TrackClusterMatch.h:97
podio::ObjectID id() const
Definition TrackClusterMatch.h:93
const podio::ObjectID getObjectID() const
Definition TrackClusterMatch.cc:76
Definition TrackClusterMatchObj.h:22
Definition CalorimeterHit.cc:18
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition CalorimeterHit.cc:97