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);
81 void unlink() { m_obj = podio::utils::MaybeSharedPtr<RawTrackerHitObj>{
nullptr}; }
95 swap(a.m_obj, b.m_obj);
100 explicit RawTrackerHit(podio::utils::MaybeSharedPtr<RawTrackerHitObj> obj);
103 podio::utils::MaybeSharedPtr<RawTrackerHitObj> m_obj{
nullptr};
106std::ostream&
operator<<(std::ostream& o,
const RawTrackerHit& value);
108#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
109void to_json(nlohmann::json& j,
const RawTrackerHit& value);
Definition MutableRawTrackerHit.h:30
Definition RawTrackerHitCollectionData.h:30
Definition RawTrackerHitCollection.h:95
Definition RawTrackerHitCollection.h:40
Definition RawTrackerHit.h:31
const podio::ObjectID getObjectID() const
Definition RawTrackerHit.cc:64
std::uint64_t getCellID() const
Access the The detector specific (geometrical) cell id.
Definition RawTrackerHit.cc:48
~RawTrackerHit()=default
destructor
void unlink()
disconnect from RawTrackerHitObj instance
Definition RawTrackerHit.h:81
std::int32_t getTimeStamp() const
Access the TDC value.
Definition RawTrackerHit.cc:50
RawTrackerHit()
default constructor
Definition RawTrackerHit.cc:21
bool operator==(const RawTrackerHit &other) const
Definition RawTrackerHit.h:83
RawTrackerHit & operator=(RawTrackerHit other)
copy-assignment operator
Definition RawTrackerHit.cc:31
friend class MutableRawTrackerHit
Definition RawTrackerHit.h:33
bool isAvailable() const
check whether the object is actually available
Definition RawTrackerHit.cc:57
std::int32_t getCharge() const
Access the ADC value.
Definition RawTrackerHit.cc:49
friend class RawTrackerHitCollection
Definition RawTrackerHit.h:34
bool operator<(const RawTrackerHit &other) const
Definition RawTrackerHit.h:87
podio::ObjectID id() const
Definition RawTrackerHit.h:89
static RawTrackerHit makeEmpty()
Definition RawTrackerHit.cc:44
RawTrackerHit(const RawTrackerHit &other)=default
copy constructor
friend void swap(RawTrackerHit &a, RawTrackerHit &b)
Definition RawTrackerHit.h:93
MutableRawTrackerHit clone() const
create a mutable deep-copy of the object with identical relations
Definition RawTrackerHit.cc:36
Definition RawTrackerHitObj.h:17
Definition CalorimeterHit.cc:18
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition CalorimeterHit.cc:97