hep.lcd.vertexing.zvtop
Class ZvVertex

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

public class ZvVertex
extends Object
implements VertexInt

ZvVertex -- ZvTop vertex representation

Class provides results of topological vertexing.

Version:
$Id: ZvVertex.java,v 1.3 2001/06/13 23:51:16 walkowia Exp $
Author:
W.Walkowiak, 09/14/00
Source Code:
ZvVertex.java

Constructor Summary
ZvVertex(double[] vertexPosition)
           
ZvVertex(double[] vertexPosition, double[][] vertexErrorMatrix)
           
ZvVertex(double[] vertexPosition, double[][] vertexErrorMatrix, ZvTrackList vertexTracks)
           
 
Method Summary
 void addVtxTrack(ZvTrack track)
          add a track to this vertex' track list
 ZvVertex copy()
          make a deep copy
 double getAlphaDis()
          get angular displacement of vertex
returns value of last calculation with last reference point!
 double getAlphaDis(double[] xIP)
          get angular displacement of vertex
usually calculated with respect to beam spot
 double getChi2()
          get chi2 from vertex fit
 FitStatus getFitStatus()
          get fit status for this vertex
cast to ZvFitStatus if needed.
 double getMass()
          get mass for pion hypothesis
 int getNumTracks()
          get number of Tracks
 double getSumCharge()
          get sum of charges
 TrackList getTrackList()
          Get the TrackList (ZvTracks).
 Enumeration getTracks()
          Get an enumeration of tracks (ZvTracks).
 double[][] getVertexErr()
          get vertex error matrix
 double[] getVertexPos()
          get vertex position
 double getVtxSig()
          get vertex significance value for vertex
 ZvTrackList getVtxTracks()
          get assigned tracks as track list
 ZvTrackList getVtxTracksCopy()
          get a copy of assigned tracks as track list
 double getX()
          get vertex x positon
 double getY()
          get vertex y positon
 double getZ()
          get vertex z positon
 boolean hasBeamSpot()
          Is the beam spot in this vertex?
 boolean hasTrack(ZvTrack track)
          check for track being in this vertex
 void setChi2(double chi2)
          set chi2 from vertex fit
 void setFitStatus(ZvFitStatus status)
          set fit status for this vertex
 void setHasBeamSpot(boolean hasBeamSpot)
          set whether beam spot is in vertex
default: false
 void setMass(double massIfPions)
          set mass for pion hypothesis
 void setNumTracks(int numTracks)
          set number of Tracks
 void setSumCharge(double sumCharge)
          set sum of charges
 void setVertexErr(double[][] vertexErrorMatrix)
          set vertex error matrix
 void setVertexPos(double[] vertexPosition)
          set vertex position
 void setVtxSig(double vtxSig)
          set vertex significance value for vertex
 void setVtxTracks(ZvTrackList vTracks)
          set assigned tracks as track list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZvVertex

public ZvVertex(double[] vertexPosition)

ZvVertex

public ZvVertex(double[] vertexPosition,
                double[][] vertexErrorMatrix)

ZvVertex

public ZvVertex(double[] vertexPosition,
                double[][] vertexErrorMatrix,
                ZvTrackList vertexTracks)
Method Detail

setVertexPos

public void setVertexPos(double[] vertexPosition)
set vertex position
Specified by:
setVertexPos in interface VertexInt

setVertexErr

public void setVertexErr(double[][] vertexErrorMatrix)
set vertex error matrix
Specified by:
setVertexErr in interface VertexInt

setVtxSig

public void setVtxSig(double vtxSig)
set vertex significance value for vertex

setChi2

public void setChi2(double chi2)
set chi2 from vertex fit
Specified by:
setChi2 in interface VertexInt

setNumTracks

public void setNumTracks(int numTracks)
set number of Tracks

setSumCharge

public void setSumCharge(double sumCharge)
set sum of charges

setMass

public void setMass(double massIfPions)
set mass for pion hypothesis

getVertexPos

public double[] getVertexPos()
get vertex position
Specified by:
getVertexPos in interface Vertex

getX

public double getX()
get vertex x positon

getY

public double getY()
get vertex y positon

getZ

public double getZ()
get vertex z positon

getVertexErr

public double[][] getVertexErr()
get vertex error matrix
Specified by:
getVertexErr in interface Vertex

getVtxSig

public double getVtxSig()
get vertex significance value for vertex

getChi2

public double getChi2()
get chi2 from vertex fit
Specified by:
getChi2 in interface Vertex

getNumTracks

public int getNumTracks()
get number of Tracks
Specified by:
getNumTracks in interface VertexInt

getSumCharge

public double getSumCharge()
get sum of charges

getMass

public double getMass()
get mass for pion hypothesis

getAlphaDis

public double getAlphaDis()
get angular displacement of vertex
returns value of last calculation with last reference point!

getAlphaDis

public double getAlphaDis(double[] xIP)
get angular displacement of vertex
usually calculated with respect to beam spot

setVtxTracks

public void setVtxTracks(ZvTrackList vTracks)
set assigned tracks as track list

addVtxTrack

public void addVtxTrack(ZvTrack track)
add a track to this vertex' track list

setFitStatus

public void setFitStatus(ZvFitStatus status)
set fit status for this vertex

getFitStatus

public FitStatus getFitStatus()
get fit status for this vertex
cast to ZvFitStatus if needed.
Specified by:
getFitStatus in interface Vertex

getVtxTracks

public ZvTrackList getVtxTracks()
get assigned tracks as track list

getVtxTracksCopy

public ZvTrackList getVtxTracksCopy()
get a copy of assigned tracks as track list

hasTrack

public boolean hasTrack(ZvTrack track)
check for track being in this vertex

setHasBeamSpot

public void setHasBeamSpot(boolean hasBeamSpot)
set whether beam spot is in vertex
default: false

hasBeamSpot

public boolean hasBeamSpot()
Is the beam spot in this vertex?

getTracks

public Enumeration getTracks()
Get an enumeration of tracks (ZvTracks).
Specified by:
getTracks in interface VertexInt

getTrackList

public TrackList getTrackList()
Get the TrackList (ZvTracks).
Specified by:
getTrackList in interface Vertex

copy

public ZvVertex copy()
make a deep copy


The LCD Group