3#ifndef EDM4EIC_RawTrackerHit_H
4#define EDM4EIC_RawTrackerHit_H
10#include "podio/utilities/MaybeSharedPtr.h"
11#include "podio/detail/OrderKey.h"
16#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
17#include "nlohmann/json_fwd.hpp"
28OrderKey
getOrderKey(
const edm4eic::RawTrackerHit& obj);
57 RawTrackerHit(
const std::uint64_t cellID,
const std::int32_t charge,
const std::int32_t timeStamp);
80 static constexpr std::string_view
typeName =
"edm4eic::RawTrackerHit";
98 void unlink() { m_obj = podio::utils::MaybeSharedPtr<RawTrackerHitObj>{
nullptr}; }
113 friend std::hash<RawTrackerHit>;
117 swap(a.m_obj, b.m_obj);
122 explicit RawTrackerHit(podio::utils::MaybeSharedPtr<RawTrackerHitObj> obj);
125 podio::utils::MaybeSharedPtr<RawTrackerHitObj> m_obj{
nullptr};
130#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
142 return std::hash<edm4eic::RawTrackerHitObj*>{}(obj.m_obj.get());
150#if defined(__clang__)
151#pragma clang diagnostic push
152#pragma clang diagnostic ignored "-Wunknown-warning-option"
153#pragma clang diagnostic ignored "-Wdeprecated-redundant-constexpr-static-def"
154#pragma clang diagnostic ignored "-Wdeprecated"
156#pragma clang diagnostic pop
157#elif defined(__GNUC__)
158#pragma GCC diagnostic push
159#pragma GCC diagnostic ignored "-Wdeprecated"
161#pragma GCC diagnostic pop
Definition MutableRawTrackerHit.h:33
Definition RawTrackerHitCollectionData.h:30
Definition RawTrackerHitCollection.h:137
Definition RawTrackerHit.h:41
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
MutableRawTrackerHit mutable_type
Definition RawTrackerHit.h:50
~RawTrackerHit()=default
destructor
static constexpr std::string_view typeName
Definition RawTrackerHit.h:80
friend class RawTrackerHitCollectionIterator
Definition RawTrackerHit.h:46
void unlink()
disconnect from RawTrackerHitObj instance
Definition RawTrackerHit.h:98
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:100
RawTrackerHit & operator=(RawTrackerHit other) &&=delete
bool operator!=(const RawTrackerHit &other) const
Definition RawTrackerHit.h:103
RawTrackerHitCollection collection_type
Definition RawTrackerHit.h:51
friend class MutableRawTrackerHit
Definition RawTrackerHit.h:43
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:104
std::int32_t getCharge() const
Access the ADC value.
Definition RawTrackerHit.cc:55
friend class RawTrackerHitCollection
Definition RawTrackerHit.h:44
bool operator<(const RawTrackerHit &other) const
Definition RawTrackerHit.h:107
RawTrackerHit & operator=(RawTrackerHit other) &
copy-assignment operator
Definition RawTrackerHit.cc:30
podio::ObjectID id() const
Definition RawTrackerHit.h:109
static RawTrackerHit makeEmpty()
Definition RawTrackerHit.cc:50
RawTrackerHit(const RawTrackerHit &other)=default
copy constructor
friend void swap(RawTrackerHit &a, RawTrackerHit &b)
Definition RawTrackerHit.h:115
Definition RawTrackerHitObj.h:17
Definition CalorimeterHit.cc:17
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition CalorimeterHit.cc:103
Definition CalorimeterHit.h:31
OrderKey getOrderKey(const edm4eic::CalorimeterHit &obj)
Definition CalorimeterHit.cc:150
std::size_t operator()(const edm4eic::RawTrackerHit &obj) const
Definition RawTrackerHit.h:141