3#ifndef EICD_RawCalorimeterHit_H
4#define EICD_RawCalorimeterHit_H
9#include "podio/ObjectID.h"
12#ifdef PODIO_JSON_OUTPUT
13#include "nlohmann/json.hpp"
20class MutableRawCalorimeterHit;
35 RawCalorimeterHit(std::uint64_t cellID, std::uint64_t amplitude, std::uint64_t timeStamp);
85 swap(a.m_obj, b.m_obj);
92std::ostream&
operator<<(std::ostream& o,
const RawCalorimeterHit& value);
94#ifdef PODIO_JSON_OUTPUT
95void to_json(nlohmann::json& j,
const RawCalorimeterHit& value);
Definition: MutableRawCalorimeterHit.h:27
Definition: RawCalorimeterHitCollection.h:82
Definition: RawCalorimeterHitCollection.h:35
Definition: RawCalorimeterHit.h:26
const std::uint64_t & getAmplitude() const
Access the The magnitude of the hit in ADC counts.
Definition: RawCalorimeterHit.cc:53
unsigned int id() const
Definition: RawCalorimeterHit.h:79
bool isAvailable() const
check whether the object is actually available
Definition: RawCalorimeterHit.cc:61
bool operator==(const RawCalorimeterHit &other) const
Definition: RawCalorimeterHit.h:73
RawCalorimeterHit & operator=(RawCalorimeterHit other)
copy-assignment operator
Definition: RawCalorimeterHit.cc:31
void unlink()
disconnect from RawCalorimeterHitObj instance
Definition: RawCalorimeterHit.h:71
MutableRawCalorimeterHit clone() const
create a mutable deep-copy of the object with identical relations
Definition: RawCalorimeterHit.cc:42
bool operator<(const RawCalorimeterHit &other) const
Definition: RawCalorimeterHit.h:77
~RawCalorimeterHit()
destructor
Definition: RawCalorimeterHit.cc:46
const std::uint64_t & getCellID() const
Access the The detector specific (geometrical) cell id.
Definition: RawCalorimeterHit.cc:52
friend void swap(RawCalorimeterHit &a, RawCalorimeterHit &b)
Definition: RawCalorimeterHit.h:83
const podio::ObjectID getObjectID() const
Definition: RawCalorimeterHit.cc:68
RawCalorimeterHit()
default constructor
Definition: RawCalorimeterHit.cc:16
const std::uint64_t & getTimeStamp() const
Access the Timing in TDC.
Definition: RawCalorimeterHit.cc:54
Definition: RawCalorimeterHitObj.h:17
Definition: CalorimeterHit.cc:13
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition: CalorimeterHit.cc:93