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"
22class RingImageCollection;
93 [[deprecated(
"use getNpe instead")]]
101 [[deprecated(
"use getPosition instead")]]
109 [[deprecated(
"use getPositionError instead")]]
117 [[deprecated(
"use getTheta instead")]]
125 [[deprecated(
"use getThetaError instead")]]
133 [[deprecated(
"use getRadius instead")]]
141 [[deprecated(
"use getRadiusError instead")]]
152 void unlink() { m_obj = podio::utils::MaybeSharedPtr<RingImageObj>{
nullptr}; }
169 swap(a.m_obj, b.m_obj);
176 podio::utils::MaybeSharedPtr<RingImageObj> m_obj{
nullptr};
179#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
180void to_json(nlohmann::json& j,
const MutableRingImage& value);
Definition MutableRingImage.h:33
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:152
void setRadius(float value)
Set the Radius of the best fit ring [mm].
Definition MutableRingImage.cc:71
friend class RingImage
Definition MutableRingImage.h:37
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:163
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:167
float getNpe() const
Access the Number of photo-electrons [#].
Definition MutableRingImage.cc:47
bool operator==(const MutableRingImage &other) const
Definition MutableRingImage.h:154
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:35
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:157
bool operator<(const MutableRingImage &other) const
Definition MutableRingImage.h:161
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:158
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:91
Definition RingImage.h:41
Definition RingImageCollection.h:62
Definition CalorimeterHit.cc:17
OrderKey getOrderKey(const edm4eic::CalorimeterHit &obj)
Definition CalorimeterHit.cc:150