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;
88 void unlink() { m_obj = podio::utils::MaybeSharedPtr<TrackClusterMatchObj>{
nullptr}; }
105 swap(a.m_obj, b.m_obj);
110 explicit TrackClusterMatch(podio::utils::MaybeSharedPtr<TrackClusterMatchObj> obj);
113 podio::utils::MaybeSharedPtr<TrackClusterMatchObj> m_obj{
nullptr};
116std::ostream&
operator<<(std::ostream& o,
const TrackClusterMatch& value);
118#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
119void to_json(nlohmann::json& j,
const TrackClusterMatch& value);
Definition MutableTrackClusterMatch.h:35
Definition TrackClusterMatchCollectionData.h:32
Definition TrackClusterMatchCollection.h:92
Definition TrackClusterMatchCollection.h:37
Definition TrackClusterMatch.h:37
static TrackClusterMatch makeEmpty()
Definition TrackClusterMatch.cc:56
TrackClusterMatch & operator=(TrackClusterMatch other)
copy-assignment operator
Definition TrackClusterMatch.cc:30
const edm4eic::Cluster getCluster() const
Access the reference to the cluster.
Definition TrackClusterMatch.cc:62
const edm4eic::Track getTrack() const
Access the reference to the track.
Definition TrackClusterMatch.cc:69
bool isAvailable() const
check whether the object is actually available
Definition TrackClusterMatch.cc:81
~TrackClusterMatch()=default
destructor
friend class TrackClusterMatchCollection
Definition TrackClusterMatch.h:40
void unlink()
disconnect from TrackClusterMatchObj instance
Definition TrackClusterMatch.h:88
bool operator<(const TrackClusterMatch &other) const
Definition TrackClusterMatch.h:97
MutableTrackClusterMatch clone(bool cloneRelations=true) const
Definition TrackClusterMatch.cc:35
bool operator==(const TrackClusterMatch &other) const
Definition TrackClusterMatch.h:90
TrackClusterMatch(const TrackClusterMatch &other)=default
copy constructor
friend class MutableTrackClusterMatch
Definition TrackClusterMatch.h:39
bool operator!=(const TrackClusterMatch &other) const
Definition TrackClusterMatch.h:93
TrackClusterMatch()
default constructor
Definition TrackClusterMatch.cc:22
float getWeight() const
Access the weight of this association.
Definition TrackClusterMatch.cc:60
friend void swap(TrackClusterMatch &a, TrackClusterMatch &b)
Definition TrackClusterMatch.h:103
podio::ObjectID id() const
Definition TrackClusterMatch.h:99
bool operator!=(const MutableTrackClusterMatch &other) const
Definition TrackClusterMatch.h:94
const podio::ObjectID getObjectID() const
Definition TrackClusterMatch.cc:85
Definition TrackClusterMatchObj.h:22
Definition CalorimeterHit.cc:17
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition CalorimeterHit.cc:103