3#ifndef EDM4EIC_MutableRingImage_H
4#define EDM4EIC_MutableRingImage_H
10#include "edm4hep/Vector3f.h"
12#include "podio/utilities/MaybeSharedPtr.h"
17#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
18#include "nlohmann/json_fwd.hpp"
120 void unlink() { m_obj = podio::utils::MaybeSharedPtr<RingImageObj>{
nullptr}; }
134 swap(a.m_obj, b.m_obj);
141 podio::utils::MaybeSharedPtr<RingImageObj> m_obj{
nullptr};
144#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
145void to_json(nlohmann::json& j,
const MutableRingImage& value);
Definition MutableRingImage.h:30
MutableRingImage & operator=(MutableRingImage other)
copy-assignment operator
Definition MutableRingImage.cc:35
void setPosition(edm4hep::Vector3f value)
Set the Global position of the cluster [mm].
Definition MutableRingImage.cc:57
float getThetaError() const
Access the Error on the opening angle.
Definition MutableRingImage.cc:51
MutableRingImage()
default constructor
Definition MutableRingImage.cc:21
bool isAvailable() const
check whether the object is actually available
Definition MutableRingImage.cc:72
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:120
void setRadius(float value)
Set the Radius of the best fit ring [mm].
Definition MutableRingImage.cc:63
friend class RingImage
Definition MutableRingImage.h:34
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:62
podio::ObjectID id() const
Definition MutableRingImage.h:128
void setTheta(float value)
Set the Opening angle of the ring [rad, 0->pi].
Definition MutableRingImage.cc:61
friend void swap(MutableRingImage &a, MutableRingImage &b)
Definition MutableRingImage.h:132
float getNpe() const
Access the Number of photo-electrons [#].
Definition MutableRingImage.cc:47
bool operator==(const MutableRingImage &other) const
Definition MutableRingImage.h:122
MutableRingImage clone() const
create a mutable deep-copy of the object with identical relations
Definition MutableRingImage.cc:40
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:32
edm4hep::Vector3f & positionError()
Get reference to Error on the position.
Definition MutableRingImage.cc:60
~MutableRingImage()=default
destructor
edm4hep::Vector3f & position()
Get reference to Global position of the cluster [mm].
Definition MutableRingImage.cc:58
bool operator<(const MutableRingImage &other) const
Definition MutableRingImage.h:126
float getRadius() const
Access the Radius of the best fit ring [mm].
Definition MutableRingImage.cc:52
const podio::ObjectID getObjectID() const
Definition MutableRingImage.cc:79
void setPositionError(edm4hep::Vector3f value)
Set the Error on the position.
Definition MutableRingImage.cc:59
void setRadiusError(float value)
Set the Estimated error from the fit [mm].
Definition MutableRingImage.cc:64
Definition RingImageCollection.h:95
Definition RingImage.h:31
Definition RingImageCollection.h:66
Definition CalorimeterHit.cc:18