public class BaseSimTrackerHit extends BaseHit implements SimTrackerHit
Modifier and Type | Field and Description |
---|---|
protected int |
cellID0 |
protected int |
cellID1 |
protected double |
dEdx |
private Hep3Vector |
endPoint |
protected long |
id |
protected MCParticle |
mcparticle |
protected double[] |
momentum |
protected double |
pathLength |
protected double[] |
position |
private Hep3Vector |
startPoint |
protected double |
time |
detectorElement, expandedID, metaData, packedID, positionVec
Modifier | Constructor and Description |
---|---|
protected |
BaseSimTrackerHit()
Constructor for subclasses
|
|
BaseSimTrackerHit(double[] position,
double dEdx,
double[] momentum,
double pathLength,
double time,
int cellID,
MCParticle mcparticle,
EventHeader.LCMetaData meta,
IDetectorElement de)
Fully qualified constructor
|
Modifier and Type | Method and Description |
---|---|
private void |
computePoints() |
int |
getCellID() |
long |
getCellID64()
Get the full 64-bit ID of this hit.
|
double |
getdEdx()
returns dE/dx energy deposition
|
IDetectorElement |
getDetectorElement()
Get the
IDetectorElement associated with this hit. |
double[] |
getEndPoint()
Get the end point of the hit.
|
IIdentifier |
getIdentifier()
Get the identifier of this hit.
|
int |
getLayer()
Get the layer number of the hit.
|
MCParticle |
getMCParticle()
Get the associated MCParticle that made this hit.
|
double[] |
getMomentum()
Get the 3-momentum of the particle at the hit's position [GeV].
|
double |
getPathLength()
The path length of the particle in the sensitive material that resulted in this hit.
|
double[] |
getPoint()
Get the center of the hit in Cartesian coordinates.
|
double[] |
getStartPoint()
Get the start point of the hit.
|
double |
getTime()
Get the time of the hit [ns].
|
void |
setCellID64(long cellID) |
void |
setTime(double time) |
calculatePosition, findDetectorElement, findDetectorElement, getBarrelEndcapFlag, getDetectorIdentifierHelper, getExpandedIdentifier, getIDDecoder, getIdentifierFieldValue, getIdentifierHelper, getLayerNumber, getMetaData, getPosition, getPositionVec, getSubdetector, getSystemId, setDetectorElement, setMetaData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBarrelEndcapFlag, getDetectorIdentifierHelper, getIDDecoder, getIdentifierFieldValue, getLayerNumber, getMetaData, getPosition, getPositionVec, getSubdetector, getSystemId, setMetaData
setDetectorElement
getExpandedIdentifier, getIdentifierHelper
protected double[] position
protected double[] momentum
protected MCParticle mcparticle
protected double time
protected double dEdx
protected int cellID0
protected int cellID1
protected long id
protected double pathLength
private Hep3Vector startPoint
private Hep3Vector endPoint
protected BaseSimTrackerHit()
public BaseSimTrackerHit(double[] position, double dEdx, double[] momentum, double pathLength, double time, int cellID, MCParticle mcparticle, EventHeader.LCMetaData meta, IDetectorElement de)
position
- The center point of the hit in Cartesian coordinates (x,y,z).momentum
- The momentum of the hit in GeV (px,py,pz).mcparticle
- The associated MCParticle. (may be null)time
- The time of the hit in nanoseconds.dEdx
- The energy deposited over the path in GeV.cellID
- The 32-bit identifier.pathLength
- The path length from start to end point.meta
- The LCMetaData associated to this hit. (may be null)de
- The DetectorElement associated to this hit. (may be null)public void setTime(double time)
public int getLayer()
SimTrackerHit
getLayer
in interface SimTrackerHit
public double[] getPoint()
SimTrackerHit
getPoint
in interface SimTrackerHit
public double getTime()
SimTrackerHit
getTime
in interface SimTrackerHit
public double getdEdx()
SimTrackerHit
getdEdx
in interface SimTrackerHit
public MCParticle getMCParticle()
SimTrackerHit
getMCParticle
in interface SimTrackerHit
public int getCellID()
getCellID
in interface SimTrackerHit
public long getCellID64()
SimTrackerHit
getCellID64
in interface SimTrackerHit
public void setCellID64(long cellID)
public double getPathLength()
SimTrackerHit
getPathLength
in interface SimTrackerHit
public double[] getMomentum()
SimTrackerHit
getMomentum
in interface SimTrackerHit
public double[] getStartPoint()
SimTrackerHit
getStartPoint
in interface SimTrackerHit
public double[] getEndPoint()
SimTrackerHit
getEndPoint
in interface SimTrackerHit
private void computePoints()
public IIdentifier getIdentifier()
BaseHit
getIdentifier
in interface Identifiable
getIdentifier
in class BaseHit
public IDetectorElement getDetectorElement()
IDetectorElement
associated with this hit.getDetectorElement
in interface HasDetectorElement
getDetectorElement
in class BaseHit
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.