hep.lcd.vertexing.zvtop
Class ZvgChi2Calculator

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

public class ZvgChi2Calculator
extends Object

Source Code:
ZvgChi2Calculator.java

Constructor Summary
ZvgChi2Calculator()
           
ZvgChi2Calculator(ZvgChi2Calculator chi2Calculator)
          copy constructor
ZvgChi2Calculator(ZvTrackList trackList, ZvGhostTrack gTrack, double[] xIP)
          Constructor with initialization
 
Method Summary
 boolean calculateChi2()
          Calculate chi2
Returns false on error.
 void forceChi2ZeroCalc()
          Force a chi2Zero calculation now.
(To be done ie if ghost track width has changed.)
 double[] getChi2()
          Get the Chi2 contributions per track (copy).
 double[] getChi2Zero()
          Get the Chi2Zero contributions per track (copy).
 double[] getDistOnTracks()
          Get the distance along (original) track to point of closest approach with ghost (copy).
 double getGhostWidthMax2()
          Get the square of the maximum ghost track width value.
 double getTotalChi2()
          Get the total Chi2 sum.
 double[] getTrackToGhostNorms()
          Get the 3D norms to ghost track at IP (copy).
 void init(ZvTrackList trackList, ZvGhostTrack gTrack, double[] xIP)
          initialize with track list, ghost track and IP position
 void setCMatList(ZvgCMatList cMatList)
          Set CMat list to be considered
 void setGhostTrack(ZvGhostTrack gTrack)
          Set ghost track to be used.
This does not cause a new calculation of the chi2Zeros!
 void setIP(double[] xIP)
          Set reference point (eg IP)
 void setJetDirection(double[] jetDirection)
          Set jet direction
Needed to calculate soft jet core weight in chi2.
 void setJWgtExp(double exp)
          Set the exponent for jet core weighting.
 void setJWgtFac(double fac)
          Set the factor for jet core weighting.
 void setMaxChi2(double chi2Max)
          Set maximum chi2 cut.
 void setNTry(int nTry)
          Set the current trial number Default: 1
 void setZvTrackList(ZvTrackList trackList)
          Set ZvTrackList to be used
(Should have same size at CMatList and should be swum to 2D doca.)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZvgChi2Calculator

public ZvgChi2Calculator()

ZvgChi2Calculator

public ZvgChi2Calculator(ZvTrackList trackList,
                         ZvGhostTrack gTrack,
                         double[] xIP)
Constructor with initialization
See Also:
init(hep.lcd.vertexing.zvtop.ZvTrackList, hep.lcd.vertexing.zvtop.ZvGhostTrack, double[])

ZvgChi2Calculator

public ZvgChi2Calculator(ZvgChi2Calculator chi2Calculator)
copy constructor
Method Detail

init

public void init(ZvTrackList trackList,
                 ZvGhostTrack gTrack,
                 double[] xIP)
initialize with track list, ghost track and IP position

setGhostTrack

public void setGhostTrack(ZvGhostTrack gTrack)
Set ghost track to be used.
This does not cause a new calculation of the chi2Zeros!

forceChi2ZeroCalc

public void forceChi2ZeroCalc()
Force a chi2Zero calculation now.
(To be done ie if ghost track width has changed.)

setZvTrackList

public void setZvTrackList(ZvTrackList trackList)
Set ZvTrackList to be used
(Should have same size at CMatList and should be swum to 2D doca.)

setCMatList

public void setCMatList(ZvgCMatList cMatList)
Set CMat list to be considered

setIP

public void setIP(double[] xIP)
Set reference point (eg IP)

setJetDirection

public void setJetDirection(double[] jetDirection)
Set jet direction
Needed to calculate soft jet core weight in chi2.

setNTry

public void setNTry(int nTry)
Set the current trial number Default: 1

setJWgtExp

public void setJWgtExp(double exp)
Set the exponent for jet core weighting.
alpha = alpha^exp
Default: 0.8

setJWgtFac

public void setJWgtFac(double fac)
Set the factor for jet core weighting.
chi2_jWgt = (fac*alpha)^2
Default: 1/0.3

setMaxChi2

public void setMaxChi2(double chi2Max)
Set maximum chi2 cut. Default: 1.0

calculateChi2

public boolean calculateChi2()
Calculate chi2
Returns false on error.

getTotalChi2

public double getTotalChi2()
Get the total Chi2 sum.

getChi2

public double[] getChi2()
Get the Chi2 contributions per track (copy).

getChi2Zero

public double[] getChi2Zero()
Get the Chi2Zero contributions per track (copy).

getTrackToGhostNorms

public double[] getTrackToGhostNorms()
Get the 3D norms to ghost track at IP (copy).

getDistOnTracks

public double[] getDistOnTracks()
Get the distance along (original) track to point of closest approach with ghost (copy).

getGhostWidthMax2

public double getGhostWidthMax2()
Get the square of the maximum ghost track width value.


The LCD Group