3#ifndef EDM4EIC_MutableMCRecoTrackerHitAssociation_H
4#define EDM4EIC_MutableMCRecoTrackerHitAssociation_H
11#include "podio/utilities/MaybeSharedPtr.h"
16#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
17#include "nlohmann/json_fwd.hpp"
23class MutableRawTrackerHit;
27class MutableSimTrackerHit;
79 const edm4hep::SimTrackerHit
getSimHit()
const;
88 void setSimHit(edm4hep::SimTrackerHit value);
96 void unlink() { m_obj = podio::utils::MaybeSharedPtr<MCRecoTrackerHitAssociationObj>{
nullptr}; }
110 swap(a.m_obj, b.m_obj);
117 podio::utils::MaybeSharedPtr<MCRecoTrackerHitAssociationObj> m_obj{
nullptr};
120#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
121void to_json(nlohmann::json& j,
const MutableMCRecoTrackerHitAssociation& value);
Definition MCRecoTrackerHitAssociationCollection.h:95
Definition MCRecoTrackerHitAssociation.h:39
Definition MCRecoTrackerHitAssociationCollection.h:66
Definition MutableMCRecoTrackerHitAssociation.h:38
~MutableMCRecoTrackerHitAssociation()=default
destructor
bool isAvailable() const
check whether the object is actually available
Definition MutableMCRecoTrackerHitAssociation.cc:82
const edm4eic::RawTrackerHit getRawHit() const
Access the reference to the digitized hit.
Definition MutableMCRecoTrackerHitAssociation.cc:45
MutableMCRecoTrackerHitAssociation & operator=(MutableMCRecoTrackerHitAssociation other)
copy-assignment operator
Definition MutableMCRecoTrackerHitAssociation.cc:31
float getWeight() const
Access the weight of this association.
Definition MutableMCRecoTrackerHitAssociation.cc:43
MutableMCRecoTrackerHitAssociation(const MutableMCRecoTrackerHitAssociation &other)=default
copy constructor
const podio::ObjectID getObjectID() const
Definition MutableMCRecoTrackerHitAssociation.cc:89
void setWeight(float value)
Set the weight of this association.
Definition MutableMCRecoTrackerHitAssociation.cc:60
const edm4hep::SimTrackerHit getSimHit() const
Access the reference to the simulated hit.
Definition MutableMCRecoTrackerHitAssociation.cc:52
podio::ObjectID id() const
Definition MutableMCRecoTrackerHitAssociation.h:104
void setRawHit(edm4eic::RawTrackerHit value)
Set the reference to the digitized hit.
Definition MutableMCRecoTrackerHitAssociation.cc:62
friend class MCRecoTrackerHitAssociation
Definition MutableMCRecoTrackerHitAssociation.h:42
MutableMCRecoTrackerHitAssociation()
default constructor
Definition MutableMCRecoTrackerHitAssociation.cc:23
bool operator<(const MutableMCRecoTrackerHitAssociation &other) const
Definition MutableMCRecoTrackerHitAssociation.h:102
void setSimHit(edm4hep::SimTrackerHit value)
Set the reference to the simulated hit.
Definition MutableMCRecoTrackerHitAssociation.cc:69
bool operator==(const MutableMCRecoTrackerHitAssociation &other) const
Definition MutableMCRecoTrackerHitAssociation.h:98
friend void swap(MutableMCRecoTrackerHitAssociation &a, MutableMCRecoTrackerHitAssociation &b)
Definition MutableMCRecoTrackerHitAssociation.h:108
void unlink()
disconnect from MCRecoTrackerHitAssociationObj instance
Definition MutableMCRecoTrackerHitAssociation.h:96
MutableMCRecoTrackerHitAssociation clone() const
create a mutable deep-copy of the object with identical relations
Definition MutableMCRecoTrackerHitAssociation.cc:36
friend class MCRecoTrackerHitAssociationCollection
Definition MutableMCRecoTrackerHitAssociation.h:40
Definition RawTrackerHit.h:31
Definition CalorimeterHit.cc:18
Definition CalorimeterHit.h:21