public class VTrack extends Object
Data includes a surface _srf, a 5-vector _vec and a direction.
The direction attribute is initially set undefined and may be defined with methods set_backward() or set_forward(). However, the actual direction of the track as returned by is_valid(), is_forward() and is_backward() is obtained by asking the surface. The direction attribute is used only if the surface returns undefined.
Modifier and Type | Field and Description |
---|---|
(package private) TrackSurfaceDirection |
_dir |
(package private) boolean |
_forward |
(package private) Surface |
_srf |
(package private) TrackVector |
_vec |
Constructor and Description |
---|
VTrack()
Default constructor.
|
VTrack(Surface srf)
construct a track vector from a surface
|
VTrack(Surface srf,
TrackVector vec)
constructor from a surface and a vector
|
VTrack(Surface srf,
TrackVector vec,
TrackSurfaceDirection dir)
constructor from a surface, vector and direction
|
VTrack(VTrack trv)
copy constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(VTrack vtrk)
Equality
|
boolean |
isBackward()
is track direction opposite that of surface?
surface direction takes priority over local value
|
boolean |
isForward()
is track direction same as surface
surface direction takes priority over local value
|
boolean |
isTrackBackward()
return the pure track direction
|
boolean |
isTrackForward()
return the pure track direction
|
boolean |
isValid()
Return true if track is valid.
|
boolean |
notEquals(VTrack vtrk)
Inequality
|
double |
qOverP()
Return q/p in 1/GeV/c.
|
void |
setBackward()
set direction backward
|
void |
setForward()
set direction forward
|
void |
setSurface(Surface srf)
set surface
direction attribute is set undefined
|
void |
setTrackBackward()
set the pure track direction backwards
|
void |
setTrackForward()
set the pure track direction forwards
|
void |
setVector(TrackVector vec)
set track vector
direction attribute is set undefined
|
void |
setVectorAndKeepDirection(TrackVector vec)
set vector and keep the current direction
|
SpacePath |
spacePath()
the track position and direction
|
SpacePoint |
spacePoint()
return the track position
|
Surface |
surface()
get surface
|
String |
toString()
String representation of the VTrack
|
TrackVector |
vector()
get track vector
|
double |
vector(int i)
return a component of the vector
|
Surface _srf
TrackVector _vec
TrackSurfaceDirection _dir
boolean _forward
public VTrack()
public VTrack(Surface srf)
srf
- Surfacepublic VTrack(Surface srf, TrackVector vec)
srf
- Surface at which track is definedvec
- TrackVector of track parameterspublic VTrack(Surface srf, TrackVector vec, TrackSurfaceDirection dir)
srf
- Surface at which track is definedvec
- TrackVector of track parametersdir
- TrackSurfaceDirection of directionpublic VTrack(VTrack trv)
trv
- VTrack to copypublic boolean isValid()
public void setSurface(Surface srf)
srf
- Surface at which track will be definedpublic Surface surface()
public void setVector(TrackVector vec)
vec
- TrackVector containing track parameterspublic void setVectorAndKeepDirection(TrackVector vec)
vec
- TrackVector containing track parameterspublic TrackVector vector()
public double vector(int i)
i
- track component to returnpublic void setForward()
public void setBackward()
public boolean isForward()
public void setTrackForward()
public boolean isTrackForward()
public boolean isBackward()
public void setTrackBackward()
public boolean isTrackBackward()
public SpacePoint spacePoint()
public SpacePath spacePath()
public double qOverP()
public String toString()
public boolean equals(VTrack vtrk)
vtrk
- VTrack to compare withpublic boolean notEquals(VTrack vtrk)
vtrk
- VTrack to compareCopyright © 2016 Linear Collider Detector (LCD). All rights reserved.