hep.lcd.vertexing.zvtop
Class ZvgCMat

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

public class ZvgCMat
extends Object

ZvgCMat -- generate transformation matrix from a ZvTrack

Hold the transformation matrix C and vector c for a ZvTrack.
Calculate C and c at initialization and provide methods to determine chi2 and distance along track with respect to an external point.

CAUTION: This class is part of an upcoming extension of ZvTopVertexer. It is not necessarily fully working and may change frequently.

Version:
$Id: ZvgCMat.java,v 1.2 2001/06/05 18:20:58 walkowia Exp $
Author:
W.Walkowiak, 05/23/01
Source Code:
ZvgCMat.java

Constructor Summary
ZvgCMat()
          constructor without initialization
ZvgCMat(ZvgCMat CMat)
          copy constructor
ZvgCMat(ZvTrack track)
           
ZvgCMat(ZvTrack track, double[] refPoint)
           
 
Method Summary
 double chi2(double[] xd)
          calculate the chi2 with respect to point xd (real coordinates)
 Jama.Matrix CMat()
          get the C matrix
 ZvgCMat copy()
          provide a deep copy (track as handle, though)
 Hep3Vector cVec()
          get the c vector
 double distTrack(double[] xd)
          calculate distance along track i from "2d-poca" to poca xd position
 String dumpToString()
          Print the current values of cVec and cMat to a String.
 double[] Eta()
          get Eta vector
 void initCMat(ZvTrack track)
          initialize the CMat with a track; use default reference point (origin)
 void initCMat(ZvTrack inTrack, double[] refPoint)
          Initialize the CMat with a track; use reference point
Note: track is possibly the swum track, x0p and z0 will be calculated as docas to refPoint with a simple linear extrapolation.
 double[] Ksi()
          get Ksi vector
 double sEta2()
          get sigma(Eta)^2
 double sKsi2()
          get sigma(Ksi)^2
 ZvTrack track()
          get handle to track for this CMat
 double[] xRef()
          get reference point, which was used for this CMat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZvgCMat

public ZvgCMat()
constructor without initialization

ZvgCMat

public ZvgCMat(ZvTrack track)
See Also:
initCMat(hep.lcd.vertexing.zvtop.ZvTrack)

ZvgCMat

public ZvgCMat(ZvTrack track,
               double[] refPoint)
See Also:
initCMat(ZvTrack,double[])

ZvgCMat

public ZvgCMat(ZvgCMat CMat)
copy constructor
Method Detail

initCMat

public void initCMat(ZvTrack track)
initialize the CMat with a track; use default reference point (origin)
See Also:
initCMat(ZvTrack,double[])

initCMat

public void initCMat(ZvTrack inTrack,
                     double[] refPoint)
Initialize the CMat with a track; use reference point
Note: track is possibly the swum track, x0p and z0 will be calculated as docas to refPoint with a simple linear extrapolation.

chi2

public double chi2(double[] xd)
calculate the chi2 with respect to point xd (real coordinates)

distTrack

public double distTrack(double[] xd)
calculate distance along track i from "2d-poca" to poca xd position

CMat

public Jama.Matrix CMat()
get the C matrix

cVec

public Hep3Vector cVec()
get the c vector

sKsi2

public double sKsi2()
get sigma(Ksi)^2

sEta2

public double sEta2()
get sigma(Eta)^2

Ksi

public double[] Ksi()
get Ksi vector

Eta

public double[] Eta()
get Eta vector

xRef

public double[] xRef()
get reference point, which was used for this CMat

track

public ZvTrack track()
get handle to track for this CMat

dumpToString

public String dumpToString()
Print the current values of cVec and cMat to a String.

copy

public ZvgCMat copy()
provide a deep copy (track as handle, though)


The LCD Group