public class TrackerHitSegment extends TrackerHitAdapter
TrackerHit
suitable for representing segment-like hits.
Position and covariance matrix can be supplied to the constructor in either
Sensor local or global reference frame. Conversion will only be done
if needed, and the results will be cached.Modifier and Type | Field and Description |
---|---|
(package private) SymmetricMatrix |
_covGlobal |
(package private) SymmetricMatrix |
_covLocal |
(package private) double |
_length |
(package private) Hep3Vector |
_posGlobal |
(package private) Hep3Vector |
_posLocal |
(package private) SpacePointVector |
_segGlobal |
(package private) SpacePointVector |
_segLocal |
_cluster, _signal, _time
Constructor and Description |
---|
TrackerHitSegment(TrackerCluster cluster,
Hep3Vector position,
double length,
SymmetricMatrix covMatrix,
boolean isLocal)
Construct a new TrackerHit.
|
TrackerHitSegment(TrackerCluster cluster,
Hep3Vector position,
double length,
SymmetricMatrix covMatrix,
boolean isLocal,
double signal,
double time)
Construct a new TrackerHit.
|
Modifier and Type | Method and Description |
---|---|
SymmetricMatrix |
getCovMatrix()
Returns covariance matrix of the hit in global reference frame.
|
double |
getLength()
Returns length of the segment defining the hit.
|
SymmetricMatrix |
getLocalCovMatrix()
Returns covariance matrix in local frame.
|
Hep3Vector |
getLocalPosition()
Returns position of the hit in local reference frame of the
Sensor . |
SpacePointVector |
getLocalSegment()
Returns SpacePointVector pointing from start to end of the segment
defining the hit in the local reference frame.
|
Hep3Vector |
getPosition()
Returns position of the hit in global reference frame.
|
SpacePointVector |
getSegment()
Returns SpacePointVector pointing from start to end of the segment
defining the hit in the global reference frame.
|
getCluster, getSensor, getSignal, getTime, setSignal, setTime
Hep3Vector _posLocal
Hep3Vector _posGlobal
SymmetricMatrix _covLocal
SymmetricMatrix _covGlobal
SpacePointVector _segLocal
SpacePointVector _segGlobal
double _length
public TrackerHitSegment(TrackerCluster cluster, Hep3Vector position, double length, SymmetricMatrix covMatrix, boolean isLocal)
cluster
- TrackerCluster
from which this hit was created.position
- Position of the hit.length
- Length of segment defining the hit.covMatrix
- Covariance matrixisLocal
- true if position and covariance matrix are given
in the Sensor local reference frame, false
if they are given in the global frame.public TrackerHitSegment(TrackerCluster cluster, Hep3Vector position, double length, SymmetricMatrix covMatrix, boolean isLocal, double signal, double time)
cluster
- TrackerCluster
from which this hit was created.position
- Position of the hit.length
- Length of segment defining the hit.covMatrix
- Covariance matrixisLocal
- true if position and covariance matrix are given
in the Sensor local reference frame, false
if they are given in the global frame.signal
- Signal amplitude to be associated with this hit.time
- Time to be associated with this hit.public Hep3Vector getLocalPosition()
Sensor
.getLocalPosition
in interface TrackerHit
getLocalPosition
in class TrackerHitAdapter
public SymmetricMatrix getLocalCovMatrix()
getLocalCovMatrix
in interface TrackerHit
getLocalCovMatrix
in class TrackerHitAdapter
public SpacePointVector getLocalSegment()
getLocalSegment
in interface TrackerHit
getLocalSegment
in class TrackerHitAdapter
public Hep3Vector getPosition()
getPosition
in interface TrackerHit
getPosition
in class TrackerHitAdapter
public SymmetricMatrix getCovMatrix()
getCovMatrix
in interface TrackerHit
getCovMatrix
in class TrackerHitAdapter
public SpacePointVector getSegment()
getSegment
in interface TrackerHit
getSegment
in class TrackerHitAdapter
public double getLength()
getLength
in interface TrackerHit
getLength
in class TrackerHitAdapter
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.