3#ifndef EDM4EIC_MCRecoTrackerHitAssociation_H
4#define EDM4EIC_MCRecoTrackerHitAssociation_H
9#include "podio/utilities/MaybeSharedPtr.h"
14#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
15#include "nlohmann/json_fwd.hpp"
21class MutableRawTrackerHit;
25class MutableSimTrackerHit;
31class MutableMCRecoTrackerHitAssociation;
32class MCRecoTrackerHitAssociationCollection;
33class MCRecoTrackerHitAssociationCollectionData;
80 const edm4hep::SimTrackerHit
getSimHit()
const;
87 void unlink() { m_obj = podio::utils::MaybeSharedPtr<MCRecoTrackerHitAssociationObj>{
nullptr}; }
101 swap(a.m_obj, b.m_obj);
109 podio::utils::MaybeSharedPtr<MCRecoTrackerHitAssociationObj> m_obj{
nullptr};
112std::ostream&
operator<<(std::ostream& o,
const MCRecoTrackerHitAssociation& value);
114#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
115void to_json(nlohmann::json& j,
const MCRecoTrackerHitAssociation& value);
Definition MCRecoTrackerHitAssociationCollectionData.h:32
Definition MCRecoTrackerHitAssociationCollection.h:95
Definition MCRecoTrackerHitAssociationCollection.h:40
Definition MCRecoTrackerHitAssociation.h:39
MCRecoTrackerHitAssociation & operator=(MCRecoTrackerHitAssociation other)
copy-assignment operator
Definition MCRecoTrackerHitAssociation.cc:31
MCRecoTrackerHitAssociation()
default constructor
Definition MCRecoTrackerHitAssociation.cc:23
friend void swap(MCRecoTrackerHitAssociation &a, MCRecoTrackerHitAssociation &b)
Definition MCRecoTrackerHitAssociation.h:99
~MCRecoTrackerHitAssociation()=default
destructor
bool operator<(const MCRecoTrackerHitAssociation &other) const
Definition MCRecoTrackerHitAssociation.h:93
MCRecoTrackerHitAssociation(const MCRecoTrackerHitAssociation &other)=default
copy constructor
bool isAvailable() const
check whether the object is actually available
Definition MCRecoTrackerHitAssociation.cc:69
float getWeight() const
Access the weight of this association.
Definition MCRecoTrackerHitAssociation.cc:48
friend class MutableMCRecoTrackerHitAssociation
Definition MCRecoTrackerHitAssociation.h:41
static MCRecoTrackerHitAssociation makeEmpty()
Definition MCRecoTrackerHitAssociation.cc:44
MutableMCRecoTrackerHitAssociation clone() const
create a mutable deep-copy of the object with identical relations
Definition MCRecoTrackerHitAssociation.cc:36
bool operator==(const MCRecoTrackerHitAssociation &other) const
Definition MCRecoTrackerHitAssociation.h:89
void unlink()
disconnect from MCRecoTrackerHitAssociationObj instance
Definition MCRecoTrackerHitAssociation.h:87
const podio::ObjectID getObjectID() const
Definition MCRecoTrackerHitAssociation.cc:76
podio::ObjectID id() const
Definition MCRecoTrackerHitAssociation.h:95
friend class MCRecoTrackerHitAssociationCollection
Definition MCRecoTrackerHitAssociation.h:42
const edm4eic::RawTrackerHit getRawHit() const
Access the reference to the digitized hit.
Definition MCRecoTrackerHitAssociation.cc:50
const edm4hep::SimTrackerHit getSimHit() const
Access the reference to the simulated hit.
Definition MCRecoTrackerHitAssociation.cc:57
Definition MCRecoTrackerHitAssociationObj.h:24
Definition MutableMCRecoTrackerHitAssociation.h:38
Definition RawTrackerHit.h:31
Definition CalorimeterHit.cc:18
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition CalorimeterHit.cc:97
Definition CalorimeterHit.h:21