3#ifndef EDM4EIC_MutableRawTrackerHit_H
4#define EDM4EIC_MutableRawTrackerHit_H
12#include "podio/utilities/MaybeSharedPtr.h"
16#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
17#include "nlohmann/json_fwd.hpp"
77 [[deprecated(
"use getCellID instead")]]
85 [[deprecated(
"use getCharge instead")]]
93 [[deprecated(
"use getTimeStamp instead")]]
104 void unlink() { m_obj = podio::utils::MaybeSharedPtr<RawTrackerHitObj>{
nullptr}; }
121 swap(a.m_obj, b.m_obj);
128 podio::utils::MaybeSharedPtr<RawTrackerHitObj> m_obj{
nullptr};
131#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
132void to_json(nlohmann::json& j,
const MutableRawTrackerHit& value);
Definition MutableRawTrackerHit.h:29
bool operator==(const MutableRawTrackerHit &other) const
Definition MutableRawTrackerHit.h:106
bool operator!=(const MutableRawTrackerHit &other) const
Definition MutableRawTrackerHit.h:109
~MutableRawTrackerHit()=default
destructor
void setTimeStamp(std::int32_t value)
Set the TDC value.
Definition MutableRawTrackerHit.cc:54
void unlink()
disconnect from RawTrackerHitObj instance
Definition MutableRawTrackerHit.h:104
std::int32_t & charge()
Get reference to ADC value.
Definition MutableRawTrackerHit.cc:53
std::int32_t getTimeStamp() const
Access the TDC value.
Definition MutableRawTrackerHit.cc:45
MutableRawTrackerHit & operator=(MutableRawTrackerHit other)
copy-assignment operator
Definition MutableRawTrackerHit.cc:28
std::int32_t & timeStamp()
Get reference to TDC value.
Definition MutableRawTrackerHit.cc:56
friend void swap(MutableRawTrackerHit &a, MutableRawTrackerHit &b)
Definition MutableRawTrackerHit.h:119
bool isAvailable() const
check whether the object is actually available
Definition MutableRawTrackerHit.cc:64
std::uint64_t getCellID() const
Access the The detector specific (geometrical) cell id.
Definition MutableRawTrackerHit.cc:43
bool operator!=(const RawTrackerHit &other) const
Definition MutableRawTrackerHit.h:110
void setCellID(std::uint64_t value)
Set the The detector specific (geometrical) cell id.
Definition MutableRawTrackerHit.cc:48
bool operator<(const MutableRawTrackerHit &other) const
Definition MutableRawTrackerHit.h:113
const podio::ObjectID getObjectID() const
Definition MutableRawTrackerHit.cc:68
std::uint64_t & cellID()
Get reference to The detector specific (geometrical) cell id.
Definition MutableRawTrackerHit.cc:50
void setCharge(std::int32_t value)
Set the ADC value.
Definition MutableRawTrackerHit.cc:51
MutableRawTrackerHit(const MutableRawTrackerHit &other)=default
copy constructor
MutableRawTrackerHit clone(bool cloneRelations=true) const
Definition MutableRawTrackerHit.cc:33
friend class RawTrackerHitCollection
Definition MutableRawTrackerHit.h:31
MutableRawTrackerHit()
default constructor
Definition MutableRawTrackerHit.cc:18
podio::ObjectID id() const
Definition MutableRawTrackerHit.h:115
std::int32_t getCharge() const
Access the ADC value.
Definition MutableRawTrackerHit.cc:44
friend class RawTrackerHit
Definition MutableRawTrackerHit.h:33
Definition RawTrackerHitCollection.h:92
Definition RawTrackerHit.h:31
Definition RawTrackerHitCollection.h:63
Definition CalorimeterHit.cc:17