8#include "edm4hep/Vector3f.h"
10#include "podio/ObjectID.h"
13#ifdef PODIO_JSON_OUTPUT
14#include "nlohmann/json.hpp"
36 PMTHit(std::uint64_t cellID,
float npe,
float time,
float timeError, edm4hep::Vector3f position, edm4hep::Vector3f dimension, std::int32_t sector, edm4hep::Vector3f local);
60 const float&
getNpe()
const;
78 const edm4hep::Vector3f&
getLocal()
const;
101 swap(a.m_obj, b.m_obj);
108std::ostream&
operator<<(std::ostream& o,
const PMTHit& value);
110#ifdef PODIO_JSON_OUTPUT
111void to_json(nlohmann::json& j,
const PMTHit& value);
Definition: MutablePMTHit.h:28
Definition: PMTHitCollection.h:82
Definition: PMTHitCollection.h:35
MutablePMTHit clone() const
create a mutable deep-copy of the object with identical relations
Definition: PMTHit.cc:47
const edm4hep::Vector3f & getDimension() const
Access the The dimension information of the pixel [mm].
Definition: PMTHit.cc:62
bool operator==(const PMTHit &other) const
Definition: PMTHit.h:89
void unlink()
disconnect from PMTHitObj instance
Definition: PMTHit.h:87
unsigned int id() const
Definition: PMTHit.h:95
const std::int32_t & getSector() const
Access the The sector this hit occured in.
Definition: PMTHit.cc:63
const float & getTime() const
Access the Time [ns].
Definition: PMTHit.cc:59
friend void swap(PMTHit &a, PMTHit &b)
Definition: PMTHit.h:99
bool operator<(const PMTHit &other) const
Definition: PMTHit.h:93
const edm4hep::Vector3f & getPosition() const
Access the PMT hit position [mm].
Definition: PMTHit.cc:61
const edm4hep::Vector3f & getLocal() const
Access the The local position of the hit in detector coordinates (relative to the sector) [mm].
Definition: PMTHit.cc:64
bool isAvailable() const
check whether the object is actually available
Definition: PMTHit.cc:71
PMTHit & operator=(PMTHit other)
copy-assignment operator
Definition: PMTHit.cc:36
const podio::ObjectID getObjectID() const
Definition: PMTHit.cc:78
const float & getNpe() const
Access the Estimated number of photo-electrons [#].
Definition: PMTHit.cc:58
const float & getTimeError() const
Access the Error on the time [ns].
Definition: PMTHit.cc:60
const std::uint64_t & getCellID() const
Access the The detector specific (geometrical) cell id.
Definition: PMTHit.cc:57
PMTHit()
default constructor
Definition: PMTHit.cc:16
~PMTHit()
destructor
Definition: PMTHit.cc:51
Definition: PMTHitObj.h:17
Definition: CalorimeterHit.cc:13
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition: CalorimeterHit.cc:93