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"
21class RawCalorimeterHit;
22class MutableRawCalorimeterHit;
23class SimCalorimeterHit;
24class MutableSimCalorimeterHit;
72 const edm4hep::RawCalorimeterHit
getRawHit()
const;
74 const edm4hep::SimCalorimeterHit
getSimHit()
const;
81 [[deprecated(
"use getWeight instead")]]
86 void setRawHit(
const edm4hep::RawCalorimeterHit& value);
88 void setSimHit(
const edm4hep::SimCalorimeterHit& value);
96 void unlink() { m_obj = podio::utils::MaybeSharedPtr<MCRecoCalorimeterHitAssociationObj>{
nullptr}; }
113 swap(a.m_obj, b.m_obj);
120 podio::utils::MaybeSharedPtr<MCRecoCalorimeterHitAssociationObj> m_obj{
nullptr};
123#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
124void to_json(nlohmann::json& j,
const MutableMCRecoCalorimeterHitAssociation& value);
Definition MCRecoCalorimeterHitAssociationCollection.h:92
Definition MCRecoCalorimeterHitAssociation.h:37
Definition MCRecoCalorimeterHitAssociationCollection.h:63
Definition MutableMCRecoCalorimeterHitAssociation.h:35
MutableMCRecoCalorimeterHitAssociation clone(bool cloneRelations=true) const
Definition MutableMCRecoCalorimeterHitAssociation.cc:33
void setWeight(float value)
Set the weight of this association.
Definition MutableMCRecoCalorimeterHitAssociation.cc:60
const podio::ObjectID getObjectID() const
Definition MutableMCRecoCalorimeterHitAssociation.cc:84
friend void swap(MutableMCRecoCalorimeterHitAssociation &a, MutableMCRecoCalorimeterHitAssociation &b)
Definition MutableMCRecoCalorimeterHitAssociation.h:111
void setRawHit(const edm4hep::RawCalorimeterHit &value)
Set the reference to the digitized calorimeter hit.
Definition MutableMCRecoCalorimeterHitAssociation.cc:64
float & weight()
Get reference to weight of this association.
Definition MutableMCRecoCalorimeterHitAssociation.cc:62
const edm4hep::SimCalorimeterHit getSimHit() const
Access the reference to the simulated calorimeter hit.
Definition MutableMCRecoCalorimeterHitAssociation.cc:52
void setSimHit(const edm4hep::SimCalorimeterHit &value)
Set the reference to the simulated calorimeter hit.
Definition MutableMCRecoCalorimeterHitAssociation.cc:69
bool operator!=(const MutableMCRecoCalorimeterHitAssociation &other) const
Definition MutableMCRecoCalorimeterHitAssociation.h:101
MutableMCRecoCalorimeterHitAssociation(const MutableMCRecoCalorimeterHitAssociation &other)=default
copy constructor
podio::ObjectID id() const
Definition MutableMCRecoCalorimeterHitAssociation.h:107
bool operator<(const MutableMCRecoCalorimeterHitAssociation &other) const
Definition MutableMCRecoCalorimeterHitAssociation.h:105
bool isAvailable() const
check whether the object is actually available
Definition MutableMCRecoCalorimeterHitAssociation.cc:80
friend class MCRecoCalorimeterHitAssociation
Definition MutableMCRecoCalorimeterHitAssociation.h:39
bool operator==(const MutableMCRecoCalorimeterHitAssociation &other) const
Definition MutableMCRecoCalorimeterHitAssociation.h:98
MutableMCRecoCalorimeterHitAssociation()
default constructor
Definition MutableMCRecoCalorimeterHitAssociation.cc:20
~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:96
float getWeight() const
Access the weight of this association.
Definition MutableMCRecoCalorimeterHitAssociation.cc:43
friend class MCRecoCalorimeterHitAssociationCollection
Definition MutableMCRecoCalorimeterHitAssociation.h:37
bool operator!=(const MCRecoCalorimeterHitAssociation &other) const
Definition MutableMCRecoCalorimeterHitAssociation.h:102
MutableMCRecoCalorimeterHitAssociation & operator=(MutableMCRecoCalorimeterHitAssociation other)
copy-assignment operator
Definition MutableMCRecoCalorimeterHitAssociation.cc:28
Definition CalorimeterHit.cc:17
Definition CalorimeterHit.h:21