3#ifndef EDM4EIC_MutableMCRecoCalorimeterHitAssociation_H
4#define EDM4EIC_MutableMCRecoCalorimeterHitAssociation_H
11#include "podio/utilities/MaybeSharedPtr.h"
16#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
17#include "nlohmann/json_fwd.hpp"
22class RawCalorimeterHit;
23class MutableRawCalorimeterHit;
24class SimCalorimeterHit;
25class MutableSimCalorimeterHit;
75 const edm4hep::RawCalorimeterHit
getRawHit()
const;
77 const edm4hep::SimCalorimeterHit
getSimHit()
const;
84 void setRawHit(edm4hep::RawCalorimeterHit value);
86 void setSimHit(edm4hep::SimCalorimeterHit value);
94 void unlink() { m_obj = podio::utils::MaybeSharedPtr<MCRecoCalorimeterHitAssociationObj>{
nullptr}; }
108 swap(a.m_obj, b.m_obj);
115 podio::utils::MaybeSharedPtr<MCRecoCalorimeterHitAssociationObj> m_obj{
nullptr};
118#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
119void to_json(nlohmann::json& j,
const MutableMCRecoCalorimeterHitAssociation& value);
Definition MCRecoCalorimeterHitAssociationCollection.h:95
Definition MCRecoCalorimeterHitAssociation.h:37
Definition MCRecoCalorimeterHitAssociationCollection.h:66
Definition MutableMCRecoCalorimeterHitAssociation.h:36
void setWeight(float value)
Set the weight of this association.
Definition MutableMCRecoCalorimeterHitAssociation.cc:60
const podio::ObjectID getObjectID() const
Definition MutableMCRecoCalorimeterHitAssociation.cc:89
friend void swap(MutableMCRecoCalorimeterHitAssociation &a, MutableMCRecoCalorimeterHitAssociation &b)
Definition MutableMCRecoCalorimeterHitAssociation.h:106
const edm4hep::SimCalorimeterHit getSimHit() const
Access the reference to the simulated calorimeter hit.
Definition MutableMCRecoCalorimeterHitAssociation.cc:52
MutableMCRecoCalorimeterHitAssociation(const MutableMCRecoCalorimeterHitAssociation &other)=default
copy constructor
podio::ObjectID id() const
Definition MutableMCRecoCalorimeterHitAssociation.h:102
bool operator<(const MutableMCRecoCalorimeterHitAssociation &other) const
Definition MutableMCRecoCalorimeterHitAssociation.h:100
bool isAvailable() const
check whether the object is actually available
Definition MutableMCRecoCalorimeterHitAssociation.cc:82
friend class MCRecoCalorimeterHitAssociation
Definition MutableMCRecoCalorimeterHitAssociation.h:40
bool operator==(const MutableMCRecoCalorimeterHitAssociation &other) const
Definition MutableMCRecoCalorimeterHitAssociation.h:96
MutableMCRecoCalorimeterHitAssociation()
default constructor
Definition MutableMCRecoCalorimeterHitAssociation.cc:23
~MutableMCRecoCalorimeterHitAssociation()=default
destructor
const edm4hep::RawCalorimeterHit getRawHit() const
Access the reference to the digitized calorimeter hit.
Definition MutableMCRecoCalorimeterHitAssociation.cc:45
void unlink()
disconnect from MCRecoCalorimeterHitAssociationObj instance
Definition MutableMCRecoCalorimeterHitAssociation.h:94
MutableMCRecoCalorimeterHitAssociation clone() const
create a mutable deep-copy of the object with identical relations
Definition MutableMCRecoCalorimeterHitAssociation.cc:36
float getWeight() const
Access the weight of this association.
Definition MutableMCRecoCalorimeterHitAssociation.cc:43
friend class MCRecoCalorimeterHitAssociationCollection
Definition MutableMCRecoCalorimeterHitAssociation.h:38
void setSimHit(edm4hep::SimCalorimeterHit value)
Set the reference to the simulated calorimeter hit.
Definition MutableMCRecoCalorimeterHitAssociation.cc:69
MutableMCRecoCalorimeterHitAssociation & operator=(MutableMCRecoCalorimeterHitAssociation other)
copy-assignment operator
Definition MutableMCRecoCalorimeterHitAssociation.cc:31
void setRawHit(edm4hep::RawCalorimeterHit value)
Set the reference to the digitized calorimeter hit.
Definition MutableMCRecoCalorimeterHitAssociation.cc:62
Definition CalorimeterHit.cc:18
Definition CalorimeterHit.h:21