hep.lcd.vertexing.zvtop
Class ZvSwimmer

java.lang.Object
  extended byhep.lcd.vertexing.zvtop.ZvSwimmer
All Implemented Interfaces:
Swimmer

public class ZvSwimmer
extends java.lang.Object
implements Swimmer

ZvSwimmer -- swim a track to a target position.

Provides swimming of the track helix (ZvTrack format) and error matrix to the point of closest approach to a line parallel to the beam direction which contains the target point.

Version:
$Id: ZvSwimmer.java,v 1.3 2002/10/25 01:13:11 walkowia Exp $
Author:
W.Walkowiak, 09/18/00

Constructor Summary
ZvSwimmer()
           
ZvSwimmer(ZvSwimmer swimmer)
          copy constructor
ZvSwimmer(ZvTrack track)
           
 
Method Summary
 Swimmer copy()
          get a deep copy of the swimmer
 double[] getBeamDirection()
          get the beam direction currently used
 double getDist()
          get the distance of closest approach
 double[] getDistVec()
          get the vector of the distance of closest approach
(x_ref - x_track)
 double[] getRefPoint()
          get the corresponding point of closest approach on the reference line
 ZvSwimStatus getStatus()
          get the status of the swimmer
 ZvSwimStatus getStatusCopy()
          get the status of the swimmer as a deep copy
 ZvTrack getSwumTrack()
          get the resulting (swum) track
 void setBeamDirection(double[] beamDirection)
          set the beam direction
(or the reference direction)
default: {0.,0.,1.}
 void setMaxSinL(double maxSinL)
          set the maximum sin(lambda) -- dip angle cut off
 void setMaxTry(int nMaxTry)
          set the maximum number of tries
 void setStepMin(double swimStepMin)
          set the minimum step size
-- otherwise consider it converged
 void setStepSize(double swimStepSize)
          set the usual step size
 void setTrack(ZvTrack track)
          set track to be swum
 void setVolume(double maxRadius, double maxZ)
          set the fiducial volume of the detector
maximum radius and maximum abs(z)
 ZvSwimStatus swimTo(double[] targetPosition)
          swim the track to target position
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZvSwimmer

public ZvSwimmer()

ZvSwimmer

public ZvSwimmer(ZvTrack track)
See Also:
setTrack(hep.lcd.vertexing.zvtop.ZvTrack)

ZvSwimmer

public ZvSwimmer(ZvSwimmer swimmer)
copy constructor

Method Detail

setTrack

public void setTrack(ZvTrack track)
set track to be swum

Specified by:
setTrack in interface Swimmer

setBeamDirection

public void setBeamDirection(double[] beamDirection)
set the beam direction
(or the reference direction)
default: {0.,0.,1.}

Specified by:
setBeamDirection in interface Swimmer

getBeamDirection

public double[] getBeamDirection()
get the beam direction currently used

See Also:
setBeamDirection(double[])

setMaxTry

public void setMaxTry(int nMaxTry)
set the maximum number of tries


setStepMin

public void setStepMin(double swimStepMin)
set the minimum step size
-- otherwise consider it converged


setStepSize

public void setStepSize(double swimStepSize)
set the usual step size


setVolume

public void setVolume(double maxRadius,
                      double maxZ)
set the fiducial volume of the detector
maximum radius and maximum abs(z)


setMaxSinL

public void setMaxSinL(double maxSinL)
set the maximum sin(lambda) -- dip angle cut off


swimTo

public ZvSwimStatus swimTo(double[] targetPosition)
swim the track to target position

Specified by:
swimTo in interface Swimmer

getSwumTrack

public ZvTrack getSwumTrack()
get the resulting (swum) track

Specified by:
getSwumTrack in interface Swimmer

getRefPoint

public double[] getRefPoint()
get the corresponding point of closest approach on the reference line


getDistVec

public double[] getDistVec()
get the vector of the distance of closest approach
(x_ref - x_track)


getDist

public double getDist()
get the distance of closest approach


getStatus

public ZvSwimStatus getStatus()
get the status of the swimmer

Specified by:
getStatus in interface Swimmer

getStatusCopy

public ZvSwimStatus getStatusCopy()
get the status of the swimmer as a deep copy

Specified by:
getStatusCopy in interface Swimmer

copy

public Swimmer copy()
get a deep copy of the swimmer

Specified by:
copy in interface Swimmer


The LCD Group