11#ifndef CaloSimEvent_CaloCalibrationHit_h
12#define CaloSimEvent_CaloCalibrationHit_h
14#include "Identifier/Identifier.h"
99 if (
this == &cchSource)
return *
this;
171 return m_ID <
h->m_ID;
184 bool equal = (
m_ID ==
h.m_ID);
187 equal &= (validBarcode || validUID);
188 if ( validBarcode ) {
191 if ( validBarcode ) {
Header file for AthHistogramAlgorithm.
int m_uniqueID
identifier of Primary Particle which caused this hit
double m_energy0
energies (in MeV) deposited in this hit.
double energyNonEM() const
bool Less(const CaloCalibrationHit *h) const
Calibration hits are ordered by values of their identifiers.
double energy(unsigned int i) const
CaloCalibrationHit(Identifier id, double energyEM, double energyNonEM, double energyInvisible, double energyEscaped, int barcode, int uniqueID=HepMC::INVALID_PARTICLE_ID)
Standard constructor using identifer, energy by type and primary particle ID.
virtual ~CaloCalibrationHit()
Destructor.
CaloCalibrationHit(const CaloCalibrationHit &cchSource)
Copy constructor.
void Add(const CaloCalibrationHit *h)
Method used for energy accumulation.
Identifier cellID() const
double energyEscaped() const
double energyInvisible() const
CaloCalibrationHit(Identifier id, double energyEM, double energyNonEM, double energyInvisible, double energyEscaped)
Standard constructor using identifer and energy by type.
CaloCalibrationHit()
Default constructor; should never be used, but provided for some persistency services.
Identifier m_ID
identifier of the cell in which this hit occured.
double operator()(unsigned int i) const
CaloCalibrationHit & operator=(const CaloCalibrationHit &cchSource)
Assignment operator.
double energyTotal() const
bool Equals(const CaloCalibrationHit &h) const
Calibration hits are ordered by values of their identifiers.
bool Equals(const CaloCalibrationHit *h) const
Calibration hits are ordered by values of their identifiers.
std::unique_ptr< HepMcParticleLink > m_partLink
int m_barcode
legacy barcode of Primary Particle which caused this hit
constexpr int INVALID_PARTICLE_ID
constexpr int UNDEFINED_ID