CalorimeterHitConst.cc
Go to the documentation of this file.
20 ConstCalorimeterHit::ConstCalorimeterHit(long long cellID, long flag, long g4ID, dd4pod::FourVector position, dd4pod::MonteCarloContrib truth, double energyDeposit) : m_obj(new CalorimeterHitObj()) {
30 ConstCalorimeterHit::ConstCalorimeterHit(const ConstCalorimeterHit& other) : m_obj(other.m_obj) {
55 const dd4pod::MonteCarloContrib& ConstCalorimeterHit::truth() const { return m_obj->data.truth; }
Definition: CalorimeterHit.h:27
const dd4pod::MonteCarloContrib & truth() const
Access the truth.
Definition: CalorimeterHitConst.cc:55
const dd4pod::FourVector & position() const
Access the position.
Definition: CalorimeterHitConst.cc:54
const long & flag() const
Access the User flag to classify hits.
Definition: CalorimeterHitConst.cc:52
bool operator==(const ConstCalorimeterHit &other) const
Definition: CalorimeterHitConst.h:81
Definition: MonteCarloContrib.h:11
ConstCalorimeterHit & operator=(const ConstCalorimeterHit &other)
copy-assignment operator
Definition: CalorimeterHitConst.cc:34
Definition: Geant4Output2Podio.h:12
const podio::ObjectID getObjectID() const
Definition: CalorimeterHitConst.cc:70
bool isAvailable() const
check whether the object is actually available
Definition: CalorimeterHitConst.cc:63
long g4ID
Original Geant4 track identifier of the creating track (debugging)
Definition: CalorimeterHitData.h:20
Definition: FourVector.h:11
Definition: CalorimeterHitObj.h:18
const long & g4ID() const
Access the Original Geant4 track identifier of the creating track (debugging)
Definition: CalorimeterHitConst.cc:53