public class HelicalTrackHit extends Object implements Comparable, TrackerHit
Modifier and Type | Field and Description |
---|---|
private BarrelEndcapFlag |
_beflag |
private double |
_chisq |
private SymmetricMatrix |
_cov |
private SymmetricMatrix |
_covcor |
private double |
_dEdx |
private String |
_detname |
private double |
_dr |
private double |
_drphi |
protected double |
_eps |
protected double |
_epsParallel |
protected double |
_epsStereoAngle |
private int |
_layer |
private List<MCParticle> |
_mcplist |
private double |
_phi |
private double[] |
_pos |
private Hep3Vector |
_poscor |
private double |
_r |
private List<RawTrackerHit> |
_rawhits |
private double |
_time |
private int |
_type |
protected long |
id |
Constructor and Description |
---|
HelicalTrackHit()
Create a new instance of
|
HelicalTrackHit(Hep3Vector pos,
SymmetricMatrix cov,
double dEdx,
double time,
int type,
List rawhits,
String detname,
int layer,
BarrelEndcapFlag beflag)
Create a new instance of
|
Modifier and Type | Method and Description |
---|---|
void |
addMCParticle(MCParticle mcp)
Associate an MCParticle with this hit.
|
protected void |
addRawHit(RawTrackerHit rawhit) |
BarrelEndcapFlag |
BarrelEndcapFlag()
Return the BarrelEndcapFlag appropriate for this hit
|
double |
chisq()
Return chi^2 penalty for the hit (used by cross hits when one or both of
the unmeasured coordinates is beyond its allowed range).
|
int |
compareTo(Object hit2)
Implement comparable interface to allow hits to be sorted by their corrected
z coordinate
|
String |
Detector() |
double |
dr()
Return the corrected uncertainty in the radial coordinate r
|
protected double |
drcalc(Hep3Vector pos,
SymmetricMatrix cov) |
double |
drphi()
Return the corrected uncertainty in the azimuthal coordinate r*phi
|
protected double |
drphicalc(Hep3Vector pos,
SymmetricMatrix cov) |
long |
getCellID()
Get the cell ID.
|
SymmetricMatrix |
getCorrectedCovMatrix()
Return the corrected covariance matrix.
|
Hep3Vector |
getCorrectedPosition()
Return the corrected hit position.
|
double[] |
getCovMatrix()
Return the nominal (uncorrected) covariance matrix.
|
double |
getdEdx()
Return the energy deposit for this hit.
|
double |
getEdepError()
The measured edep error [GeV].
|
double |
getEpsParallel() |
String |
getLayerIdentifier()
Return the layer identifier string.
|
List<MCParticle> |
getMCParticles()
Returns a list of MCParticles belonging to this hit.
|
double[] |
getPosition()
Return the nominal (uncorrected) hit position.
|
int |
getQuality()
The quality of the hit.
|
List |
getRawHits()
Return a list of raw hits for this hit.
|
double |
getTime()
Return the time for this hit.
|
int |
getType()
Return the hit type.
|
void |
init(Hep3Vector pos,
SymmetricMatrix cov,
double dEdx,
double time,
int type,
List rawhits,
String detname,
int layer,
BarrelEndcapFlag beflag)
Initialize the
HelicalTrackHit . |
int |
Layer() |
double |
phi()
Return the corrected azimuthal coordinate of the hit
|
double |
r()
Return the corrected radius of the hit (i.e., distance from the z axis)
|
protected void |
setChisq(double chisq)
Set the chi^2 penalty for the hit (used by cross hits when one or both of
the unmeasured coordinates is beyond its allowed range).
|
protected void |
setCorrectedCovMatrix(SymmetricMatrix covcor)
Set the corrected covariance matrix.
|
protected void |
setCorrectedPosition(Hep3Vector poscor)
Set the corrected hit position.
|
void |
setEpsParallel(double _epsParallel) |
void |
setEpsStereoAngle(double _epsStereoAngle) |
private void |
setPolarVariables()
Calculate the polar coordinates _r, _phi from the cartesian
coordinates _x, _y and cache them in this object since we
expect them to be used repeatedly by the track finding code.
|
void |
setPosition(double[] position)
Set the hit position.
|
String |
toString()
Return a string describing the hit.
|
double |
x()
Return the corrected x coordinate of the HelicalTrackHit
|
double |
y()
Return the corrected y coordinate of the HelicalTrackHit
|
double |
z()
Return the corrected z coordinate of the HelicalTrackHit
|
private double[] _pos
private Hep3Vector _poscor
private SymmetricMatrix _cov
private SymmetricMatrix _covcor
private double _dEdx
private double _time
private int _type
private List<RawTrackerHit> _rawhits
private String _detname
private int _layer
private BarrelEndcapFlag _beflag
private List<MCParticle> _mcplist
private double _r
private double _phi
private double _drphi
private double _dr
private double _chisq
protected double _eps
protected double _epsParallel
protected double _epsStereoAngle
protected long id
public HelicalTrackHit()
public HelicalTrackHit(Hep3Vector pos, SymmetricMatrix cov, double dEdx, double time, int type, List rawhits, String detname, int layer, BarrelEndcapFlag beflag)
public void init(Hep3Vector pos, SymmetricMatrix cov, double dEdx, double time, int type, List rawhits, String detname, int layer, BarrelEndcapFlag beflag)
HelicalTrackHit
.public void setEpsParallel(double _epsParallel)
public double getEpsParallel()
public void setEpsStereoAngle(double _epsStereoAngle)
public double x()
public double y()
public double z()
public double r()
public double phi()
public double drphi()
public double dr()
public double chisq()
public BarrelEndcapFlag BarrelEndcapFlag()
public int compareTo(Object hit2)
compareTo
in interface Comparable
hit2
- HelicalTrackHit to be compared against this instancepublic void addMCParticle(MCParticle mcp)
mcp
- MCParticle that is associated with this hitpublic List<MCParticle> getMCParticles()
public double[] getPosition()
getPosition
in interface TrackerHit
public Hep3Vector getCorrectedPosition()
public double[] getCovMatrix()
getCovMatrix
in interface TrackerHit
public SymmetricMatrix getCorrectedCovMatrix()
public double getdEdx()
getdEdx
in interface TrackerHit
public double getTime()
getTime
in interface TrackerHit
public int getType()
getType
in interface TrackerHit
public int getQuality()
TrackerHit
getQuality
in interface TrackerHit
public double getEdepError()
TrackerHit
getEdepError
in interface TrackerHit
public List getRawHits()
getRawHits
in interface TrackerHit
public String Detector()
public int Layer()
public String getLayerIdentifier()
public String toString()
public void setPosition(double[] position)
position
- : hit positionprotected void setCorrectedPosition(Hep3Vector poscor)
poscor
- corrected hit positionprotected void setCorrectedCovMatrix(SymmetricMatrix covcor)
covcor
- corrected covariance matrixprotected void addRawHit(RawTrackerHit rawhit)
protected void setChisq(double chisq)
chisq
- chi^2 penaltyprotected double drphicalc(Hep3Vector pos, SymmetricMatrix cov)
protected double drcalc(Hep3Vector pos, SymmetricMatrix cov)
private void setPolarVariables()
public long getCellID()
TrackerHit
getCellID
in interface TrackerHit
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.