public class ISimCalorimeterHit extends Object implements SimCalorimeterHit
| Constructor and Description |
|---|
ISimCalorimeterHit() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMCParticleContribution(MCParticle p,
float energy,
float time,
int pdg) |
void |
addMCParticleContribution(MCParticle p,
float energy,
float time,
int pdg,
float[] stepPos) |
int |
getCellID0()
Returns the detector specific (geometrical) cell id.
|
int |
getCellID1()
Returns the second detector specific (geometrical) cell id.
|
float |
getEnergy()
Returns the energy of the hit in [GeV].
|
float |
getEnergyCont(int i)
Returns the energy in [GeV] of the i-th contribution to the hit.
|
int |
getNMCContributions()
Returns the number of MC contributions to the hit.
|
int |
getNMCParticles()
Returns the number of MC contributions to the hit.
|
MCParticle |
getParticleCont(int i)
Returns the MCParticle that caused the shower responsible for this contribution to the hit.
|
int |
getPDGCont(int i)
Returns the PDG code of the shower particle that caused this contribution.
|
float[] |
getPosition()
Returns the position of the hit in world coordinates.
|
float[] |
getStepPosition(int i)
Returns the position where the energy deposited (step) occurred
optional, only if bit LCIO::CHBIT_STEP is set.
|
float |
getTimeCont(int i)
Returns the time of the i-th in [ns] contribution to the hit.
|
void |
setCellID0(int cellID) |
void |
setCellID1(int cellID) |
void |
setEnergy(float energy) |
void |
setPosition(float[] pos) |
public void setCellID0(int cellID)
public int getCellID0()
SimCalorimeterHitgetCellID0 in interface SimCalorimeterHitpublic void setCellID1(int cellID)
public int getCellID1()
SimCalorimeterHitgetCellID1 in interface SimCalorimeterHitpublic void setEnergy(float energy)
public float getEnergy()
SimCalorimeterHitgetEnergy in interface SimCalorimeterHitpublic float getEnergyCont(int i)
SimCalorimeterHitgetEnergyCont in interface SimCalorimeterHitSimCalorimeterHit.getNMCContributions()public int getNMCParticles()
SimCalorimeterHitgetNMCParticles in interface SimCalorimeterHitSimCalorimeterHit.getNMCContributions()public int getPDGCont(int i)
SimCalorimeterHitgetPDGCont in interface SimCalorimeterHitSimCalorimeterHit.getNMCContributions()public float[] getStepPosition(int i)
SimCalorimeterHitgetStepPosition in interface SimCalorimeterHitpublic MCParticle getParticleCont(int i)
SimCalorimeterHitgetParticleCont in interface SimCalorimeterHitSimCalorimeterHit.getNMCContributions()public void setPosition(float[] pos)
public float[] getPosition()
SimCalorimeterHitgetPosition in interface SimCalorimeterHitpublic float getTimeCont(int i)
SimCalorimeterHitgetTimeCont in interface SimCalorimeterHitSimCalorimeterHit.getNMCContributions()public void addMCParticleContribution(MCParticle p, float energy, float time, int pdg)
public void addMCParticleContribution(MCParticle p, float energy, float time, int pdg, float[] stepPos)
public int getNMCContributions()
SimCalorimeterHitgetNMCContributions in interface SimCalorimeterHitJas4pp 1.5 © Java Analysis Studio for Particle Physics