1 #ifndef IMPL_SIMCALORIMETERHITIMPL_H
2 #define IMPL_SIMCALORIMETERHITIMPL_H 1
The generic simulated calorimeter hit.
virtual float getEnergy() const
Returns the energy of the hit.
void setCellID1(int id1)
Sets the second cell id; Only store if the flag word (bit CHBIT_ID1) of the collection is set...
virtual const float * getStepPosition(int i) const
Returns the position where the energy deposited (step) occurred optional, only if bit LCIO::CHBIT_STE...
MCParticleCont(EVENT::MCParticle *part, float e, float t, float l, int pdg, const float *step)
virtual int getCellID0() const
Create a deep copy of itself.
Implementation of the generic SimCalorimeterHit.
virtual const float * getPosition() const
Returns the position of the hit in world coordinates.
void setEnergy(float en)
Sets the energy.
void addMCParticleContribution(EVENT::MCParticle *p, float en, float t, int pdg, float *stepPos=0)
Adds a detailed MCParticle contribution to the hit.
virtual ~SimCalorimeterHitImpl()
Destructor.
virtual int getNMCParticles() const =0
Returns the number of MC contributions to the hit.
void addMCParticleContribution(EVENT::MCParticle *p, float en, float t)
Adds an MCParticle contribution to the hit - contributions for the same MCParticle are combined into ...
EVENT::MCParticle * Particle
virtual int getNMCContributions() const
Returns the number of MC contributions to the hit.
The LCIO Monte Carlo particle.
SimCalorimeterHitImpl()
Default constructor, initializes values to 0.
void setCellID0(int id0)
Sets the first cell id;.
virtual int simpleUID() const
virtual float getLengthCont(int i) const
Returns the step length of the i-th contribution to the hit.
std::vector< IMPL::MCParticleCont * > MCParticleContVec
Controls access to objects.
virtual int getCellID1() const
Returns the second detector specific (geometrical) cell id.
virtual int getPDGCont(int i) const
Returns the PDG code of the shower particle that caused this contribution.
virtual EVENT::MCParticle * getParticleCont(int i) const
Returns the MCParticle that caused the shower responsible for this contribution to the hit...
void setPosition(const float pos[3])
Sets the position.
virtual float getEnergyCont(int i) const
Returns the energy in [GeV] of the i-th contribution to the hit.
LCIO_DEPRECATED("Use getNMCContributions() instead", virtual int getNMCParticles() const )
Returns the number of MC contributions to the hit.
virtual float getTimeCont(int i) const
Returns the time of the i-th in [ns] contribution to the hit.
virtual int id() const
Returns an object id for internal (debugging) use in LCIO.