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