PhotoMultiplierHitConst.cc
Go to the documentation of this file.
20 ConstPhotoMultiplierHit::ConstPhotoMultiplierHit(long long cellID, long flag, long g4ID, dd4pod::FourVector position, dd4pod::FourVector momentum, double length, dd4pod::MonteCarloContrib truth, double energy) : m_obj(new PhotoMultiplierHitObj()) {
32 ConstPhotoMultiplierHit::ConstPhotoMultiplierHit(const ConstPhotoMultiplierHit& other) : m_obj(other.m_obj) {
36 ConstPhotoMultiplierHit& ConstPhotoMultiplierHit::operator=(const ConstPhotoMultiplierHit& other) {
56 const dd4pod::FourVector& ConstPhotoMultiplierHit::position() const { return m_obj->data.position; }
57 const dd4pod::FourVector& ConstPhotoMultiplierHit::momentum() const { return m_obj->data.momentum; }
59 const dd4pod::MonteCarloContrib& ConstPhotoMultiplierHit::truth() const { return m_obj->data.truth; }
const long & flag() const
Access the User flag to classify hits.
Definition: PhotoMultiplierHitConst.cc:54
const dd4pod::FourVector & momentum() const
Access the momentum.
Definition: PhotoMultiplierHitConst.cc:57
long g4ID
Original Geant 4 track identifier of the creating track (debugging)
Definition: PhotoMultiplierHitData.h:20
PhotoMultiplierHitData data
Definition: PhotoMultiplierHitObj.h:30
Definition: MonteCarloContrib.h:11
const long & g4ID() const
Access the Original Geant 4 track identifier of the creating track (debugging)
Definition: PhotoMultiplierHitConst.cc:55
const dd4pod::MonteCarloContrib & truth() const
Access the truth.
Definition: PhotoMultiplierHitConst.cc:59
Definition: Geant4Output2Podio.h:12
bool operator==(const ConstPhotoMultiplierHit &other) const
Definition: PhotoMultiplierHitConst.h:87
ConstPhotoMultiplierHit & operator=(const ConstPhotoMultiplierHit &other)
copy-assignment operator
Definition: PhotoMultiplierHitConst.cc:36
Definition: FourVector.h:11
bool isAvailable() const
check whether the object is actually available
Definition: PhotoMultiplierHitConst.cc:67
const podio::ObjectID getObjectID() const
Definition: PhotoMultiplierHitConst.cc:74
const dd4pod::FourVector & position() const
Access the position.
Definition: PhotoMultiplierHitConst.cc:56
ConstPhotoMultiplierHit clone() const
support cloning (deep-copy)
Definition: PhotoMultiplierHitConst.cc:46