3#ifndef EDM4EIC_MutableTrackProtoClusterMatch_H
4#define EDM4EIC_MutableTrackProtoClusterMatch_H
11#include "podio/utilities/MaybeSharedPtr.h"
15#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
16#include "nlohmann/json_fwd.hpp"
95 void unlink() { m_obj = podio::utils::MaybeSharedPtr<TrackProtoClusterMatchObj>{
nullptr}; }
110 friend std::hash<MutableTrackProtoClusterMatch>;
114 swap(a.m_obj, b.m_obj);
124#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
134struct std::hash<
edm4eic::MutableTrackProtoClusterMatch> {
136 return std::hash<edm4eic::TrackProtoClusterMatchObj*>{}(obj.m_obj.get());
Definition MutableProtoCluster.h:35
Definition MutableTrack.h:40
Definition MutableTrackProtoClusterMatch.h:36
~MutableTrackProtoClusterMatch()=default
destructor
friend class TrackProtoClusterMatch
Definition MutableTrackProtoClusterMatch.h:40
bool isAvailable() const
check whether the object is actually available
Definition MutableTrackProtoClusterMatch.cc:73
TrackProtoClusterMatchCollection collection_type
Definition MutableTrackProtoClusterMatch.h:44
friend class TrackProtoClusterMatchMutableCollectionIterator
Definition MutableTrackProtoClusterMatch.h:39
float getWeight() const
Access the weight of this association.
Definition MutableTrackProtoClusterMatch.cc:39
const edm4eic::Track getFrom() const
Access the reference to the track.
Definition MutableTrackProtoClusterMatch.cc:41
podio::ObjectID id() const
Definition MutableTrackProtoClusterMatch.h:106
MutableTrackProtoClusterMatch(const MutableTrackProtoClusterMatch &other)=default
copy constructor
MutableTrackProtoClusterMatch & operator=(MutableTrackProtoClusterMatch other) &&=delete
TrackProtoClusterMatch object_type
Definition MutableTrackProtoClusterMatch.h:43
bool operator<(const MutableTrackProtoClusterMatch &other) const
Definition MutableTrackProtoClusterMatch.h:104
MutableTrackProtoClusterMatch & operator=(MutableTrackProtoClusterMatch other) &
copy-assignment operator
Definition MutableTrackProtoClusterMatch.cc:24
constexpr bool operator==(const MutableTrackProtoClusterMatch &other) const
Definition MutableTrackProtoClusterMatch.h:97
MutableTrackProtoClusterMatch()=default
default constructor
void setWeight(const float weight)
Set the weight of this association.
Definition MutableTrackProtoClusterMatch.cc:56
void setTo(const edm4eic::ProtoCluster &value)
Set the reference to the protocluster.
Definition MutableTrackProtoClusterMatch.cc:63
bool operator!=(const TrackProtoClusterMatch &other) const
Definition MutableTrackProtoClusterMatch.h:101
void unlink()
disconnect from TrackProtoClusterMatchObj instance
Definition MutableTrackProtoClusterMatch.h:95
friend class TrackProtoClusterMatchCollection
Definition MutableTrackProtoClusterMatch.h:38
MutableTrackProtoClusterMatch clone(bool cloneRelations=true) const
Definition MutableTrackProtoClusterMatch.cc:29
const edm4eic::ProtoCluster getTo() const
Access the reference to the protocluster.
Definition MutableTrackProtoClusterMatch.cc:48
void setFrom(const edm4eic::Track &value)
Set the reference to the track.
Definition MutableTrackProtoClusterMatch.cc:59
const podio::ObjectID getObjectID() const
Definition MutableTrackProtoClusterMatch.cc:77
constexpr bool operator!=(const MutableTrackProtoClusterMatch &other) const
Definition MutableTrackProtoClusterMatch.h:100
friend void swap(MutableTrackProtoClusterMatch &a, MutableTrackProtoClusterMatch &b)
Definition MutableTrackProtoClusterMatch.h:112
Definition ProtoCluster.h:43
Definition TrackProtoClusterMatchCollection.h:139
Definition TrackProtoClusterMatch.h:44
Definition TrackProtoClusterMatchObj.h:22
Definition ArrowMapper.cc:61
OrderKey getOrderKey(const edm4eic::CalorimeterHit &obj)
Definition CalorimeterHit.cc:146
std::size_t operator()(const edm4eic::MutableTrackProtoClusterMatch &obj) const
Definition MutableTrackProtoClusterMatch.h:135