3#ifndef EDM4EIC_CherenkovParticleID_H
4#define EDM4EIC_CherenkovParticleID_H
10#include "podio/RelationRange.h"
13#include "podio/utilities/MaybeSharedPtr.h"
18#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
19#include "nlohmann/json_fwd.hpp"
25class MutableTrackSegment;
31class MutableCherenkovParticleID;
32class CherenkovParticleIDCollection;
33class CherenkovParticleIDCollectionData;
96 std::vector<edm4eic::CherenkovParticleIDHypothesis>::const_iterator
hypotheses_begin()
const;
97 std::vector<edm4eic::CherenkovParticleIDHypothesis>::const_iterator
hypotheses_end()
const;
98 podio::RelationRange<edm4eic::CherenkovParticleIDHypothesis>
getHypotheses()
const;
109 void unlink() { m_obj = podio::utils::MaybeSharedPtr<CherenkovParticleIDObj>{
nullptr}; }
126 swap(a.m_obj, b.m_obj);
134 podio::utils::MaybeSharedPtr<CherenkovParticleIDObj> m_obj{
nullptr};
137std::ostream&
operator<<(std::ostream& o,
const CherenkovParticleID& value);
139#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
140void to_json(nlohmann::json& j,
const CherenkovParticleID& value);
Definition CherenkovParticleIDCollectionData.h:32
Definition CherenkovParticleIDCollection.h:92
Definition CherenkovParticleIDCollection.h:37
Definition CherenkovParticleID.h:39
std::vector< edm4eic::MCRecoTrackerHitAssociation >::const_iterator rawHitAssociations_begin() const
Definition CherenkovParticleID.cc:104
float getNpe() const
Access the Overall photoelectron count.
Definition CherenkovParticleID.cc:91
MutableCherenkovParticleID clone(bool cloneRelations=true) const
Definition CherenkovParticleID.cc:36
const edm4eic::TrackSegment getChargedParticle() const
Access the reconstructed charged particle.
Definition CherenkovParticleID.cc:95
podio::RelationRange< edm4eic::MCRecoTrackerHitAssociation > getRawHitAssociations() const
Definition CherenkovParticleID.cc:127
std::vector< edm4hep::Vector2f >::const_iterator thetaPhiPhotons_end() const
Definition CherenkovParticleID.cc:174
CherenkovParticleID(const CherenkovParticleID &other)=default
copy constructor
podio::ObjectID id() const
Definition CherenkovParticleID.h:120
CherenkovParticleID & operator=(CherenkovParticleID other)
copy-assignment operator
Definition CherenkovParticleID.cc:31
std::vector< edm4hep::Vector2f >::const_iterator thetaPhiPhotons_begin() const
Definition CherenkovParticleID.cc:168
std::size_t hypotheses_size() const
Definition CherenkovParticleID.cc:148
float getPhotonEnergy() const
Access the Average energy for these Cherenkov photons [GeV].
Definition CherenkovParticleID.cc:93
~CherenkovParticleID()=default
destructor
const podio::ObjectID getObjectID() const
Definition CherenkovParticleID.cc:207
CherenkovParticleID()
default constructor
Definition CherenkovParticleID.cc:21
friend void swap(CherenkovParticleID &a, CherenkovParticleID &b)
Definition CherenkovParticleID.h:124
bool isAvailable() const
check whether the object is actually available
Definition CherenkovParticleID.cc:203
std::vector< edm4eic::MCRecoTrackerHitAssociation >::const_iterator rawHitAssociations_end() const
Definition CherenkovParticleID.cc:110
void unlink()
disconnect from CherenkovParticleIDObj instance
Definition CherenkovParticleID.h:109
std::vector< edm4eic::CherenkovParticleIDHypothesis >::const_iterator hypotheses_end() const
Definition CherenkovParticleID.cc:142
std::vector< edm4eic::CherenkovParticleIDHypothesis >::const_iterator hypotheses_begin() const
Definition CherenkovParticleID.cc:136
friend class MutableCherenkovParticleID
Definition CherenkovParticleID.h:41
bool operator<(const CherenkovParticleID &other) const
Definition CherenkovParticleID.h:118
friend class CherenkovParticleIDCollection
Definition CherenkovParticleID.h:42
static CherenkovParticleID makeEmpty()
Definition CherenkovParticleID.cc:87
podio::RelationRange< edm4hep::Vector2f > getThetaPhiPhotons() const
Definition CherenkovParticleID.cc:191
bool operator!=(const MutableCherenkovParticleID &other) const
Definition CherenkovParticleID.h:115
bool operator!=(const CherenkovParticleID &other) const
Definition CherenkovParticleID.h:114
bool operator==(const CherenkovParticleID &other) const
Definition CherenkovParticleID.h:111
podio::RelationRange< edm4eic::CherenkovParticleIDHypothesis > getHypotheses() const
Definition CherenkovParticleID.cc:159
float getRefractiveIndex() const
Access the Average refractive index at the Cherenkov photons' vertices.
Definition CherenkovParticleID.cc:92
std::size_t rawHitAssociations_size() const
Definition CherenkovParticleID.cc:116
std::size_t thetaPhiPhotons_size() const
Definition CherenkovParticleID.cc:180
Definition CherenkovParticleIDHypothesis.h:19
Definition CherenkovParticleIDObj.h:25
Definition MCRecoTrackerHitAssociation.h:39
Definition MutableCherenkovParticleID.h:37
Definition TrackSegment.h:38
Definition CalorimeterHit.cc:17
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition CalorimeterHit.cc:103