3#ifndef EDM4EIC_IrtRadiatorInfo_H
4#define EDM4EIC_IrtRadiatorInfo_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::IrtRadiatorInfo& obj);
57 IrtRadiatorInfo(
const std::uint16_t npe,
const std::uint16_t nhits,
const float angle);
83 static constexpr std::string_view
typeName =
"edm4eic::IrtRadiatorInfo";
86 std::uint16_t
getNpe()
const;
101 void unlink() { m_obj = podio::utils::MaybeSharedPtr<IrtRadiatorInfoObj>{
nullptr}; }
116 friend std::hash<IrtRadiatorInfo>;
120 swap(a.m_obj, b.m_obj);
125 explicit IrtRadiatorInfo(podio::utils::MaybeSharedPtr<IrtRadiatorInfoObj> obj);
128 podio::utils::MaybeSharedPtr<IrtRadiatorInfoObj> m_obj{
new IrtRadiatorInfoObj{}, podio::utils::MarkOwned};
133#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
145 return std::hash<edm4eic::IrtRadiatorInfoObj*>{}(obj.m_obj.get());
153#if defined(__clang__)
154 #pragma clang diagnostic push
155 #pragma clang diagnostic ignored "-Wunknown-warning-option"
156 #pragma clang diagnostic ignored "-Wdeprecated-redundant-constexpr-static-def"
157 #pragma clang diagnostic ignored "-Wdeprecated"
159 #pragma clang diagnostic pop
160#elif defined(__GNUC__)
161 #pragma GCC diagnostic push
162 #pragma GCC diagnostic ignored "-Wdeprecated"
164 #pragma GCC diagnostic pop
Definition IrtRadiatorInfoCollectionData.h:31
Definition IrtRadiatorInfoCollection.h:139
Definition IrtRadiatorInfo.h:41
constexpr bool operator!=(const IrtRadiatorInfo &other) const
Definition IrtRadiatorInfo.h:106
bool operator<(const IrtRadiatorInfo &other) const
Definition IrtRadiatorInfo.h:110
friend class IrtRadiatorInfoCollectionIterator
Definition IrtRadiatorInfo.h:46
IrtRadiatorInfo & operator=(IrtRadiatorInfo other) &
copy-assignment operator
Definition IrtRadiatorInfo.cc:26
bool operator!=(const MutableIrtRadiatorInfo &other) const
Definition IrtRadiatorInfo.h:107
float getAngle() const
Access the Reconstructed Cherenkov angle.
Definition IrtRadiatorInfo.cc:52
const podio::ObjectID getObjectID() const
Definition IrtRadiatorInfo.cc:63
std::uint16_t getNpe() const
Access the Detected photoelectron count.
Definition IrtRadiatorInfo.cc:50
IrtRadiatorInfo(const IrtRadiatorInfo &other) noexcept=default
copy constructor
IrtRadiatorInfo()=default
default constructor
static IrtRadiatorInfo makeEmpty()
Definition IrtRadiatorInfo.cc:46
IrtRadiatorInfo & operator=(IrtRadiatorInfo other) &&=delete
IrtRadiatorInfoCollection collection_type
Definition IrtRadiatorInfo.h:51
~IrtRadiatorInfo()=default
destructor
bool isAvailable() const
check whether the object is actually available
Definition IrtRadiatorInfo.cc:59
friend void swap(IrtRadiatorInfo &a, IrtRadiatorInfo &b)
Definition IrtRadiatorInfo.h:118
MutableIrtRadiatorInfo clone(bool cloneRelations=true) const
Definition IrtRadiatorInfo.cc:31
friend class IrtRadiatorInfoCollection
Definition IrtRadiatorInfo.h:44
MutableIrtRadiatorInfo mutable_type
Definition IrtRadiatorInfo.h:50
void unlink()
disconnect from IrtRadiatorInfoObj instance
Definition IrtRadiatorInfo.h:101
constexpr bool operator==(const IrtRadiatorInfo &other) const
Definition IrtRadiatorInfo.h:103
std::uint16_t getNhits() const
Access the Hit count associated with this radiator by IRT engine.
Definition IrtRadiatorInfo.cc:51
IrtRadiatorInfo(IrtRadiatorInfo &&other) noexcept=default
move constructor
podio::ObjectID id() const
Definition IrtRadiatorInfo.h:112
static constexpr std::string_view typeName
Definition IrtRadiatorInfo.h:83
friend class MutableIrtRadiatorInfo
Definition IrtRadiatorInfo.h:43
Definition IrtRadiatorInfoObj.h:17
Definition MutableIrtRadiatorInfo.h:33
Definition ArrowMapper.cc:63
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition CalorimeterHit.cc:99
Definition CalorimeterHit.h:31
OrderKey getOrderKey(const edm4eic::CalorimeterHit &obj)
Definition CalorimeterHit.cc:146
std::size_t operator()(const edm4eic::IrtRadiatorInfo &obj) const
Definition IrtRadiatorInfo.h:144