3#ifndef EDM4EIC_MutableCherenkovParticleID_H
4#define EDM4EIC_MutableCherenkovParticleID_H
12#include "podio/RelationRange.h"
15#include "podio/utilities/MaybeSharedPtr.h"
19#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
20#include "nlohmann/json_fwd.hpp"
26class MutableTrackSegment;
87 [[deprecated(
"use getNpe instead")]]
95 [[deprecated(
"use getRefractiveIndex instead")]]
103 [[deprecated(
"use getPhotonEnergy instead")]]
119 std::vector<edm4eic::CherenkovParticleIDHypothesis>::const_iterator
hypotheses_begin()
const;
120 std::vector<edm4eic::CherenkovParticleIDHypothesis>::const_iterator
hypotheses_end()
const;
121 podio::RelationRange<edm4eic::CherenkovParticleIDHypothesis>
getHypotheses()
const;
134 void unlink() { m_obj = podio::utils::MaybeSharedPtr<CherenkovParticleIDObj>{
nullptr}; }
151 swap(a.m_obj, b.m_obj);
158 podio::utils::MaybeSharedPtr<CherenkovParticleIDObj> m_obj{
nullptr};
161#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
162void to_json(nlohmann::json& j,
const MutableCherenkovParticleID& value);
Definition CherenkovParticleIDCollection.h:92
Definition CherenkovParticleID.h:39
Definition CherenkovParticleIDHypothesis.h:19
Definition CherenkovParticleIDCollection.h:63
Definition MCRecoTrackerHitAssociation.h:39
Definition MutableCherenkovParticleID.h:37
std::vector< edm4eic::CherenkovParticleIDHypothesis >::const_iterator hypotheses_begin() const
Definition MutableCherenkovParticleID.cc:122
bool operator!=(const MutableCherenkovParticleID &other) const
Definition MutableCherenkovParticleID.h:139
std::vector< edm4hep::Vector2f >::const_iterator thetaPhiPhotons_begin() const
Definition MutableCherenkovParticleID.cc:158
const podio::ObjectID getObjectID() const
Definition MutableCherenkovParticleID.cc:198
float getPhotonEnergy() const
Access the Average energy for these Cherenkov photons [GeV].
Definition MutableCherenkovParticleID.cc:55
float & photonEnergy()
Get reference to Average energy for these Cherenkov photons [GeV].
Definition MutableCherenkovParticleID.cc:73
bool operator<(const MutableCherenkovParticleID &other) const
Definition MutableCherenkovParticleID.h:143
void setChargedParticle(const edm4eic::TrackSegment &value)
Set the reconstructed charged particle.
Definition MutableCherenkovParticleID.cc:75
friend class CherenkovParticleID
Definition MutableCherenkovParticleID.h:41
float getRefractiveIndex() const
Access the Average refractive index at the Cherenkov photons' vertices.
Definition MutableCherenkovParticleID.cc:54
~MutableCherenkovParticleID()=default
destructor
podio::RelationRange< edm4hep::Vector2f > getThetaPhiPhotons() const
Definition MutableCherenkovParticleID.cc:181
std::vector< edm4eic::CherenkovParticleIDHypothesis >::const_iterator hypotheses_end() const
Definition MutableCherenkovParticleID.cc:128
void addToThetaPhiPhotons(const edm4hep::Vector2f &)
Definition MutableCherenkovParticleID.cc:153
void setPhotonEnergy(float value)
Set the Average energy for these Cherenkov photons [GeV].
Definition MutableCherenkovParticleID.cc:71
MutableCherenkovParticleID(const MutableCherenkovParticleID &other)=default
copy constructor
std::size_t thetaPhiPhotons_size() const
Definition MutableCherenkovParticleID.cc:170
const edm4eic::TrackSegment getChargedParticle() const
Access the reconstructed charged particle.
Definition MutableCherenkovParticleID.cc:57
bool isAvailable() const
check whether the object is actually available
Definition MutableCherenkovParticleID.cc:194
float & refractiveIndex()
Get reference to Average refractive index at the Cherenkov photons' vertices.
Definition MutableCherenkovParticleID.cc:70
bool operator!=(const CherenkovParticleID &other) const
Definition MutableCherenkovParticleID.h:140
podio::RelationRange< edm4eic::CherenkovParticleIDHypothesis > getHypotheses() const
Definition MutableCherenkovParticleID.cc:145
friend void swap(MutableCherenkovParticleID &a, MutableCherenkovParticleID &b)
Definition MutableCherenkovParticleID.h:149
void addToHypotheses(const edm4eic::CherenkovParticleIDHypothesis &)
Definition MutableCherenkovParticleID.cc:117
MutableCherenkovParticleID clone(bool cloneRelations=true) const
Definition MutableCherenkovParticleID.cc:34
void unlink()
disconnect from CherenkovParticleIDObj instance
Definition MutableCherenkovParticleID.h:134
void addToRawHitAssociations(const edm4eic::MCRecoTrackerHitAssociation &)
Definition MutableCherenkovParticleID.cc:81
std::size_t rawHitAssociations_size() const
Definition MutableCherenkovParticleID.cc:98
friend class CherenkovParticleIDCollection
Definition MutableCherenkovParticleID.h:39
std::vector< edm4eic::MCRecoTrackerHitAssociation >::const_iterator rawHitAssociations_end() const
Definition MutableCherenkovParticleID.cc:92
float getNpe() const
Access the Overall photoelectron count.
Definition MutableCherenkovParticleID.cc:53
float & npe()
Get reference to Overall photoelectron count.
Definition MutableCherenkovParticleID.cc:67
std::size_t hypotheses_size() const
Definition MutableCherenkovParticleID.cc:134
MutableCherenkovParticleID & operator=(MutableCherenkovParticleID other)
copy-assignment operator
Definition MutableCherenkovParticleID.cc:29
podio::ObjectID id() const
Definition MutableCherenkovParticleID.h:145
void setRefractiveIndex(float value)
Set the Average refractive index at the Cherenkov photons' vertices.
Definition MutableCherenkovParticleID.cc:68
podio::RelationRange< edm4eic::MCRecoTrackerHitAssociation > getRawHitAssociations() const
Definition MutableCherenkovParticleID.cc:109
void setNpe(float value)
Set the Overall photoelectron count.
Definition MutableCherenkovParticleID.cc:65
std::vector< edm4hep::Vector2f >::const_iterator thetaPhiPhotons_end() const
Definition MutableCherenkovParticleID.cc:164
MutableCherenkovParticleID()
default constructor
Definition MutableCherenkovParticleID.cc:19
std::vector< edm4eic::MCRecoTrackerHitAssociation >::const_iterator rawHitAssociations_begin() const
Definition MutableCherenkovParticleID.cc:86
bool operator==(const MutableCherenkovParticleID &other) const
Definition MutableCherenkovParticleID.h:136
Definition TrackSegment.h:38
Definition CalorimeterHit.cc:17