hep.lcd.vertexing.zvtop
Class ZvFitter

java.lang.Object
  |
  +--hep.lcd.vertexing.zvtop.ZvFitter

public class ZvFitter
extends Object
implements VtxFitter

ZvFitter -- fit vertex for a list of tracks

No overdrive option so far

Version:
$Id: ZvFitter.java,v 1.2 2001/06/05 18:20:56 walkowia Exp $
Author:
W.Walkowiak, 09/18/00
Source Code:
ZvFitter.java

Constructor Summary
ZvFitter()
           
ZvFitter(Swimmer swimmer)
           
ZvFitter(ZvFitter fitter)
          copy constructor
ZvFitter(ZvTrackList trackList)
           
 
Method Summary
 VtxFitter copy()
          get a deep copy
 ZvFitStatus doFit(double[] initVtxPosition, double[] initVtxError)
          fit the vertex
 ZvVertex getFittedVertex()
          get the resulting (fitted) vertex
 ZvTrackList getNewTrackList()
          get the resulting (reswum) track list
-- of interest, if takeNewTrackList is set to false
 ZvFitStatus getStatus()
          get the status of the fitter
 ZvFitStatus getStatusCopy()
          get the status of the fitter as a deep copy
 void setDistMin(double swimDistMin)
          set the minimum swim distance
-- otherwise no swimming for the track necessary
-- default: 0.1
 void setMaxTry(int nMaxTry)
          set the maximum number of tries for outer loop
-- default: 3
 void setMaxTryInner(int nMaxTryInner)
          set the maximum number of tries for inner loop
-- default: 2
 void setSwimmer(Swimmer swimmer)
          set the Swimmer to be used
default: ZvSwimmer (with it's default settings)
 void setTrackList(ZvTrackList trackList)
          set track list to be fitted
 void setVtxResMax(double vtxResMax)
          set the maximal vertex resolution -- vertex has converged, if two subsequent fits are within this distance of each other
-- default: 0.001
 Swimmer swimmer()
          get a handle to the swimmer used
 void takeNewTrackList(boolean choice)
          choose whether to record unswum (old) or swum (new) track parameters with the fitted vertex' track list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZvFitter

public ZvFitter()

ZvFitter

public ZvFitter(Swimmer swimmer)
See Also:
setSwimmer(hep.lcd.vertexing.zvtop.Swimmer)

ZvFitter

public ZvFitter(ZvTrackList trackList)
See Also:
setTrackList(hep.lcd.vertexing.zvtop.ZvTrackList)

ZvFitter

public ZvFitter(ZvFitter fitter)
copy constructor
Method Detail

setSwimmer

public void setSwimmer(Swimmer swimmer)
set the Swimmer to be used
default: ZvSwimmer (with it's default settings)

swimmer

public Swimmer swimmer()
get a handle to the swimmer used

setTrackList

public void setTrackList(ZvTrackList trackList)
set track list to be fitted
Specified by:
setTrackList in interface VtxFitter

setMaxTry

public void setMaxTry(int nMaxTry)
set the maximum number of tries for outer loop
-- default: 3

setMaxTryInner

public void setMaxTryInner(int nMaxTryInner)
set the maximum number of tries for inner loop
-- default: 2

setVtxResMax

public void setVtxResMax(double vtxResMax)
set the maximal vertex resolution -- vertex has converged, if two subsequent fits are within this distance of each other
-- default: 0.001

setDistMin

public void setDistMin(double swimDistMin)
set the minimum swim distance
-- otherwise no swimming for the track necessary
-- default: 0.1

takeNewTrackList

public void takeNewTrackList(boolean choice)
choose whether to record unswum (old) or swum (new) track parameters with the fitted vertex' track list
Specified by:
takeNewTrackList in interface VtxFitter

getFittedVertex

public ZvVertex getFittedVertex()
get the resulting (fitted) vertex
Specified by:
getFittedVertex in interface VtxFitter

getNewTrackList

public ZvTrackList getNewTrackList()
get the resulting (reswum) track list
-- of interest, if takeNewTrackList is set to false
Specified by:
getNewTrackList in interface VtxFitter

getStatus

public ZvFitStatus getStatus()
get the status of the fitter
Specified by:
getStatus in interface VtxFitter

getStatusCopy

public ZvFitStatus getStatusCopy()
get the status of the fitter as a deep copy
Specified by:
getStatusCopy in interface VtxFitter

doFit

public ZvFitStatus doFit(double[] initVtxPosition,
                         double[] initVtxError)
fit the vertex
Specified by:
doFit in interface VtxFitter

copy

public VtxFitter copy()
get a deep copy
Specified by:
copy in interface VtxFitter


The LCD Group