3#ifndef EDM4EIC_MCRecoCalorimeterHitAssociation_H
4#define EDM4EIC_MCRecoCalorimeterHitAssociation_H
9#include "podio/utilities/MaybeSharedPtr.h"
14#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
15#include "nlohmann/json_fwd.hpp"
20class RawCalorimeterHit;
21class MutableRawCalorimeterHit;
22class SimCalorimeterHit;
23class MutableSimCalorimeterHit;
29class MutableMCRecoCalorimeterHitAssociation;
30class MCRecoCalorimeterHitAssociationCollection;
31class MCRecoCalorimeterHitAssociationCollectionData;
76 const edm4hep::RawCalorimeterHit
getRawHit()
const;
78 const edm4hep::SimCalorimeterHit
getSimHit()
const;
85 void unlink() { m_obj = podio::utils::MaybeSharedPtr<MCRecoCalorimeterHitAssociationObj>{
nullptr}; }
99 swap(a.m_obj, b.m_obj);
107 podio::utils::MaybeSharedPtr<MCRecoCalorimeterHitAssociationObj> m_obj{
nullptr};
110std::ostream&
operator<<(std::ostream& o,
const MCRecoCalorimeterHitAssociation& value);
112#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
113void to_json(nlohmann::json& j,
const MCRecoCalorimeterHitAssociation& value);
Definition MCRecoCalorimeterHitAssociationCollectionData.h:32
Definition MCRecoCalorimeterHitAssociationCollection.h:95
Definition MCRecoCalorimeterHitAssociationCollection.h:40
Definition MCRecoCalorimeterHitAssociation.h:37
bool operator<(const MCRecoCalorimeterHitAssociation &other) const
Definition MCRecoCalorimeterHitAssociation.h:91
bool isAvailable() const
check whether the object is actually available
Definition MCRecoCalorimeterHitAssociation.cc:69
void unlink()
disconnect from MCRecoCalorimeterHitAssociationObj instance
Definition MCRecoCalorimeterHitAssociation.h:85
MCRecoCalorimeterHitAssociation & operator=(MCRecoCalorimeterHitAssociation other)
copy-assignment operator
Definition MCRecoCalorimeterHitAssociation.cc:31
bool operator==(const MCRecoCalorimeterHitAssociation &other) const
Definition MCRecoCalorimeterHitAssociation.h:87
MCRecoCalorimeterHitAssociation(const MCRecoCalorimeterHitAssociation &other)=default
copy constructor
friend void swap(MCRecoCalorimeterHitAssociation &a, MCRecoCalorimeterHitAssociation &b)
Definition MCRecoCalorimeterHitAssociation.h:97
MCRecoCalorimeterHitAssociation()
default constructor
Definition MCRecoCalorimeterHitAssociation.cc:23
const podio::ObjectID getObjectID() const
Definition MCRecoCalorimeterHitAssociation.cc:76
const edm4hep::SimCalorimeterHit getSimHit() const
Access the reference to the simulated calorimeter hit.
Definition MCRecoCalorimeterHitAssociation.cc:57
const edm4hep::RawCalorimeterHit getRawHit() const
Access the reference to the digitized calorimeter hit.
Definition MCRecoCalorimeterHitAssociation.cc:50
podio::ObjectID id() const
Definition MCRecoCalorimeterHitAssociation.h:93
static MCRecoCalorimeterHitAssociation makeEmpty()
Definition MCRecoCalorimeterHitAssociation.cc:44
~MCRecoCalorimeterHitAssociation()=default
destructor
friend class MCRecoCalorimeterHitAssociationCollection
Definition MCRecoCalorimeterHitAssociation.h:40
friend class MutableMCRecoCalorimeterHitAssociation
Definition MCRecoCalorimeterHitAssociation.h:39
float getWeight() const
Access the weight of this association.
Definition MCRecoCalorimeterHitAssociation.cc:48
MutableMCRecoCalorimeterHitAssociation clone() const
create a mutable deep-copy of the object with identical relations
Definition MCRecoCalorimeterHitAssociation.cc:36
Definition MCRecoCalorimeterHitAssociationObj.h:22
Definition MutableMCRecoCalorimeterHitAssociation.h:36
Definition CalorimeterHit.cc:18
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition CalorimeterHit.cc:97
Definition CalorimeterHit.h:21