hep.lcd.vertexing.zvtop
Class ZvBeamSpot

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

public class ZvBeamSpot
extends Object

ZvBeamSpot -- beam spot and error matrix

ZvTop's beam spot definition
To be set before running ZvTop.

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

Constructor Summary
ZvBeamSpot()
          constructor; provides default parameter settings
ZvBeamSpot(double[] position)
          constructor setting position only
ZvBeamSpot(double[] position, double[] diagError)
          constructor setting position and errors
errors are sqrt(diagonal error matrix elements)
ZvBeamSpot(double[] position, double[][] errorMatrix)
          constructor setting position and error matrix
ZvBeamSpot(ZvBeamSpot bs)
          copy constructor
 
Method Summary
 ZvBeamSpot copy()
          get a deep copy
 double[] diagErrors()
          get the errors for beam spot
sqrt(diagonal elements of error matrix)
 double[][] errorMatrix()
          get the beam spot error matrix
 double[] position()
          get the beam spot position
 double prob(double[] xc)
          get the probabilty density at point xc for beam spot
 void setDiagErrors(double[] errors)
          set errors for beam spot
sqrt(diagonal elements of error matrix)!
default: 7 um (xy) and 30 um (z) error in diagonal
 void setErrorMatrix(double[][] errorMatrix)
          set beam spot error matrix
default: 7 um (xy) and 30 um (z) error in diagonal
 void setPosition(double[] pos)
          set beam spot position
default: set to (0,0,0)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZvBeamSpot

public ZvBeamSpot()
constructor; provides default parameter settings

ZvBeamSpot

public ZvBeamSpot(double[] position)
constructor setting position only

ZvBeamSpot

public ZvBeamSpot(double[] position,
                  double[][] errorMatrix)
constructor setting position and error matrix

ZvBeamSpot

public ZvBeamSpot(double[] position,
                  double[] diagError)
constructor setting position and errors
errors are sqrt(diagonal error matrix elements)

ZvBeamSpot

public ZvBeamSpot(ZvBeamSpot bs)
copy constructor
Method Detail

setPosition

public void setPosition(double[] pos)
set beam spot position
default: set to (0,0,0)

setErrorMatrix

public void setErrorMatrix(double[][] errorMatrix)
set beam spot error matrix
default: 7 um (xy) and 30 um (z) error in diagonal

setDiagErrors

public void setDiagErrors(double[] errors)
set errors for beam spot
sqrt(diagonal elements of error matrix)!
default: 7 um (xy) and 30 um (z) error in diagonal

position

public double[] position()
get the beam spot position

errorMatrix

public double[][] errorMatrix()
get the beam spot error matrix

diagErrors

public double[] diagErrors()
get the errors for beam spot
sqrt(diagonal elements of error matrix)

prob

public double prob(double[] xc)
get the probabilty density at point xc for beam spot

copy

public ZvBeamSpot copy()
get a deep copy


The LCD Group