3#ifndef EICD_RingImage_H
4#define EICD_RingImage_H
8#include "edm4hep/Vector3f.h"
9#include "podio/ObjectID.h"
12#ifdef PODIO_JSON_OUTPUT
13#include "nlohmann/json.hpp"
20class MutableRingImage;
35 RingImage(
float npe, edm4hep::Vector3f position, edm4hep::Vector3f positionError,
float theta,
float thetaError,
float radius,
float radiusError);
56 const float&
getNpe()
const;
97 swap(a.m_obj, b.m_obj);
104std::ostream&
operator<<(std::ostream& o,
const RingImage& value);
106#ifdef PODIO_JSON_OUTPUT
107void to_json(nlohmann::json& j,
const RingImage& value);
Definition: MutableRingImage.h:27
Definition: RingImageCollection.h:82
Definition: RingImageCollection.h:35
Definition: RingImage.h:26
const float & getThetaError() const
Access the Error on the opening angle.
Definition: RingImage.cc:60
bool operator<(const RingImage &other) const
Definition: RingImage.h:89
bool operator==(const RingImage &other) const
Definition: RingImage.h:85
unsigned int id() const
Definition: RingImage.h:91
const podio::ObjectID getObjectID() const
Definition: RingImage.cc:76
const edm4hep::Vector3f & getPosition() const
Access the Global position of the cluster [mm].
Definition: RingImage.cc:57
~RingImage()
destructor
Definition: RingImage.cc:50
friend void swap(RingImage &a, RingImage &b)
Definition: RingImage.h:95
RingImage & operator=(RingImage other)
copy-assignment operator
Definition: RingImage.cc:35
void unlink()
disconnect from RingImageObj instance
Definition: RingImage.h:83
const float & getRadius() const
Access the Radius of the best fit ring [mm].
Definition: RingImage.cc:61
const float & getNpe() const
Access the Number of photo-electrons [#].
Definition: RingImage.cc:56
bool isAvailable() const
check whether the object is actually available
Definition: RingImage.cc:69
const edm4hep::Vector3f & getPositionError() const
Access the Error on the position.
Definition: RingImage.cc:58
MutableRingImage clone() const
create a mutable deep-copy of the object with identical relations
Definition: RingImage.cc:46
RingImage()
default constructor
Definition: RingImage.cc:16
const float & getTheta() const
Access the Opening angle of the ring [rad, 0->pi].
Definition: RingImage.cc:59
const float & getRadiusError() const
Access the Estimated error from the fit [mm].
Definition: RingImage.cc:62
Definition: RingImageObj.h:17
Definition: CalorimeterHit.cc:13
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition: CalorimeterHit.cc:93