public abstract class BaseHit extends Object implements Hit
Modifier and Type | Field and Description |
---|---|
protected IDetectorElement |
detectorElement |
protected IExpandedIdentifier |
expandedID |
protected EventHeader.LCMetaData |
metaData |
protected IIdentifier |
packedID |
protected Hep3Vector |
positionVec |
Constructor and Description |
---|
BaseHit() |
Modifier and Type | Method and Description |
---|---|
protected void |
calculatePosition()
Calculate the position of the hit, depending on what information is available on the object.
|
protected IDetectorElement |
findDetectorElement(Hep3Vector position)
Find a DetectorElement by its global Cartesian position.
|
protected IDetectorElement |
findDetectorElement(IIdentifier id)
Find a DetectorElement by its identifier.
|
BarrelEndcapFlag |
getBarrelEndcapFlag()
Get the barrel flag of this hit.
|
IDetectorElement |
getDetectorElement()
Get the
IDetectorElement associated with this hit. |
DetectorIdentifierHelper |
getDetectorIdentifierHelper()
Get the detector identifier helper of this hit.
|
IExpandedIdentifier |
getExpandedIdentifier()
Get the
IExpandedIdentifier of this hit. |
IDDecoder |
getIDDecoder()
Get the
org.lcsim.geometryIDDecoder of this hit. |
IIdentifier |
getIdentifier()
Get the identifier of this hit.
|
int |
getIdentifierFieldValue(String field)
Get a field value from the hit's identifier.
|
IIdentifierHelper |
getIdentifierHelper()
Get the identifier helper of this hit.
|
int |
getLayerNumber()
Get the layer number of this hit.
|
EventHeader.LCMetaData |
getMetaData()
Get the metadata associated with this hit.
|
double[] |
getPosition()
Get the position of the hit.
|
Hep3Vector |
getPositionVec()
Get the position of this hit in mm as a
Hep3Vector . |
Subdetector |
getSubdetector()
Get the subdetector of this hit.
|
int |
getSystemId()
Get the system id of this hit.
|
void |
setDetectorElement(IDetectorElement de)
Set the @see org.lcsim.detector.IDetectorElement of this hit.
|
void |
setMetaData(EventHeader.LCMetaData meta)
Set the metadata associated with this hit.
|
protected EventHeader.LCMetaData metaData
protected IExpandedIdentifier expandedID
protected IIdentifier packedID
protected IDetectorElement detectorElement
protected Hep3Vector positionVec
public EventHeader.LCMetaData getMetaData()
getMetaData
in interface Hit
public void setMetaData(EventHeader.LCMetaData meta)
setMetaData
in interface Hit
public Subdetector getSubdetector()
getSubdetector
in interface Hit
public IDetectorElement getDetectorElement()
IDetectorElement
associated with this hit.getDetectorElement
in interface HasDetectorElement
public void setDetectorElement(IDetectorElement de)
setDetectorElement
in interface HasDetectorElement
public IExpandedIdentifier getExpandedIdentifier()
IExpandedIdentifier
of this hit.getExpandedIdentifier
in interface Identifiable
public IIdentifier getIdentifier()
getIdentifier
in interface Identifiable
public IIdentifierHelper getIdentifierHelper()
getIdentifierHelper
in interface Identifiable
public DetectorIdentifierHelper getDetectorIdentifierHelper()
getDetectorIdentifierHelper
in interface Hit
public IDDecoder getIDDecoder()
org.lcsim.geometryIDDecoder
of this hit.getIDDecoder
in interface Hit
public int getLayerNumber()
getLayerNumber
in interface Hit
public BarrelEndcapFlag getBarrelEndcapFlag()
getBarrelEndcapFlag
in interface Hit
public int getSystemId()
getSystemId
in interface Hit
public int getIdentifierFieldValue(String field)
getIdentifierFieldValue
in interface Hit
field
- The name of the field.public double[] getPosition()
getPosition
in interface Hit
public Hep3Vector getPositionVec()
Hep3Vector
.getPositionVec
in interface Hit
protected void calculatePosition()
protected IDetectorElement findDetectorElement(IIdentifier id)
id
- The identifier.protected IDetectorElement findDetectorElement(Hep3Vector position)
position
- The position.Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.