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);
86 static constexpr std::string_view
typeName =
"edm4eic::TrackClusterMatch";
102 void unlink() { m_obj = podio::utils::MaybeSharedPtr<TrackClusterMatchObj>{
nullptr}; }
117 friend std::hash<TrackClusterMatch>;
121 swap(a.m_obj, b.m_obj);
126 explicit TrackClusterMatch(podio::utils::MaybeSharedPtr<TrackClusterMatchObj> obj);
129 podio::utils::MaybeSharedPtr<TrackClusterMatchObj> m_obj{
new TrackClusterMatchObj{}, podio::utils::MarkOwned};
134#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
146 return std::hash<edm4eic::TrackClusterMatchObj*>{}(obj.m_obj.get());
154#if defined(__clang__)
155 #pragma clang diagnostic push
156 #pragma clang diagnostic ignored "-Wunknown-warning-option"
157 #pragma clang diagnostic ignored "-Wdeprecated-redundant-constexpr-static-def"
158 #pragma clang diagnostic ignored "-Wdeprecated"
160 #pragma clang diagnostic pop
161#elif defined(__GNUC__)
162 #pragma GCC diagnostic push
163 #pragma GCC diagnostic ignored "-Wdeprecated"
165 #pragma GCC diagnostic pop
Definition MutableCluster.h:41
Definition MutableTrackClusterMatch.h:36
Definition MutableTrack.h:40
Definition TrackClusterMatchCollectionData.h:33
Definition TrackClusterMatchCollection.h:139
Definition TrackClusterMatch.h:44
static TrackClusterMatch makeEmpty()
Definition TrackClusterMatch.cc:52
constexpr bool operator!=(const TrackClusterMatch &other) const
Definition TrackClusterMatch.h:107
const edm4eic::Cluster getCluster() const
Access the reference to the cluster.
Definition TrackClusterMatch.cc:58
const edm4eic::Track getTrack() const
Access the reference to the track.
Definition TrackClusterMatch.cc:65
bool isAvailable() const
check whether the object is actually available
Definition TrackClusterMatch.cc:77
~TrackClusterMatch()=default
destructor
constexpr bool operator==(const TrackClusterMatch &other) const
Definition TrackClusterMatch.h:104
friend class TrackClusterMatchCollection
Definition TrackClusterMatch.h:47
TrackClusterMatch & operator=(TrackClusterMatch other) &
copy-assignment operator
Definition TrackClusterMatch.cc:26
void unlink()
disconnect from TrackClusterMatchObj instance
Definition TrackClusterMatch.h:102
MutableTrackClusterMatch mutable_type
Definition TrackClusterMatch.h:53
TrackClusterMatch(const TrackClusterMatch &other) noexcept=default
copy constructor
TrackClusterMatch()=default
default constructor
bool operator<(const TrackClusterMatch &other) const
Definition TrackClusterMatch.h:111
MutableTrackClusterMatch clone(bool cloneRelations=true) const
Definition TrackClusterMatch.cc:31
TrackClusterMatch(TrackClusterMatch &&other) noexcept=default
move constructor
friend class MutableTrackClusterMatch
Definition TrackClusterMatch.h:46
float getWeight() const
Access the weight of this association.
Definition TrackClusterMatch.cc:56
static constexpr std::string_view typeName
Definition TrackClusterMatch.h:86
friend void swap(TrackClusterMatch &a, TrackClusterMatch &b)
Definition TrackClusterMatch.h:119
podio::ObjectID id() const
Definition TrackClusterMatch.h:113
friend class TrackClusterMatchCollectionIterator
Definition TrackClusterMatch.h:49
bool operator!=(const MutableTrackClusterMatch &other) const
Definition TrackClusterMatch.h:108
TrackClusterMatchCollection collection_type
Definition TrackClusterMatch.h:54
const podio::ObjectID getObjectID() const
Definition TrackClusterMatch.cc:81
TrackClusterMatch & operator=(TrackClusterMatch other) &&=delete
Definition TrackClusterMatchObj.h:22
Definition ArrowMapper.cc:63
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition CalorimeterHit.cc:99
Definition CalorimeterHit.h:31
OrderKey getOrderKey(const edm4eic::CalorimeterHit &obj)
Definition CalorimeterHit.cc:146
std::size_t operator()(const edm4eic::TrackClusterMatch &obj) const
Definition TrackClusterMatch.h:145