3#ifndef EICD_MutableTrackerHit_H
4#define EICD_MutableTrackerHit_H
11#include "edm4hep/Vector3f.h"
13#include "podio/ObjectID.h"
16#ifdef PODIO_JSON_OUTPUT
17#include "nlohmann/json.hpp"
131 swap(a.m_obj, b.m_obj);
138#ifdef PODIO_JSON_OUTPUT
139void to_json(nlohmann::json& j,
const MutableTrackerHit& value);
Definition: CovDiag3f.h:15
Definition: MutableTrackerHit.h:29
unsigned int id() const
Definition: MutableTrackerHit.h:125
eicd::CovDiag3f & positionError()
Get reference to Covariance Matrix.
Definition: MutableTrackerHit.cc:70
friend class TrackerHit
Definition: MutableTrackerHit.h:33
const float & getTimeError() const
Access the Error on the time.
Definition: MutableTrackerHit.cc:61
~MutableTrackerHit()
destructor
Definition: MutableTrackerHit.cc:50
void setPosition(edm4hep::Vector3f value)
Set the Hit (cell) position and time [mm, ns].
Definition: MutableTrackerHit.cc:67
bool isAvailable() const
check whether the object is actually available
Definition: MutableTrackerHit.cc:82
void setTimeError(float value)
Set the Error on the time.
Definition: MutableTrackerHit.cc:72
void setTime(float value)
Set the Hit time.
Definition: MutableTrackerHit.cc:71
void setPositionError(eicd::CovDiag3f value)
Set the Covariance Matrix.
Definition: MutableTrackerHit.cc:69
const std::uint64_t & getCellID() const
Access the The detector specific (geometrical) cell id.
Definition: MutableTrackerHit.cc:57
MutableTrackerHit & operator=(MutableTrackerHit other)
copy-assignment operator
Definition: MutableTrackerHit.cc:35
MutableTrackerHit clone() const
create a mutable deep-copy of the object with identical relations
Definition: MutableTrackerHit.cc:46
edm4hep::Vector3f & position()
Get reference to Hit (cell) position and time [mm, ns].
Definition: MutableTrackerHit.cc:68
const float & getEdepError() const
Access the Error on the energy deposit [GeV].
Definition: MutableTrackerHit.cc:63
const edm4hep::Vector3f & getPosition() const
Access the Hit (cell) position and time [mm, ns].
Definition: MutableTrackerHit.cc:58
const float & getTime() const
Access the Hit time.
Definition: MutableTrackerHit.cc:60
MutableTrackerHit()
default constructor
Definition: MutableTrackerHit.cc:16
const podio::ObjectID getObjectID() const
Definition: MutableTrackerHit.cc:89
void setCellID(std::uint64_t value)
Set the The detector specific (geometrical) cell id.
Definition: MutableTrackerHit.cc:66
void setEdep(float value)
Set the Energy deposit in this hit [GeV].
Definition: MutableTrackerHit.cc:73
const eicd::CovDiag3f & getPositionError() const
Access the Covariance Matrix.
Definition: MutableTrackerHit.cc:59
friend void swap(MutableTrackerHit &a, MutableTrackerHit &b)
Definition: MutableTrackerHit.h:129
const float & getEdep() const
Access the Energy deposit in this hit [GeV].
Definition: MutableTrackerHit.cc:62
bool operator==(const MutableTrackerHit &other) const
Definition: MutableTrackerHit.h:119
bool operator<(const MutableTrackerHit &other) const
Definition: MutableTrackerHit.h:123
void unlink()
disconnect from TrackerHitObj instance
Definition: MutableTrackerHit.h:117
void setEdepError(float value)
Set the Error on the energy deposit [GeV].
Definition: MutableTrackerHit.cc:74
Definition: TrackerHitCollection.h:82
Definition: TrackerHit.h:28
Definition: TrackerHitCollection.h:57
Definition: TrackerHitObj.h:17
Definition: CalorimeterHit.cc:13