3#ifndef EDM4EIC_TrackProtoClusterMatch_H
4#define EDM4EIC_TrackProtoClusterMatch_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::TrackProtoClusterMatch& obj);
83 static constexpr std::string_view
typeName =
"edm4eic::TrackProtoClusterMatch";
99 void unlink() { m_obj = podio::utils::MaybeSharedPtr<TrackProtoClusterMatchObj>{
nullptr}; }
114 friend std::hash<TrackProtoClusterMatch>;
118 swap(a.m_obj, b.m_obj);
126 podio::utils::MaybeSharedPtr<TrackProtoClusterMatchObj> m_obj{
nullptr};
131#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
141struct std::hash<
edm4eic::TrackProtoClusterMatch> {
143 return std::hash<edm4eic::TrackProtoClusterMatchObj*>{}(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 MutableProtoCluster.h:35
Definition MutableTrack.h:40
Definition MutableTrackProtoClusterMatch.h:36
Definition ProtoCluster.h:43
Definition TrackProtoClusterMatchCollectionData.h:32
Definition TrackProtoClusterMatchCollection.h:137
Definition TrackProtoClusterMatch.h:44
~TrackProtoClusterMatch()=default
destructor
friend void swap(TrackProtoClusterMatch &a, TrackProtoClusterMatch &b)
Definition TrackProtoClusterMatch.h:116
float getWeight() const
Access the weight of this association.
Definition TrackProtoClusterMatch.cc:60
static TrackProtoClusterMatch makeEmpty()
Definition TrackProtoClusterMatch.cc:56
friend class TrackProtoClusterMatchCollectionIterator
Definition TrackProtoClusterMatch.h:49
static constexpr std::string_view typeName
Definition TrackProtoClusterMatch.h:83
TrackProtoClusterMatch(const TrackProtoClusterMatch &other)=default
copy constructor
const podio::ObjectID getObjectID() const
Definition TrackProtoClusterMatch.cc:85
bool isAvailable() const
check whether the object is actually available
Definition TrackProtoClusterMatch.cc:81
bool operator!=(const MutableTrackProtoClusterMatch &other) const
Definition TrackProtoClusterMatch.h:105
TrackProtoClusterMatch & operator=(TrackProtoClusterMatch other) &
copy-assignment operator
Definition TrackProtoClusterMatch.cc:30
bool operator<(const TrackProtoClusterMatch &other) const
Definition TrackProtoClusterMatch.h:108
const edm4eic::Track getFrom() const
Access the reference to the track.
Definition TrackProtoClusterMatch.cc:62
TrackProtoClusterMatch()
default constructor
Definition TrackProtoClusterMatch.cc:22
friend class MutableTrackProtoClusterMatch
Definition TrackProtoClusterMatch.h:46
TrackProtoClusterMatchCollection collection_type
Definition TrackProtoClusterMatch.h:54
TrackProtoClusterMatch & operator=(TrackProtoClusterMatch other) &&=delete
const edm4eic::ProtoCluster getTo() const
Access the reference to the protocluster.
Definition TrackProtoClusterMatch.cc:69
void unlink()
disconnect from TrackProtoClusterMatchObj instance
Definition TrackProtoClusterMatch.h:99
bool operator!=(const TrackProtoClusterMatch &other) const
Definition TrackProtoClusterMatch.h:104
friend class TrackProtoClusterMatchCollection
Definition TrackProtoClusterMatch.h:47
bool operator==(const TrackProtoClusterMatch &other) const
Definition TrackProtoClusterMatch.h:101
podio::ObjectID id() const
Definition TrackProtoClusterMatch.h:110
MutableTrackProtoClusterMatch clone(bool cloneRelations=true) const
Definition TrackProtoClusterMatch.cc:35
MutableTrackProtoClusterMatch mutable_type
Definition TrackProtoClusterMatch.h:53
Definition TrackProtoClusterMatchObj.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::TrackProtoClusterMatch &obj) const
Definition TrackProtoClusterMatch.h:142