3#ifndef EDM4EIC_MutableRingImage_H
4#define EDM4EIC_MutableRingImage_H
10#include "edm4hep/Vector3f.h"
12#include "podio/utilities/MaybeSharedPtr.h"
16#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
17#include "nlohmann/json_fwd.hpp"
47 MutableRingImage(
const float npe,
const edm4hep::Vector3f& position,
const edm4hep::Vector3f& positionError,
const float theta,
const float thetaError,
const float radius,
const float radiusError);
90 void setNpe(
const float npe);
95 void setPosition(
const edm4hep::Vector3f& position);
132 void unlink() { m_obj = podio::utils::MaybeSharedPtr<RingImageObj>{
nullptr}; }
147 friend std::hash<MutableRingImage>;
151 swap(a.m_obj, b.m_obj);
158 podio::utils::MaybeSharedPtr<RingImageObj> m_obj{
new RingImageObj{}, podio::utils::MarkOwned};
161#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
173 return std::hash<edm4eic::RingImageObj*>{}(obj.m_obj.get());
Definition MutableRingImage.h:33
MutableRingImage()=default
default constructor
float getThetaError() const
Access the Error on the opening angle.
Definition MutableRingImage.cc:47
constexpr bool operator==(const MutableRingImage &other) const
Definition MutableRingImage.h:134
void setTheta(const float theta)
Set the Opening angle of the ring [rad, 0->pi].
Definition MutableRingImage.cc:58
void setNpe(const float npe)
Set the Number of photo-electrons [#].
Definition MutableRingImage.cc:52
void setThetaError(const float thetaError)
Set the Error on the opening angle.
Definition MutableRingImage.cc:60
MutableRingImage & operator=(MutableRingImage other) &&=delete
bool isAvailable() const
check whether the object is actually available
Definition MutableRingImage.cc:73
MutableRingImage(const MutableRingImage &other)=default
copy constructor
void unlink()
disconnect from RingImageObj instance
Definition MutableRingImage.h:132
friend class RingImage
Definition MutableRingImage.h:37
const edm4hep::Vector3f & getPositionError() const
Access the Error on the position.
Definition MutableRingImage.cc:45
podio::ObjectID id() const
Definition MutableRingImage.h:143
friend class RingImageMutableCollectionIterator
Definition MutableRingImage.h:36
MutableRingImage & operator=(MutableRingImage other) &
copy-assignment operator
Definition MutableRingImage.cc:28
constexpr bool operator!=(const MutableRingImage &other) const
Definition MutableRingImage.h:137
friend void swap(MutableRingImage &a, MutableRingImage &b)
Definition MutableRingImage.h:149
float getNpe() const
Access the Number of photo-electrons [#].
Definition MutableRingImage.cc:43
RingImage object_type
Definition MutableRingImage.h:40
void setPosition(const edm4hep::Vector3f &position)
Set the Global position of the cluster [mm].
Definition MutableRingImage.cc:54
MutableRingImage clone(bool cloneRelations=true) const
Definition MutableRingImage.cc:33
void setPositionError(const edm4hep::Vector3f &positionError)
Set the Error on the position.
Definition MutableRingImage.cc:56
const edm4hep::Vector3f & getPosition() const
Access the Global position of the cluster [mm].
Definition MutableRingImage.cc:44
float getTheta() const
Access the Opening angle of the ring [rad, 0->pi].
Definition MutableRingImage.cc:46
float getRadiusError() const
Access the Estimated error from the fit [mm].
Definition MutableRingImage.cc:49
friend class RingImageCollection
Definition MutableRingImage.h:35
~MutableRingImage()=default
destructor
bool operator<(const MutableRingImage &other) const
Definition MutableRingImage.h:141
RingImageCollection collection_type
Definition MutableRingImage.h:41
float getRadius() const
Access the Radius of the best fit ring [mm].
Definition MutableRingImage.cc:48
bool operator!=(const RingImage &other) const
Definition MutableRingImage.h:138
void setRadiusError(const float radiusError)
Set the Estimated error from the fit [mm].
Definition MutableRingImage.cc:64
const podio::ObjectID getObjectID() const
Definition MutableRingImage.cc:77
void setRadius(const float radius)
Set the Radius of the best fit ring [mm].
Definition MutableRingImage.cc:62
Definition RingImageCollection.h:139
Definition RingImage.h:41
Definition RingImageObj.h:17
Definition ArrowMapper.cc:61
OrderKey getOrderKey(const edm4eic::CalorimeterHit &obj)
Definition CalorimeterHit.cc:146
std::size_t operator()(const edm4eic::MutableRingImage &obj) const
Definition MutableRingImage.h:172