3#ifndef EDM4EIC_TrackClusterMatch_H
4#define EDM4EIC_TrackClusterMatch_H
9#include "podio/utilities/MaybeSharedPtr.h"
10#include "podio/detail/OrderKey.h"
15#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
16#include "nlohmann/json_fwd.hpp"
31OrderKey
getOrderKey(
const edm4eic::TrackClusterMatch& obj);
83 static constexpr std::string_view
typeName =
"edm4eic::TrackClusterMatch";
99 void unlink() { m_obj = podio::utils::MaybeSharedPtr<TrackClusterMatchObj>{
nullptr}; }
114 friend std::hash<TrackClusterMatch>;
118 swap(a.m_obj, b.m_obj);
123 explicit TrackClusterMatch(podio::utils::MaybeSharedPtr<TrackClusterMatchObj> obj);
126 podio::utils::MaybeSharedPtr<TrackClusterMatchObj> m_obj{
nullptr};
131#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
143 return std::hash<edm4eic::TrackClusterMatchObj*>{}(obj.m_obj.get());
151#if defined(__clang__)
152#pragma clang diagnostic push
153#pragma clang diagnostic ignored "-Wunknown-warning-option"
154#pragma clang diagnostic ignored "-Wdeprecated-redundant-constexpr-static-def"
155#pragma clang diagnostic ignored "-Wdeprecated"
157#pragma clang diagnostic pop
158#elif defined(__GNUC__)
159#pragma GCC diagnostic push
160#pragma GCC diagnostic ignored "-Wdeprecated"
162#pragma GCC diagnostic pop
Definition MutableCluster.h:40
Definition MutableTrackClusterMatch.h:36
Definition MutableTrack.h:40
Definition TrackClusterMatchCollectionData.h:32
Definition TrackClusterMatchCollection.h:137
Definition TrackClusterMatch.h:44
static TrackClusterMatch makeEmpty()
Definition TrackClusterMatch.cc:56
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:47
TrackClusterMatch & operator=(TrackClusterMatch other) &
copy-assignment operator
Definition TrackClusterMatch.cc:30
void unlink()
disconnect from TrackClusterMatchObj instance
Definition TrackClusterMatch.h:99
MutableTrackClusterMatch mutable_type
Definition TrackClusterMatch.h:53
bool operator<(const TrackClusterMatch &other) const
Definition TrackClusterMatch.h:108
MutableTrackClusterMatch clone(bool cloneRelations=true) const
Definition TrackClusterMatch.cc:35
bool operator==(const TrackClusterMatch &other) const
Definition TrackClusterMatch.h:101
TrackClusterMatch(const TrackClusterMatch &other)=default
copy constructor
friend class MutableTrackClusterMatch
Definition TrackClusterMatch.h:46
bool operator!=(const TrackClusterMatch &other) const
Definition TrackClusterMatch.h:104
TrackClusterMatch()
default constructor
Definition TrackClusterMatch.cc:22
float getWeight() const
Access the weight of this association.
Definition TrackClusterMatch.cc:60
static constexpr std::string_view typeName
Definition TrackClusterMatch.h:83
friend void swap(TrackClusterMatch &a, TrackClusterMatch &b)
Definition TrackClusterMatch.h:116
podio::ObjectID id() const
Definition TrackClusterMatch.h:110
friend class TrackClusterMatchCollectionIterator
Definition TrackClusterMatch.h:49
bool operator!=(const MutableTrackClusterMatch &other) const
Definition TrackClusterMatch.h:105
TrackClusterMatchCollection collection_type
Definition TrackClusterMatch.h:54
const podio::ObjectID getObjectID() const
Definition TrackClusterMatch.cc:85
TrackClusterMatch & operator=(TrackClusterMatch other) &&=delete
Definition TrackClusterMatchObj.h:22
Definition CalorimeterHit.cc:17
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition CalorimeterHit.cc:103
Definition CalorimeterHit.h:31
OrderKey getOrderKey(const edm4eic::CalorimeterHit &obj)
Definition CalorimeterHit.cc:150
std::size_t operator()(const edm4eic::TrackClusterMatch &obj) const
Definition TrackClusterMatch.h:142