3#ifndef EDM4EIC_RawTrackerHit_H
4#define EDM4EIC_RawTrackerHit_H
10#include "podio/utilities/MaybeSharedPtr.h"
15#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
16#include "nlohmann/json_fwd.hpp"
23class MutableRawTrackerHit;
24class RawTrackerHitCollection;
25class RawTrackerHitCollectionData;
46 RawTrackerHit(std::uint64_t cellID, std::int32_t charge, std::int32_t timeStamp);
84 void unlink() { m_obj = podio::utils::MaybeSharedPtr<RawTrackerHitObj>{
nullptr}; }
101 swap(a.m_obj, b.m_obj);
106 explicit RawTrackerHit(podio::utils::MaybeSharedPtr<RawTrackerHitObj> obj);
109 podio::utils::MaybeSharedPtr<RawTrackerHitObj> m_obj{
nullptr};
112std::ostream&
operator<<(std::ostream& o,
const RawTrackerHit& value);
114#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
115void to_json(nlohmann::json& j,
const RawTrackerHit& value);
Definition MutableRawTrackerHit.h:29
Definition RawTrackerHitCollectionData.h:30
Definition RawTrackerHitCollection.h:92
Definition RawTrackerHitCollection.h:37
Definition RawTrackerHit.h:31
const podio::ObjectID getObjectID() const
Definition RawTrackerHit.cc:67
std::uint64_t getCellID() const
Access the The detector specific (geometrical) cell id.
Definition RawTrackerHit.cc:54
~RawTrackerHit()=default
destructor
void unlink()
disconnect from RawTrackerHitObj instance
Definition RawTrackerHit.h:84
std::int32_t getTimeStamp() const
Access the TDC value.
Definition RawTrackerHit.cc:56
RawTrackerHit()
default constructor
Definition RawTrackerHit.cc:20
bool operator==(const RawTrackerHit &other) const
Definition RawTrackerHit.h:86
bool operator!=(const RawTrackerHit &other) const
Definition RawTrackerHit.h:89
RawTrackerHit & operator=(RawTrackerHit other)
copy-assignment operator
Definition RawTrackerHit.cc:30
friend class MutableRawTrackerHit
Definition RawTrackerHit.h:33
bool isAvailable() const
check whether the object is actually available
Definition RawTrackerHit.cc:63
MutableRawTrackerHit clone(bool cloneRelations=true) const
Definition RawTrackerHit.cc:35
bool operator!=(const MutableRawTrackerHit &other) const
Definition RawTrackerHit.h:90
std::int32_t getCharge() const
Access the ADC value.
Definition RawTrackerHit.cc:55
friend class RawTrackerHitCollection
Definition RawTrackerHit.h:34
bool operator<(const RawTrackerHit &other) const
Definition RawTrackerHit.h:93
podio::ObjectID id() const
Definition RawTrackerHit.h:95
static RawTrackerHit makeEmpty()
Definition RawTrackerHit.cc:50
RawTrackerHit(const RawTrackerHit &other)=default
copy constructor
friend void swap(RawTrackerHit &a, RawTrackerHit &b)
Definition RawTrackerHit.h:99
Definition RawTrackerHitObj.h:17
Definition CalorimeterHit.cc:17
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition CalorimeterHit.cc:103