3#ifndef EDM4EIC_MutableMCRecoTrackerHitAssociation_H
4#define EDM4EIC_MutableMCRecoTrackerHitAssociation_H
11#include "podio/utilities/MaybeSharedPtr.h"
15#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
16#include "nlohmann/json_fwd.hpp"
22class MutableRawTrackerHit;
26class MutableSimTrackerHit;
76 const edm4hep::SimTrackerHit
getSimHit()
const;
83 [[deprecated(
"use getWeight instead")]]
90 void setSimHit(
const edm4hep::SimTrackerHit& value);
98 void unlink() { m_obj = podio::utils::MaybeSharedPtr<MCRecoTrackerHitAssociationObj>{
nullptr}; }
115 swap(a.m_obj, b.m_obj);
122 podio::utils::MaybeSharedPtr<MCRecoTrackerHitAssociationObj> m_obj{
nullptr};
125#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
126void to_json(nlohmann::json& j,
const MutableMCRecoTrackerHitAssociation& value);
Definition MCRecoTrackerHitAssociationCollection.h:92
Definition MCRecoTrackerHitAssociation.h:39
Definition MCRecoTrackerHitAssociationCollection.h:63
Definition MutableMCRecoTrackerHitAssociation.h:37
~MutableMCRecoTrackerHitAssociation()=default
destructor
bool isAvailable() const
check whether the object is actually available
Definition MutableMCRecoTrackerHitAssociation.cc:80
bool operator!=(const MCRecoTrackerHitAssociation &other) const
Definition MutableMCRecoTrackerHitAssociation.h:104
void setRawHit(const edm4eic::RawTrackerHit &value)
Set the reference to the digitized hit.
Definition MutableMCRecoTrackerHitAssociation.cc:64
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:28
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:84
void setWeight(float value)
Set the weight of this association.
Definition MutableMCRecoTrackerHitAssociation.cc:60
void setSimHit(const edm4hep::SimTrackerHit &value)
Set the reference to the simulated hit.
Definition MutableMCRecoTrackerHitAssociation.cc:69
const edm4hep::SimTrackerHit getSimHit() const
Access the reference to the simulated hit.
Definition MutableMCRecoTrackerHitAssociation.cc:52
podio::ObjectID id() const
Definition MutableMCRecoTrackerHitAssociation.h:109
friend class MCRecoTrackerHitAssociation
Definition MutableMCRecoTrackerHitAssociation.h:41
MutableMCRecoTrackerHitAssociation()
default constructor
Definition MutableMCRecoTrackerHitAssociation.cc:20
bool operator<(const MutableMCRecoTrackerHitAssociation &other) const
Definition MutableMCRecoTrackerHitAssociation.h:107
bool operator!=(const MutableMCRecoTrackerHitAssociation &other) const
Definition MutableMCRecoTrackerHitAssociation.h:103
MutableMCRecoTrackerHitAssociation clone(bool cloneRelations=true) const
Definition MutableMCRecoTrackerHitAssociation.cc:33
bool operator==(const MutableMCRecoTrackerHitAssociation &other) const
Definition MutableMCRecoTrackerHitAssociation.h:100
float & weight()
Get reference to weight of this association.
Definition MutableMCRecoTrackerHitAssociation.cc:62
friend void swap(MutableMCRecoTrackerHitAssociation &a, MutableMCRecoTrackerHitAssociation &b)
Definition MutableMCRecoTrackerHitAssociation.h:113
void unlink()
disconnect from MCRecoTrackerHitAssociationObj instance
Definition MutableMCRecoTrackerHitAssociation.h:98
friend class MCRecoTrackerHitAssociationCollection
Definition MutableMCRecoTrackerHitAssociation.h:39
Definition RawTrackerHit.h:31
Definition CalorimeterHit.cc:17
Definition CalorimeterHit.h:21