3#ifndef EICD_TrackerHit_H
4#define EICD_TrackerHit_H
9#include "edm4hep/Vector3f.h"
11#include "podio/ObjectID.h"
14#ifdef PODIO_JSON_OUTPUT
15#include "nlohmann/json.hpp"
22class MutableTrackerHit;
37 TrackerHit(std::uint64_t cellID, edm4hep::Vector3f position,
eicd::CovDiag3f positionError,
float time,
float timeError,
float edep,
float edepError);
99 swap(a.m_obj, b.m_obj);
106std::ostream&
operator<<(std::ostream& o,
const TrackerHit& value);
108#ifdef PODIO_JSON_OUTPUT
109void to_json(nlohmann::json& j,
const TrackerHit& value);
Definition: CovDiag3f.h:15
Definition: MutableTrackerHit.h:29
Definition: TrackerHitCollection.h:82
Definition: TrackerHitCollection.h:35
Definition: TrackerHit.h:28
const float & getTime() const
Access the Hit time.
Definition: TrackerHit.cc:59
const podio::ObjectID getObjectID() const
Definition: TrackerHit.cc:76
bool operator<(const TrackerHit &other) const
Definition: TrackerHit.h:91
const std::uint64_t & getCellID() const
Access the The detector specific (geometrical) cell id.
Definition: TrackerHit.cc:56
friend void swap(TrackerHit &a, TrackerHit &b)
Definition: TrackerHit.h:97
TrackerHit & operator=(TrackerHit other)
copy-assignment operator
Definition: TrackerHit.cc:35
const eicd::CovDiag3f & getPositionError() const
Access the Covariance Matrix.
Definition: TrackerHit.cc:58
const edm4hep::Vector3f & getPosition() const
Access the Hit (cell) position and time [mm, ns].
Definition: TrackerHit.cc:57
bool isAvailable() const
check whether the object is actually available
Definition: TrackerHit.cc:69
MutableTrackerHit clone() const
create a mutable deep-copy of the object with identical relations
Definition: TrackerHit.cc:46
const float & getEdepError() const
Access the Error on the energy deposit [GeV].
Definition: TrackerHit.cc:62
TrackerHit()
default constructor
Definition: TrackerHit.cc:16
bool operator==(const TrackerHit &other) const
Definition: TrackerHit.h:87
void unlink()
disconnect from TrackerHitObj instance
Definition: TrackerHit.h:85
unsigned int id() const
Definition: TrackerHit.h:93
~TrackerHit()
destructor
Definition: TrackerHit.cc:50
const float & getTimeError() const
Access the Error on the time.
Definition: TrackerHit.cc:60
const float & getEdep() const
Access the Energy deposit in this hit [GeV].
Definition: TrackerHit.cc:61
Definition: TrackerHitObj.h:17
Definition: CalorimeterHit.cc:13
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition: CalorimeterHit.cc:93