3#ifndef EDM4EIC_MutableTrackerHit_H
4#define EDM4EIC_MutableTrackerHit_H
11#include "edm4hep/Vector3f.h"
14#include "podio/utilities/MaybeSharedPtr.h"
19#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
20#include "nlohmann/json_fwd.hpp"
26class MutableRawTrackerHit;
131 void unlink() { m_obj = podio::utils::MaybeSharedPtr<TrackerHitObj>{
nullptr}; }
145 swap(a.m_obj, b.m_obj);
152 podio::utils::MaybeSharedPtr<TrackerHitObj> m_obj{
nullptr};
155#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
156void to_json(nlohmann::json& j,
const MutableTrackerHit& value);
Definition CovDiag3f.h:18
Definition MutableTrackerHit.h:37
friend class TrackerHitCollection
Definition MutableTrackerHit.h:39
~MutableTrackerHit()=default
destructor
friend class TrackerHit
Definition MutableTrackerHit.h:41
void setTime(float value)
Set the Hit time [ns].
Definition MutableTrackerHit.cc:69
const podio::ObjectID getObjectID() const
Definition MutableTrackerHit.cc:94
MutableTrackerHit & operator=(MutableTrackerHit other)
copy-assignment operator
Definition MutableTrackerHit.cc:36
float getEdep() const
Access the Energy deposit in this hit [GeV].
Definition MutableTrackerHit.cc:53
edm4eic::CovDiag3f & positionError()
Get reference to Covariance Matrix.
Definition MutableTrackerHit.cc:68
bool isAvailable() const
check whether the object is actually available
Definition MutableTrackerHit.cc:87
float getTimeError() const
Access the Error on the time.
Definition MutableTrackerHit.cc:52
void setPositionError(edm4eic::CovDiag3f value)
Set the Covariance Matrix.
Definition MutableTrackerHit.cc:67
void unlink()
disconnect from TrackerHitObj instance
Definition MutableTrackerHit.h:131
float getTime() const
Access the Hit time [ns].
Definition MutableTrackerHit.cc:51
bool operator<(const MutableTrackerHit &other) const
Definition MutableTrackerHit.h:137
const edm4eic::RawTrackerHit getRawHit() const
Access the Related raw tracker hit.
Definition MutableTrackerHit.cc:56
void setTimeError(float value)
Set the Error on the time.
Definition MutableTrackerHit.cc:70
void setEdepError(float value)
Set the Error on the energy deposit [GeV].
Definition MutableTrackerHit.cc:72
void setCellID(std::uint64_t value)
Set the The detector specific (geometrical) cell id.
Definition MutableTrackerHit.cc:64
const edm4eic::CovDiag3f & getPositionError() const
Access the Covariance Matrix.
Definition MutableTrackerHit.cc:50
void setPosition(edm4hep::Vector3f value)
Set the Hit (cell) position [mm].
Definition MutableTrackerHit.cc:65
void setRawHit(edm4eic::RawTrackerHit value)
Set the Related raw tracker hit.
Definition MutableTrackerHit.cc:74
std::uint64_t getCellID() const
Access the The detector specific (geometrical) cell id.
Definition MutableTrackerHit.cc:48
const edm4hep::Vector3f & getPosition() const
Access the Hit (cell) position [mm].
Definition MutableTrackerHit.cc:49
void setEdep(float value)
Set the Energy deposit in this hit [GeV].
Definition MutableTrackerHit.cc:71
friend void swap(MutableTrackerHit &a, MutableTrackerHit &b)
Definition MutableTrackerHit.h:143
edm4hep::Vector3f & position()
Get reference to Hit (cell) position [mm].
Definition MutableTrackerHit.cc:66
bool operator==(const MutableTrackerHit &other) const
Definition MutableTrackerHit.h:133
MutableTrackerHit(const MutableTrackerHit &other)=default
copy constructor
MutableTrackerHit()
default constructor
Definition MutableTrackerHit.cc:22
float getEdepError() const
Access the Error on the energy deposit [GeV].
Definition MutableTrackerHit.cc:54
MutableTrackerHit clone() const
create a mutable deep-copy of the object with identical relations
Definition MutableTrackerHit.cc:41
podio::ObjectID id() const
Definition MutableTrackerHit.h:139
Definition RawTrackerHit.h:31
Definition TrackerHitCollection.h:95
Definition TrackerHit.h:38
Definition TrackerHitCollection.h:66
Definition CalorimeterHit.cc:18