1 #ifndef IMPL_SIMCALORIMETERHITIMPL_H
2 #define IMPL_SIMCALORIMETERHITIMPL_H 1
5 #include "EVENT/MCParticle.h"
6 #include "EVENT/SimCalorimeterHit.h"
7 #include "AccessChecked.h"
20 StepPosition[0] = 0. ;
21 StepPosition[1] = 0. ;
22 StepPosition[2] = 0. ;
30 StepPosition[0] = step[0] ;
31 StepPosition[1] = step[1] ;
32 StepPosition[2] = step[2] ;
39 float StepPosition[3] ;
42 typedef std::vector< IMPL::MCParticleCont* > MCParticleContVec ;
66 virtual int id()
const {
return simpleUID() ; }
197 MCParticleContVec _vec ;
The generic simulated calorimeter hit.
Definition: SimCalorimeterHit.h:23
virtual int getNMCParticles() const
Returns the number of MC contributions to the hit.
Definition: SimCalorimeterHitImpl.cc:82
virtual float getEnergy() const
Returns the energy of the hit.
Definition: SimCalorimeterHitImpl.cc:70
void setCellID1(int id1)
Sets the second cell id; Only store if the flag word (bit CHBIT_ID1) of the collection is set...
Definition: SimCalorimeterHitImpl.cc:125
virtual const float * getStepPosition(int i) const
Returns the position where the energy deposited (step) occurred optional, only if bit LCIO::CHBIT_STE...
Definition: SimCalorimeterHitImpl.cc:78
virtual int getCellID0() const
Create a deep copy of itself.
Definition: SimCalorimeterHitImpl.cc:62
Implementation of the generic SimCalorimeterHit.
Definition: SimCalorimeterHitImpl.h:50
virtual const float * getPosition() const
Returns the position of the hit in world coordinates.
Definition: SimCalorimeterHitImpl.cc:74
void setEnergy(float en)
Sets the energy.
Definition: SimCalorimeterHitImpl.cc:130
virtual ~SimCalorimeterHitImpl()
Destructor.
Definition: SimCalorimeterHitImpl.cc:52
void addMCParticleContribution(EVENT::MCParticle *p, float en, float t)
Adds an MCParticle contribution to the hit - contributions for the same MCParticle are combined into ...
Definition: SimCalorimeterHitImpl.cc:143
virtual int getNMCContributions() const
Returns the number of MC contributions to the hit.
Definition: SimCalorimeterHitImpl.cc:95
The LCIO Monte Carlo particle.
Definition: MCParticle.h:27
SimCalorimeterHitImpl()
Default constructor, initializes values to 0.
Definition: SimCalorimeterHitImpl.cc:11
void setCellID0(int id0)
Sets the first cell id;.
Definition: SimCalorimeterHitImpl.cc:120
Definition: SimCalorimeterHitImpl.h:14
Controls access to objects.
Definition: AccessChecked.h:17
virtual int getCellID1() const
Returns the second detector specific (geometrical) cell id.
Definition: SimCalorimeterHitImpl.cc:66
virtual int getPDGCont(int i) const
Returns the PDG code of the shower particle that caused this contribution.
Definition: SimCalorimeterHitImpl.cc:116
virtual EVENT::MCParticle * getParticleCont(int i) const
Returns the MCParticle that caused the shower responsible for this contribution to the hit...
Definition: SimCalorimeterHitImpl.cc:99
void setPosition(const float pos[3])
Sets the position.
Definition: SimCalorimeterHitImpl.cc:135
virtual float getEnergyCont(int i) const
Returns the energy in [GeV] of the i-th contribution to the hit.
Definition: SimCalorimeterHitImpl.cc:108
virtual float getTimeCont(int i) const
Returns the time of the i-th in [ns] contribution to the hit.
Definition: SimCalorimeterHitImpl.cc:112
virtual int id() const
Returns an object id for internal (debugging) use in LCIO.
Definition: SimCalorimeterHitImpl.h:66