3#ifndef EDM4EIC_MutableMCRecoCalorimeterHitAssociation_H
4#define EDM4EIC_MutableMCRecoCalorimeterHitAssociation_H
11#include "podio/utilities/MaybeSharedPtr.h"
15#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
16#include "nlohmann/json_fwd.hpp"
24class RawCalorimeterHit;
25class MutableRawCalorimeterHit;
26class SimCalorimeterHit;
27class MutableSimCalorimeterHit;
76 const edm4hep::RawCalorimeterHit
getRawHit()
const;
78 const edm4hep::SimCalorimeterHit
getSimHit()
const;
87 void setRawHit(
const edm4hep::RawCalorimeterHit& value);
89 void setSimHit(
const edm4hep::SimCalorimeterHit& value);
97 void unlink() { m_obj = podio::utils::MaybeSharedPtr<MCRecoCalorimeterHitAssociationObj>{
nullptr}; }
112 friend std::hash<MutableMCRecoCalorimeterHitAssociation>;
116 swap(a.m_obj, b.m_obj);
126#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
136struct std::hash<
edm4eic::MutableMCRecoCalorimeterHitAssociation> {
138 return std::hash<edm4eic::MCRecoCalorimeterHitAssociationObj*>{}(obj.m_obj.get());
Definition MCRecoCalorimeterHitAssociationCollection.h:139
Definition MCRecoCalorimeterHitAssociation.h:46
Definition MCRecoCalorimeterHitAssociationObj.h:22
Definition MutableMCRecoCalorimeterHitAssociation.h:38
constexpr bool operator==(const MutableMCRecoCalorimeterHitAssociation &other) const
Definition MutableMCRecoCalorimeterHitAssociation.h:99
friend class MCRecoCalorimeterHitAssociationMutableCollectionIterator
Definition MutableMCRecoCalorimeterHitAssociation.h:41
MutableMCRecoCalorimeterHitAssociation clone(bool cloneRelations=true) const
Definition MutableMCRecoCalorimeterHitAssociation.cc:29
MCRecoCalorimeterHitAssociationCollection collection_type
Definition MutableMCRecoCalorimeterHitAssociation.h:46
const podio::ObjectID getObjectID() const
Definition MutableMCRecoCalorimeterHitAssociation.cc:77
MutableMCRecoCalorimeterHitAssociation & operator=(MutableMCRecoCalorimeterHitAssociation other) &&=delete
MutableMCRecoCalorimeterHitAssociation()=default
default constructor
constexpr bool operator!=(const MutableMCRecoCalorimeterHitAssociation &other) const
Definition MutableMCRecoCalorimeterHitAssociation.h:102
MutableMCRecoCalorimeterHitAssociation & operator=(MutableMCRecoCalorimeterHitAssociation other) &
copy-assignment operator
Definition MutableMCRecoCalorimeterHitAssociation.cc:24
MCRecoCalorimeterHitAssociation object_type
Definition MutableMCRecoCalorimeterHitAssociation.h:45
friend void swap(MutableMCRecoCalorimeterHitAssociation &a, MutableMCRecoCalorimeterHitAssociation &b)
Definition MutableMCRecoCalorimeterHitAssociation.h:114
void setRawHit(const edm4hep::RawCalorimeterHit &value)
Set the reference to the digitized calorimeter hit.
Definition MutableMCRecoCalorimeterHitAssociation.cc:59
const edm4hep::SimCalorimeterHit getSimHit() const
Access the reference to the simulated calorimeter hit.
Definition MutableMCRecoCalorimeterHitAssociation.cc:48
void setSimHit(const edm4hep::SimCalorimeterHit &value)
Set the reference to the simulated calorimeter hit.
Definition MutableMCRecoCalorimeterHitAssociation.cc:63
MutableMCRecoCalorimeterHitAssociation(const MutableMCRecoCalorimeterHitAssociation &other)=default
copy constructor
void setWeight(const float weight)
Set the weight of this association.
Definition MutableMCRecoCalorimeterHitAssociation.cc:56
podio::ObjectID id() const
Definition MutableMCRecoCalorimeterHitAssociation.h:108
bool operator<(const MutableMCRecoCalorimeterHitAssociation &other) const
Definition MutableMCRecoCalorimeterHitAssociation.h:106
bool isAvailable() const
check whether the object is actually available
Definition MutableMCRecoCalorimeterHitAssociation.cc:73
friend class MCRecoCalorimeterHitAssociation
Definition MutableMCRecoCalorimeterHitAssociation.h:42
~MutableMCRecoCalorimeterHitAssociation()=default
destructor
const edm4hep::RawCalorimeterHit getRawHit() const
Access the reference to the digitized calorimeter hit.
Definition MutableMCRecoCalorimeterHitAssociation.cc:41
void unlink()
disconnect from MCRecoCalorimeterHitAssociationObj instance
Definition MutableMCRecoCalorimeterHitAssociation.h:97
float getWeight() const
Access the weight of this association.
Definition MutableMCRecoCalorimeterHitAssociation.cc:39
friend class MCRecoCalorimeterHitAssociationCollection
Definition MutableMCRecoCalorimeterHitAssociation.h:40
bool operator!=(const MCRecoCalorimeterHitAssociation &other) const
Definition MutableMCRecoCalorimeterHitAssociation.h:103
Definition ArrowMapper.cc:61
Definition CalorimeterHit.h:25
OrderKey getOrderKey(const edm4eic::CalorimeterHit &obj)
Definition CalorimeterHit.cc:146
std::size_t operator()(const edm4eic::MutableMCRecoCalorimeterHitAssociation &obj) const
Definition MutableMCRecoCalorimeterHitAssociation.h:137