public class BaseSimCalorimeterHit extends BaseCalorimeterHit implements SimCalorimeterHit
CalorimeterHit.CorrectedEnergyComparator, CalorimeterHit.RawEnergyComparator, CalorimeterHit.TimeComparator
Modifier and Type | Field and Description |
---|---|
protected float[] |
energyContrib |
protected int |
nContributions |
protected Object[] |
particle |
protected int[] |
pdg |
protected List<float[]> |
steps |
protected float[] |
times |
correctedEnergy, energyError, id, rawEnergy, time, type
detectorElement, expandedID, metaData, packedID, positionVec
Modifier | Constructor and Description |
---|---|
protected |
BaseSimCalorimeterHit() |
|
BaseSimCalorimeterHit(long id,
double rawEnergy,
double time,
Object[] mcparts,
float[] energies,
float[] times,
int[] pdgs,
EventHeader.LCMetaData meta) |
|
BaseSimCalorimeterHit(long id,
double rawEnergy,
double time,
Object[] mcparts,
float[] energies,
float[] times,
int[] pdgs,
List<float[]> steps,
EventHeader.LCMetaData meta)
New ctor with step positions.
|
Modifier and Type | Method and Description |
---|---|
double |
getContributedEnergy(int index)
Get the energy in GeV of the i-th contribution to the hit.
|
double |
getContributedTime(int index)
Get the time in ns of the i-th contribution to the hit.
|
MCParticle |
getMCParticle(int index)
Get the MCParticle that caused the shower responsible for this
contribution to the hit.
|
int |
getMCParticleCount()
Get the number of MC contributions to the hit.
|
int |
getPDG(int index)
Get the PDG code of the shower particle that caused this
contribution.
|
float[] |
getStepPosition(int index)
Get the step position of an MCParticle contribution in Cartesian coordinates.
|
double |
getTime()
Get the time of the earliest energy contribution to this hit in nanoseconds.
|
void |
shiftTime(double time) |
calculateCorrectedEnergy, clone, getCellID, getCorrectedEnergy, getEnergyError, getIdentifier, getLayerNumber, getRawEnergy, getType, toString
calculatePosition, findDetectorElement, findDetectorElement, getBarrelEndcapFlag, getDetectorElement, getDetectorIdentifierHelper, getExpandedIdentifier, getIDDecoder, getIdentifierFieldValue, getIdentifierHelper, getMetaData, getPosition, getPositionVec, getSubdetector, getSystemId, setDetectorElement, setMetaData
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCellID, getCorrectedEnergy, getEnergyError, getPosition, getRawEnergy, getType
getBarrelEndcapFlag, getDetectorIdentifierHelper, getIDDecoder, getIdentifierFieldValue, getLayerNumber, getMetaData, getPositionVec, getSubdetector, getSystemId, setMetaData
getDetectorElement, setDetectorElement
getExpandedIdentifier, getIdentifier, getIdentifierHelper
protected int nContributions
protected Object[] particle
protected float[] energyContrib
protected float[] times
protected int[] pdg
protected List<float[]> steps
protected BaseSimCalorimeterHit()
public BaseSimCalorimeterHit(long id, double rawEnergy, double time, Object[] mcparts, float[] energies, float[] times, int[] pdgs, EventHeader.LCMetaData meta)
public BaseSimCalorimeterHit(long id, double rawEnergy, double time, Object[] mcparts, float[] energies, float[] times, int[] pdgs, List<float[]> steps, EventHeader.LCMetaData meta)
public void shiftTime(double time)
public double getTime()
CalorimeterHit
getTime
in interface CalorimeterHit
getTime
in class BaseCalorimeterHit
public MCParticle getMCParticle(int index)
SimCalorimeterHit
getMCParticle
in interface SimCalorimeterHit
public double getContributedEnergy(int index)
SimCalorimeterHit
getContributedEnergy
in interface SimCalorimeterHit
public int getPDG(int index)
SimCalorimeterHit
getPDG
in interface SimCalorimeterHit
public double getContributedTime(int index)
SimCalorimeterHit
getContributedTime
in interface SimCalorimeterHit
public float[] getStepPosition(int index)
SimCalorimeterHit
getStepPosition
in interface SimCalorimeterHit
index
- The index of the contribution.public int getMCParticleCount()
SimCalorimeterHit
SimCalorimeterHit.getContributedEnergy(int)
, #getContributedTime(int),
{@link #getMCParticle(int)}, and {@linke #getStepPosition(int)}.getMCParticleCount
in interface SimCalorimeterHit
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.