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"
89 [[deprecated(
"use getNpe instead")]]
97 [[deprecated(
"use getPosition instead")]]
105 [[deprecated(
"use getPositionError instead")]]
113 [[deprecated(
"use getTheta instead")]]
121 [[deprecated(
"use getThetaError instead")]]
129 [[deprecated(
"use getRadius instead")]]
137 [[deprecated(
"use getRadiusError instead")]]
148 void unlink() { m_obj = podio::utils::MaybeSharedPtr<RingImageObj>{
nullptr}; }
165 swap(a.m_obj, b.m_obj);
172 podio::utils::MaybeSharedPtr<RingImageObj> m_obj{
nullptr};
175#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
176void to_json(nlohmann::json& j,
const MutableRingImage& value);
Definition MutableRingImage.h:29
float & radius()
Get reference to Radius of the best fit ring [mm].
Definition MutableRingImage.cc:73
MutableRingImage & operator=(MutableRingImage other)
copy-assignment operator
Definition MutableRingImage.cc:32
float & theta()
Get reference to Opening angle of the ring [rad, 0->pi].
Definition MutableRingImage.cc:67
void setPosition(edm4hep::Vector3f value)
Set the Global position of the cluster [mm].
Definition MutableRingImage.cc:59
float getThetaError() const
Access the Error on the opening angle.
Definition MutableRingImage.cc:51
MutableRingImage()
default constructor
Definition MutableRingImage.cc:18
bool isAvailable() const
check whether the object is actually available
Definition MutableRingImage.cc:84
MutableRingImage(const MutableRingImage &other)=default
copy constructor
void setNpe(float value)
Set the Number of photo-electrons [#].
Definition MutableRingImage.cc:56
void unlink()
disconnect from RingImageObj instance
Definition MutableRingImage.h:148
void setRadius(float value)
Set the Radius of the best fit ring [mm].
Definition MutableRingImage.cc:71
friend class RingImage
Definition MutableRingImage.h:33
const edm4hep::Vector3f & getPositionError() const
Access the Error on the position.
Definition MutableRingImage.cc:49
void setThetaError(float value)
Set the Error on the opening angle.
Definition MutableRingImage.cc:68
podio::ObjectID id() const
Definition MutableRingImage.h:159
float & npe()
Get reference to Number of photo-electrons [#].
Definition MutableRingImage.cc:58
float & radiusError()
Get reference to Estimated error from the fit [mm].
Definition MutableRingImage.cc:76
void setTheta(float value)
Set the Opening angle of the ring [rad, 0->pi].
Definition MutableRingImage.cc:65
friend void swap(MutableRingImage &a, MutableRingImage &b)
Definition MutableRingImage.h:163
float getNpe() const
Access the Number of photo-electrons [#].
Definition MutableRingImage.cc:47
bool operator==(const MutableRingImage &other) const
Definition MutableRingImage.h:150
MutableRingImage clone(bool cloneRelations=true) const
Definition MutableRingImage.cc:37
const edm4hep::Vector3f & getPosition() const
Access the Global position of the cluster [mm].
Definition MutableRingImage.cc:48
float getTheta() const
Access the Opening angle of the ring [rad, 0->pi].
Definition MutableRingImage.cc:50
float getRadiusError() const
Access the Estimated error from the fit [mm].
Definition MutableRingImage.cc:53
friend class RingImageCollection
Definition MutableRingImage.h:31
edm4hep::Vector3f & positionError()
Get reference to Error on the position.
Definition MutableRingImage.cc:64
~MutableRingImage()=default
destructor
edm4hep::Vector3f & position()
Get reference to Global position of the cluster [mm].
Definition MutableRingImage.cc:61
bool operator!=(const MutableRingImage &other) const
Definition MutableRingImage.h:153
bool operator<(const MutableRingImage &other) const
Definition MutableRingImage.h:157
float getRadius() const
Access the Radius of the best fit ring [mm].
Definition MutableRingImage.cc:52
float & thetaError()
Get reference to Error on the opening angle.
Definition MutableRingImage.cc:70
bool operator!=(const RingImage &other) const
Definition MutableRingImage.h:154
const podio::ObjectID getObjectID() const
Definition MutableRingImage.cc:88
void setPositionError(edm4hep::Vector3f value)
Set the Error on the position.
Definition MutableRingImage.cc:62
void setRadiusError(float value)
Set the Estimated error from the fit [mm].
Definition MutableRingImage.cc:74
Definition RingImageCollection.h:92
Definition RingImage.h:31
Definition RingImageCollection.h:63
Definition CalorimeterHit.cc:17