3#ifndef EDM4EIC_MutableHadronicFinalState_H
4#define EDM4EIC_MutableHadronicFinalState_H
11#include "podio/RelationRange.h"
14#include "podio/utilities/MaybeSharedPtr.h"
18#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
19#include "nlohmann/json_fwd.hpp"
79 [[deprecated(
"use getSigma instead")]]
83 void setPT(
float value);
87 [[deprecated(
"use getPT instead")]]
95 [[deprecated(
"use getGamma instead")]]
103 std::vector<edm4eic::ReconstructedParticle>::const_iterator
hadrons_begin()
const;
104 std::vector<edm4eic::ReconstructedParticle>::const_iterator
hadrons_end()
const;
105 podio::RelationRange<edm4eic::ReconstructedParticle>
getHadrons()
const;
112 void unlink() { m_obj = podio::utils::MaybeSharedPtr<HadronicFinalStateObj>{
nullptr}; }
129 swap(a.m_obj, b.m_obj);
136 podio::utils::MaybeSharedPtr<HadronicFinalStateObj> m_obj{
nullptr};
139#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
140void to_json(nlohmann::json& j,
const MutableHadronicFinalState& value);
Definition HadronicFinalStateCollection.h:92
Definition HadronicFinalState.h:33
Definition HadronicFinalStateCollection.h:63
Definition MutableHadronicFinalState.h:31
float & sigma()
Get reference to Longitudinal energy-momentum balance (aka E - pz)
Definition MutableHadronicFinalState.cc:53
float & pT()
Get reference to Transverse momentum.
Definition MutableHadronicFinalState.cc:56
bool operator!=(const HadronicFinalState &other) const
Definition MutableHadronicFinalState.h:118
MutableHadronicFinalState()
default constructor
Definition MutableHadronicFinalState.cc:18
friend void swap(MutableHadronicFinalState &a, MutableHadronicFinalState &b)
Definition MutableHadronicFinalState.h:127
float getGamma() const
Access the Hadronic angle.
Definition MutableHadronicFinalState.cc:48
std::vector< edm4eic::ReconstructedParticle >::const_iterator hadrons_end() const
Definition MutableHadronicFinalState.cc:73
std::vector< edm4eic::ReconstructedParticle >::const_iterator hadrons_begin() const
Definition MutableHadronicFinalState.cc:67
float getSigma() const
Access the Longitudinal energy-momentum balance (aka E - pz)
Definition MutableHadronicFinalState.cc:46
void addToHadrons(const edm4eic::ReconstructedParticle &)
Definition MutableHadronicFinalState.cc:62
void unlink()
disconnect from HadronicFinalStateObj instance
Definition MutableHadronicFinalState.h:112
bool isAvailable() const
check whether the object is actually available
Definition MutableHadronicFinalState.cc:103
bool operator==(const MutableHadronicFinalState &other) const
Definition MutableHadronicFinalState.h:114
bool operator<(const MutableHadronicFinalState &other) const
Definition MutableHadronicFinalState.h:121
MutableHadronicFinalState & operator=(MutableHadronicFinalState other)
copy-assignment operator
Definition MutableHadronicFinalState.cc:28
float getPT() const
Access the Transverse momentum.
Definition MutableHadronicFinalState.cc:47
friend class HadronicFinalState
Definition MutableHadronicFinalState.h:35
std::size_t hadrons_size() const
Definition MutableHadronicFinalState.cc:79
float & gamma()
Get reference to Hadronic angle.
Definition MutableHadronicFinalState.cc:59
podio::RelationRange< edm4eic::ReconstructedParticle > getHadrons() const
Definition MutableHadronicFinalState.cc:90
MutableHadronicFinalState clone(bool cloneRelations=true) const
Definition MutableHadronicFinalState.cc:33
void setSigma(float value)
Set the Longitudinal energy-momentum balance (aka E - pz)
Definition MutableHadronicFinalState.cc:51
void setGamma(float value)
Set the Hadronic angle.
Definition MutableHadronicFinalState.cc:57
~MutableHadronicFinalState()=default
destructor
podio::ObjectID id() const
Definition MutableHadronicFinalState.h:123
const podio::ObjectID getObjectID() const
Definition MutableHadronicFinalState.cc:107
bool operator!=(const MutableHadronicFinalState &other) const
Definition MutableHadronicFinalState.h:117
void setPT(float value)
Set the Transverse momentum.
Definition MutableHadronicFinalState.cc:54
friend class HadronicFinalStateCollection
Definition MutableHadronicFinalState.h:33
MutableHadronicFinalState(const MutableHadronicFinalState &other)=default
copy constructor
Definition ReconstructedParticle.h:47
Definition CalorimeterHit.cc:17