3#ifndef EDM4EIC_InclusiveKinematics_H
4#define EDM4EIC_InclusiveKinematics_H
9#include "podio/utilities/MaybeSharedPtr.h"
14#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
15#include "nlohmann/json_fwd.hpp"
20class ReconstructedParticle;
21class MutableReconstructedParticle;
27class MutableInclusiveKinematics;
28class InclusiveKinematicsCollection;
29class InclusiveKinematicsCollectionData;
96 void unlink() { m_obj = podio::utils::MaybeSharedPtr<InclusiveKinematicsObj>{
nullptr}; }
113 swap(a.m_obj, b.m_obj);
121 podio::utils::MaybeSharedPtr<InclusiveKinematicsObj> m_obj{
nullptr};
124std::ostream&
operator<<(std::ostream& o,
const InclusiveKinematics& value);
126#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
127void to_json(nlohmann::json& j,
const InclusiveKinematics& value);
Definition InclusiveKinematicsCollectionData.h:31
Definition InclusiveKinematicsCollection.h:92
Definition InclusiveKinematicsCollection.h:37
Definition InclusiveKinematics.h:35
InclusiveKinematics & operator=(InclusiveKinematics other)
copy-assignment operator
Definition InclusiveKinematics.cc:33
friend void swap(InclusiveKinematics &a, InclusiveKinematics &b)
Definition InclusiveKinematics.h:111
InclusiveKinematics(const InclusiveKinematics &other)=default
copy constructor
bool operator!=(const MutableInclusiveKinematics &other) const
Definition InclusiveKinematics.h:102
float getY() const
Access the Inelasticity (P.q/P.k)
Definition InclusiveKinematics.cc:63
float getX() const
Access the Bjorken x (Q2/2P.q)
Definition InclusiveKinematics.cc:60
float getW() const
Access the Invariant mass of final state [GeV].
Definition InclusiveKinematics.cc:62
friend class InclusiveKinematicsCollection
Definition InclusiveKinematics.h:38
InclusiveKinematics()
default constructor
Definition InclusiveKinematics.cc:21
float getQ2() const
Access the Four-momentum transfer squared [GeV^2].
Definition InclusiveKinematics.cc:61
const edm4eic::ReconstructedParticle getScat() const
Access the Associated scattered electron (if identified)
Definition InclusiveKinematics.cc:66
bool isAvailable() const
check whether the object is actually available
Definition InclusiveKinematics.cc:78
bool operator!=(const InclusiveKinematics &other) const
Definition InclusiveKinematics.h:101
friend class MutableInclusiveKinematics
Definition InclusiveKinematics.h:37
float getNu() const
Access the Energy transfer P.q/M [GeV].
Definition InclusiveKinematics.cc:64
static InclusiveKinematics makeEmpty()
Definition InclusiveKinematics.cc:56
MutableInclusiveKinematics clone(bool cloneRelations=true) const
Definition InclusiveKinematics.cc:38
void unlink()
disconnect from InclusiveKinematicsObj instance
Definition InclusiveKinematics.h:96
bool operator<(const InclusiveKinematics &other) const
Definition InclusiveKinematics.h:105
podio::ObjectID id() const
Definition InclusiveKinematics.h:107
bool operator==(const InclusiveKinematics &other) const
Definition InclusiveKinematics.h:98
const podio::ObjectID getObjectID() const
Definition InclusiveKinematics.cc:82
~InclusiveKinematics()=default
destructor
Definition InclusiveKinematicsObj.h:21
Definition MutableInclusiveKinematics.h:33
Definition ReconstructedParticle.h:47
Definition CalorimeterHit.cc:17
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition CalorimeterHit.cc:103