public class GTrack extends Object
Modifier and Type | Field and Description |
---|---|
private static Propagator |
_prop |
private TreeSet |
_states |
private boolean |
_valid |
(package private) static GTrackState |
BAD_STATE |
(package private) static double |
SMAX |
(package private) static double |
SMIN |
Constructor and Description |
---|
GTrack()
Construct a default instance.
|
GTrack(GTrack gtr)
Construct a replica of the GTrack (copy constructor).
|
GTrack(TreeSet states)
Construct an instance from a list of states.
|
Modifier and Type | Method and Description |
---|---|
int |
dropFit(double s)
Drop the fit for the state at the specified path distance s.
|
boolean |
equals(GTrack gtr)
Test equality.
|
boolean |
isValid()
Check the tracks validity.
|
boolean |
notEquals(GTrack gtr)
Test equality.
|
(package private) int |
numberOfMeasurements() |
GTrackState |
state(double s)
Return a state at a path distance s.
|
GTrackState |
state(Surface srf)
Return the existing state at a particular surface.
|
GTrackState |
state(Surface srf,
double s1,
double s2)
Return the existing state at a particular surface.
|
TreeSet |
states()
Return the list of states.
|
String |
toString()
output stream
|
void |
update(TreeSet states)
Rebuild the existing track from new set of GTrackStates (needed for Java's inability
to modify local handles)
|
static final double SMIN
static final double SMAX
static final GTrackState BAD_STATE
private static Propagator _prop
private boolean _valid
private TreeSet _states
public GTrack()
public GTrack(TreeSet states)
states
- The list of track states.public GTrack(GTrack gtr)
gtr
- The GTrack to replicate.public void update(TreeSet states)
states
- The list of GTrackStates.public int dropFit(double s)
s
- The path distance at which to drop a fit.public boolean isValid()
public TreeSet states()
public GTrackState state(double s)
s
- The path distance for which to return a state.public GTrackState state(Surface srf)
srf
- The surface for which to return a state.public GTrackState state(Surface srf, double s1, double s2)
srf
- The surface for which to return a state.s1
- The lower bound on the path distance.s2
- The upper bound on the path distance.int numberOfMeasurements()
public String toString()
public boolean equals(GTrack gtr)
gtr
- The GTrack to test.public boolean notEquals(GTrack gtr)
gtr
- The GTrack to test.Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.