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;
83 const edm4hep::SimTrackerHit
getSimHit()
const;
90 void unlink() { m_obj = podio::utils::MaybeSharedPtr<MCRecoTrackerHitAssociationObj>{
nullptr}; }
107 swap(a.m_obj, b.m_obj);
115 podio::utils::MaybeSharedPtr<MCRecoTrackerHitAssociationObj> m_obj{
nullptr};
118std::ostream&
operator<<(std::ostream& o,
const MCRecoTrackerHitAssociation& value);
120#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
121void to_json(nlohmann::json& j,
const MCRecoTrackerHitAssociation& value);
Definition MCRecoTrackerHitAssociationCollectionData.h:32
Definition MCRecoTrackerHitAssociationCollection.h:92
Definition MCRecoTrackerHitAssociationCollection.h:37
Definition MCRecoTrackerHitAssociation.h:39
MutableMCRecoTrackerHitAssociation clone(bool cloneRelations=true) const
Definition MCRecoTrackerHitAssociation.cc:35
MCRecoTrackerHitAssociation & operator=(MCRecoTrackerHitAssociation other)
copy-assignment operator
Definition MCRecoTrackerHitAssociation.cc:30
MCRecoTrackerHitAssociation()
default constructor
Definition MCRecoTrackerHitAssociation.cc:22
friend void swap(MCRecoTrackerHitAssociation &a, MCRecoTrackerHitAssociation &b)
Definition MCRecoTrackerHitAssociation.h:105
~MCRecoTrackerHitAssociation()=default
destructor
bool operator<(const MCRecoTrackerHitAssociation &other) const
Definition MCRecoTrackerHitAssociation.h:99
MCRecoTrackerHitAssociation(const MCRecoTrackerHitAssociation &other)=default
copy constructor
bool isAvailable() const
check whether the object is actually available
Definition MCRecoTrackerHitAssociation.cc:81
float getWeight() const
Access the weight of this association.
Definition MCRecoTrackerHitAssociation.cc:60
friend class MutableMCRecoTrackerHitAssociation
Definition MCRecoTrackerHitAssociation.h:41
bool operator!=(const MutableMCRecoTrackerHitAssociation &other) const
Definition MCRecoTrackerHitAssociation.h:96
static MCRecoTrackerHitAssociation makeEmpty()
Definition MCRecoTrackerHitAssociation.cc:56
bool operator!=(const MCRecoTrackerHitAssociation &other) const
Definition MCRecoTrackerHitAssociation.h:95
bool operator==(const MCRecoTrackerHitAssociation &other) const
Definition MCRecoTrackerHitAssociation.h:92
void unlink()
disconnect from MCRecoTrackerHitAssociationObj instance
Definition MCRecoTrackerHitAssociation.h:90
const podio::ObjectID getObjectID() const
Definition MCRecoTrackerHitAssociation.cc:85
podio::ObjectID id() const
Definition MCRecoTrackerHitAssociation.h:101
friend class MCRecoTrackerHitAssociationCollection
Definition MCRecoTrackerHitAssociation.h:42
const edm4eic::RawTrackerHit getRawHit() const
Access the reference to the digitized hit.
Definition MCRecoTrackerHitAssociation.cc:62
const edm4hep::SimTrackerHit getSimHit() const
Access the reference to the simulated hit.
Definition MCRecoTrackerHitAssociation.cc:69
Definition MCRecoTrackerHitAssociationObj.h:24
Definition MutableMCRecoTrackerHitAssociation.h:37
Definition RawTrackerHit.h:31
Definition CalorimeterHit.cc:17
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition CalorimeterHit.cc:103
Definition CalorimeterHit.h:21