3#ifndef EDM4EIC_HadronicFinalState_H
4#define EDM4EIC_HadronicFinalState_H
9#include "podio/RelationRange.h"
12#include "podio/utilities/MaybeSharedPtr.h"
17#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
18#include "nlohmann/json_fwd.hpp"
25class MutableHadronicFinalState;
26class HadronicFinalStateCollection;
27class HadronicFinalStateCollectionData;
80 std::vector<edm4eic::ReconstructedParticle>::const_iterator
hadrons_begin()
const;
81 std::vector<edm4eic::ReconstructedParticle>::const_iterator
hadrons_end()
const;
82 podio::RelationRange<edm4eic::ReconstructedParticle>
getHadrons()
const;
88 void unlink() { m_obj = podio::utils::MaybeSharedPtr<HadronicFinalStateObj>{
nullptr}; }
102 swap(a.m_obj, b.m_obj);
110 podio::utils::MaybeSharedPtr<HadronicFinalStateObj> m_obj{
nullptr};
113std::ostream&
operator<<(std::ostream& o,
const HadronicFinalState& value);
115#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
116void to_json(nlohmann::json& j,
const HadronicFinalState& value);
Definition HadronicFinalStateCollectionData.h:31
Definition HadronicFinalStateCollection.h:95
Definition HadronicFinalStateCollection.h:40
Definition HadronicFinalState.h:33
HadronicFinalState()
default constructor
Definition HadronicFinalState.cc:21
static HadronicFinalState makeEmpty()
Definition HadronicFinalState.cc:44
std::vector< edm4eic::ReconstructedParticle >::const_iterator hadrons_end() const
Definition HadronicFinalState.cc:60
HadronicFinalState(const HadronicFinalState &other)=default
copy constructor
bool isAvailable() const
check whether the object is actually available
Definition HadronicFinalState.cc:89
friend class MutableHadronicFinalState
Definition HadronicFinalState.h:35
bool operator<(const HadronicFinalState &other) const
Definition HadronicFinalState.h:94
friend void swap(HadronicFinalState &a, HadronicFinalState &b)
Definition HadronicFinalState.h:100
float getGamma() const
Access the Hadronic angle.
Definition HadronicFinalState.cc:50
std::size_t hadrons_size() const
Definition HadronicFinalState.cc:66
MutableHadronicFinalState clone() const
create a mutable deep-copy of the object with identical relations
Definition HadronicFinalState.cc:36
bool operator==(const HadronicFinalState &other) const
Definition HadronicFinalState.h:90
~HadronicFinalState()=default
destructor
HadronicFinalState & operator=(HadronicFinalState other)
copy-assignment operator
Definition HadronicFinalState.cc:31
void unlink()
disconnect from HadronicFinalStateObj instance
Definition HadronicFinalState.h:88
std::vector< edm4eic::ReconstructedParticle >::const_iterator hadrons_begin() const
Definition HadronicFinalState.cc:54
float getPT() const
Access the Transverse momentum.
Definition HadronicFinalState.cc:49
float getSigma() const
Access the Longitudinal energy-momentum balance (aka E - pz)
Definition HadronicFinalState.cc:48
podio::ObjectID id() const
Definition HadronicFinalState.h:96
friend class HadronicFinalStateCollection
Definition HadronicFinalState.h:36
const podio::ObjectID getObjectID() const
Definition HadronicFinalState.cc:96
podio::RelationRange< edm4eic::ReconstructedParticle > getHadrons() const
Definition HadronicFinalState.cc:77
Definition HadronicFinalStateObj.h:19
Definition MutableHadronicFinalState.h:32
Definition ReconstructedParticle.h:47
Definition CalorimeterHit.cc:18
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition CalorimeterHit.cc:97