public class BaseTrackerHit extends Object implements TrackerHit
Modifier and Type | Field and Description |
---|---|
protected double[] |
_covMatrix |
protected double |
_dedx |
protected double[] |
_pos |
protected List |
_rawHits |
protected double |
_time |
protected int |
_type |
protected long |
id |
Constructor and Description |
---|
BaseTrackerHit()
Creates a new instance of BaseTrackerHit
|
BaseTrackerHit(double[] pos,
double[] cov,
double t,
double e,
int type)
fully qualified constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addRawTrackerHit(RawTrackerHit hit)
Add the RawTrackerHit from which this TrackerHit originates
|
void |
addRawTrackerHits(List<RawTrackerHit> hits)
Add the list of RawTrackerHits from which this TrackerHit originates
|
long |
getCellID()
Get the cell ID.
|
double[] |
getCovMatrix()
Covariance of the position (x,y,z) as a 6 element array.
|
double |
getdEdx()
The energy deposited by this hit in [GeV].
|
double |
getEdepError()
The measured edep error [GeV].
|
double[] |
getPosition()
The (x,y,z) hit position in [mm].
|
int |
getQuality()
The quality of the hit.
|
List |
getRawHits()
The raw data hits.
|
double |
getTime()
The time of the hit in [ns].
|
int |
getType()
Type of hit.
|
void |
setCovarianceMatrix(double[] cov)
The covariance matrix for the position measurement.
|
void |
setEnergy(double e)
The energy deposit associated with this measurement.
|
void |
setPosition(double[] pos)
The (x,y,z) position of this measurement.
|
void |
setTime(double t)
The time at which this measurement was made.
|
void |
setType(int type)
The type of this measurement.
|
String |
toString() |
protected double[] _pos
protected double[] _covMatrix
protected double _time
protected double _dedx
protected int _type
protected List _rawHits
protected long id
public BaseTrackerHit()
public BaseTrackerHit(double[] pos, double[] cov, double t, double e, int type)
pos
- the position of this hit (x,y,z) in mmcov
- the covariance matrix for the position measurement, packed as 6 elements.t
- the time for this measurement in nse
- the energy deposit associated with this measurement, in GeVtype
- the type of this measurement. not yet defined.public void setPosition(double[] pos)
pos
- the position of this hit (x,y,z) in mmpublic void setCovarianceMatrix(double[] cov)
cov
- Packed array representing the symmetric covariance matrix (6 elements).public void setTime(double t)
t
- the time in ns.public void setEnergy(double e)
e
- The energy in GeV.public void setType(int type)
type
- Not yet defined.public void addRawTrackerHit(RawTrackerHit hit)
hit
- public void addRawTrackerHits(List<RawTrackerHit> hits)
hits
- public double[] getPosition()
getPosition
in interface TrackerHit
public double[] getCovMatrix()
getCovMatrix
in interface TrackerHit
public double getdEdx()
getdEdx
in interface TrackerHit
public double getTime()
getTime
in interface TrackerHit
public double getEdepError()
TrackerHit
getEdepError
in interface TrackerHit
public int getQuality()
TrackerHit
getQuality
in interface TrackerHit
public int getType()
getType
in interface TrackerHit
public List getRawHits()
getRawHits
in interface TrackerHit
public long getCellID()
TrackerHit
getCellID
in interface TrackerHit
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.