3#ifndef EDM4EIC_MCRecoCalorimeterHitAssociation_H
4#define EDM4EIC_MCRecoCalorimeterHitAssociation_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"
24class RawCalorimeterHit;
25class MutableRawCalorimeterHit;
26class SimCalorimeterHit;
27class MutableSimCalorimeterHit;
33OrderKey
getOrderKey(
const edm4eic::MCRecoCalorimeterHitAssociation& obj);
88 static constexpr std::string_view
typeName =
"edm4eic::MCRecoCalorimeterHitAssociation";
95 const edm4hep::RawCalorimeterHit
getRawHit()
const;
97 const edm4hep::SimCalorimeterHit
getSimHit()
const;
104 void unlink() { m_obj = podio::utils::MaybeSharedPtr<MCRecoCalorimeterHitAssociationObj>{
nullptr}; }
119 friend std::hash<MCRecoCalorimeterHitAssociation>;
123 swap(a.m_obj, b.m_obj);
136#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
146struct std::hash<
edm4eic::MCRecoCalorimeterHitAssociation> {
148 return std::hash<edm4eic::MCRecoCalorimeterHitAssociationObj*>{}(obj.m_obj.get());
156#if defined(__clang__)
157 #pragma clang diagnostic push
158 #pragma clang diagnostic ignored "-Wunknown-warning-option"
159 #pragma clang diagnostic ignored "-Wdeprecated-redundant-constexpr-static-def"
160 #pragma clang diagnostic ignored "-Wdeprecated"
162 #pragma clang diagnostic pop
163#elif defined(__GNUC__)
164 #pragma GCC diagnostic push
165 #pragma GCC diagnostic ignored "-Wdeprecated"
167 #pragma GCC diagnostic pop
Definition MCRecoCalorimeterHitAssociationCollectionData.h:33
Definition MCRecoCalorimeterHitAssociationCollection.h:139
Definition MCRecoCalorimeterHitAssociation.h:46
MCRecoCalorimeterHitAssociation(const MCRecoCalorimeterHitAssociation &other) noexcept=default
copy constructor
MutableMCRecoCalorimeterHitAssociation mutable_type
Definition MCRecoCalorimeterHitAssociation.h:55
static constexpr std::string_view typeName
Definition MCRecoCalorimeterHitAssociation.h:88
bool operator<(const MCRecoCalorimeterHitAssociation &other) const
Definition MCRecoCalorimeterHitAssociation.h:113
bool isAvailable() const
check whether the object is actually available
Definition MCRecoCalorimeterHitAssociation.cc:77
void unlink()
disconnect from MCRecoCalorimeterHitAssociationObj instance
Definition MCRecoCalorimeterHitAssociation.h:104
MCRecoCalorimeterHitAssociation & operator=(MCRecoCalorimeterHitAssociation other) &
copy-assignment operator
Definition MCRecoCalorimeterHitAssociation.cc:26
bool operator!=(const MutableMCRecoCalorimeterHitAssociation &other) const
Definition MCRecoCalorimeterHitAssociation.h:110
friend void swap(MCRecoCalorimeterHitAssociation &a, MCRecoCalorimeterHitAssociation &b)
Definition MCRecoCalorimeterHitAssociation.h:121
MutableMCRecoCalorimeterHitAssociation clone(bool cloneRelations=true) const
Definition MCRecoCalorimeterHitAssociation.cc:31
const podio::ObjectID getObjectID() const
Definition MCRecoCalorimeterHitAssociation.cc:81
MCRecoCalorimeterHitAssociationCollection collection_type
Definition MCRecoCalorimeterHitAssociation.h:56
MCRecoCalorimeterHitAssociation & operator=(MCRecoCalorimeterHitAssociation other) &&=delete
MCRecoCalorimeterHitAssociation(MCRecoCalorimeterHitAssociation &&other) noexcept=default
move constructor
MCRecoCalorimeterHitAssociation()=default
default constructor
const edm4hep::SimCalorimeterHit getSimHit() const
Access the reference to the simulated calorimeter hit.
Definition MCRecoCalorimeterHitAssociation.cc:65
const edm4hep::RawCalorimeterHit getRawHit() const
Access the reference to the digitized calorimeter hit.
Definition MCRecoCalorimeterHitAssociation.cc:58
podio::ObjectID id() const
Definition MCRecoCalorimeterHitAssociation.h:115
static MCRecoCalorimeterHitAssociation makeEmpty()
Definition MCRecoCalorimeterHitAssociation.cc:52
~MCRecoCalorimeterHitAssociation()=default
destructor
constexpr bool operator==(const MCRecoCalorimeterHitAssociation &other) const
Definition MCRecoCalorimeterHitAssociation.h:106
constexpr bool operator!=(const MCRecoCalorimeterHitAssociation &other) const
Definition MCRecoCalorimeterHitAssociation.h:109
friend class MCRecoCalorimeterHitAssociationCollection
Definition MCRecoCalorimeterHitAssociation.h:49
friend class MCRecoCalorimeterHitAssociationCollectionIterator
Definition MCRecoCalorimeterHitAssociation.h:51
friend class MutableMCRecoCalorimeterHitAssociation
Definition MCRecoCalorimeterHitAssociation.h:48
float getWeight() const
Access the weight of this association.
Definition MCRecoCalorimeterHitAssociation.cc:56
Definition MCRecoCalorimeterHitAssociationObj.h:22
Definition MutableMCRecoCalorimeterHitAssociation.h:38
Definition ArrowMapper.cc:63
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition CalorimeterHit.cc:99
Definition CalorimeterHit.h:25
Definition CalorimeterHit.h:31
OrderKey getOrderKey(const edm4eic::CalorimeterHit &obj)
Definition CalorimeterHit.cc:146
std::size_t operator()(const edm4eic::MCRecoCalorimeterHitAssociation &obj) const
Definition MCRecoCalorimeterHitAssociation.h:147