3#ifndef EICD_CalorimeterHit_H
4#define EICD_CalorimeterHit_H
8#include "edm4hep/Vector3f.h"
10#include "podio/ObjectID.h"
13#ifdef PODIO_JSON_OUTPUT
14#include "nlohmann/json.hpp"
21class MutableCalorimeterHit;
36 CalorimeterHit(std::uint64_t cellID,
float energy,
float energyError,
float time,
float timeError, edm4hep::Vector3f position, edm4hep::Vector3f dimension, std::int32_t sector, std::int32_t layer, edm4hep::Vector3f local);
81 const std::int32_t&
getLayer()
const;
84 const edm4hep::Vector3f&
getLocal()
const;
107 swap(a.m_obj, b.m_obj);
114std::ostream&
operator<<(std::ostream& o,
const CalorimeterHit& value);
116#ifdef PODIO_JSON_OUTPUT
117void to_json(nlohmann::json& j,
const CalorimeterHit& value);
Definition: CalorimeterHitCollection.h:82
Definition: CalorimeterHitCollection.h:35
Definition: CalorimeterHit.h:27
friend void swap(CalorimeterHit &a, CalorimeterHit &b)
Definition: CalorimeterHit.h:105
const edm4hep::Vector3f & getLocal() const
Access the The local coordinates of the hit in the detector segment [mm].
Definition: CalorimeterHit.cc:68
unsigned int id() const
Definition: CalorimeterHit.h:101
const std::uint64_t & getCellID() const
Access the The detector specific (geometrical) cell id.
Definition: CalorimeterHit.cc:59
const float & getEnergyError() const
Access the Error on energy [GeV].
Definition: CalorimeterHit.cc:61
MutableCalorimeterHit clone() const
create a mutable deep-copy of the object with identical relations
Definition: CalorimeterHit.cc:49
bool operator==(const CalorimeterHit &other) const
Definition: CalorimeterHit.h:95
const float & getTimeError() const
Access the Error on the time.
Definition: CalorimeterHit.cc:63
const edm4hep::Vector3f & getPosition() const
Access the The global position of the hit in world coordinates [mm].
Definition: CalorimeterHit.cc:64
bool operator<(const CalorimeterHit &other) const
Definition: CalorimeterHit.h:99
void unlink()
disconnect from CalorimeterHitObj instance
Definition: CalorimeterHit.h:93
const std::int32_t & getSector() const
Access the Sector that this hit occured in.
Definition: CalorimeterHit.cc:66
const podio::ObjectID getObjectID() const
Definition: CalorimeterHit.cc:82
const float & getTime() const
Access the The time of the hit in [ns].
Definition: CalorimeterHit.cc:62
CalorimeterHit()
default constructor
Definition: CalorimeterHit.cc:16
const std::int32_t & getLayer() const
Access the Layer that the hit occured in.
Definition: CalorimeterHit.cc:67
bool isAvailable() const
check whether the object is actually available
Definition: CalorimeterHit.cc:75
~CalorimeterHit()
destructor
Definition: CalorimeterHit.cc:53
const float & getEnergy() const
Access the The energy for this hit in [GeV].
Definition: CalorimeterHit.cc:60
const edm4hep::Vector3f & getDimension() const
Access the The dimension information of the cell [mm].
Definition: CalorimeterHit.cc:65
CalorimeterHit & operator=(CalorimeterHit other)
copy-assignment operator
Definition: CalorimeterHit.cc:38
Definition: CalorimeterHitObj.h:17
Definition: MutableCalorimeterHit.h:28
Definition: CalorimeterHit.cc:13
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition: CalorimeterHit.cc:93