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()
SimCalorimeterHit
getCellID0
in interface SimCalorimeterHit
public void setCellID1(int cellID)
public int getCellID1()
SimCalorimeterHit
getCellID1
in interface SimCalorimeterHit
public void setEnergy(float energy)
public float getEnergy()
SimCalorimeterHit
getEnergy
in interface SimCalorimeterHit
public float getEnergyCont(int i)
SimCalorimeterHit
getEnergyCont
in interface SimCalorimeterHit
SimCalorimeterHit.getNMCContributions()
public int getNMCParticles()
SimCalorimeterHit
getNMCParticles
in interface SimCalorimeterHit
SimCalorimeterHit.getNMCContributions()
public int getPDGCont(int i)
SimCalorimeterHit
getPDGCont
in interface SimCalorimeterHit
SimCalorimeterHit.getNMCContributions()
public float[] getStepPosition(int i)
SimCalorimeterHit
getStepPosition
in interface SimCalorimeterHit
public MCParticle getParticleCont(int i)
SimCalorimeterHit
getParticleCont
in interface SimCalorimeterHit
SimCalorimeterHit.getNMCContributions()
public void setPosition(float[] pos)
public float[] getPosition()
SimCalorimeterHit
getPosition
in interface SimCalorimeterHit
public float getTimeCont(int i)
SimCalorimeterHit
getTimeCont
in interface SimCalorimeterHit
SimCalorimeterHit.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()
SimCalorimeterHit
getNMCContributions
in interface SimCalorimeterHit
Jas4pp 1.5 © Java Analysis Studio for Particle Physics