3#ifndef EDM4EIC_MutableProtoCluster_H
4#define EDM4EIC_MutableProtoCluster_H
11#include "podio/RelationRange.h"
14#include "podio/utilities/MaybeSharedPtr.h"
18#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
19#include "nlohmann/json_fwd.hpp"
68 std::vector<edm4eic::CalorimeterHit>::const_iterator
hits_begin()
const;
69 std::vector<edm4eic::CalorimeterHit>::const_iterator
hits_end()
const;
70 podio::RelationRange<edm4eic::CalorimeterHit>
getHits()
const;
75 std::vector<float>::const_iterator
weights_end()
const;
76 podio::RelationRange<float>
getWeights()
const;
83 void unlink() { m_obj = podio::utils::MaybeSharedPtr<ProtoClusterObj>{
nullptr}; }
100 swap(a.m_obj, b.m_obj);
107 podio::utils::MaybeSharedPtr<ProtoClusterObj> m_obj{
nullptr};
110#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
111void to_json(nlohmann::json& j,
const MutableProtoCluster& value);
Definition CalorimeterHit.h:37
Definition MutableProtoCluster.h:31
friend class ProtoClusterCollection
Definition MutableProtoCluster.h:33
MutableProtoCluster clone(bool cloneRelations=true) const
Definition MutableProtoCluster.cc:27
bool operator==(const MutableProtoCluster &other) const
Definition MutableProtoCluster.h:85
MutableProtoCluster & operator=(MutableProtoCluster other)
copy-assignment operator
Definition MutableProtoCluster.cc:22
std::size_t weights_size() const
Definition MutableProtoCluster.cc:100
podio::ObjectID id() const
Definition MutableProtoCluster.h:94
bool operator<(const MutableProtoCluster &other) const
Definition MutableProtoCluster.h:92
void addToHits(const edm4eic::CalorimeterHit &)
Definition MutableProtoCluster.cc:47
friend void swap(MutableProtoCluster &a, MutableProtoCluster &b)
Definition MutableProtoCluster.h:98
std::vector< edm4eic::CalorimeterHit >::const_iterator hits_end() const
Definition MutableProtoCluster.cc:58
bool isAvailable() const
check whether the object is actually available
Definition MutableProtoCluster.cc:124
void addToWeights(const float &)
Definition MutableProtoCluster.cc:83
const podio::ObjectID getObjectID() const
Definition MutableProtoCluster.cc:128
bool operator!=(const MutableProtoCluster &other) const
Definition MutableProtoCluster.h:88
std::vector< float >::const_iterator weights_end() const
Definition MutableProtoCluster.cc:94
~MutableProtoCluster()=default
destructor
bool operator!=(const ProtoCluster &other) const
Definition MutableProtoCluster.h:89
friend class ProtoCluster
Definition MutableProtoCluster.h:35
podio::RelationRange< float > getWeights() const
Definition MutableProtoCluster.cc:111
std::vector< float >::const_iterator weights_begin() const
Definition MutableProtoCluster.cc:88
podio::RelationRange< edm4eic::CalorimeterHit > getHits() const
Definition MutableProtoCluster.cc:75
void unlink()
disconnect from ProtoClusterObj instance
Definition MutableProtoCluster.h:83
MutableProtoCluster()
default constructor
Definition MutableProtoCluster.cc:18
std::vector< edm4eic::CalorimeterHit >::const_iterator hits_begin() const
Definition MutableProtoCluster.cc:52
MutableProtoCluster(const MutableProtoCluster &other)=default
copy constructor
std::size_t hits_size() const
Definition MutableProtoCluster.cc:64
Definition ProtoClusterCollection.h:92
Definition ProtoCluster.h:33
Definition ProtoClusterCollection.h:63
Definition CalorimeterHit.cc:17