hep.lcd.vertexing.zvtop
Class ZvgCMatList

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

public class ZvgCMatList
extends Object
implements Serializable

ZvgCMatList -- ZvTop internal CMat representation

Class provides a list of ZvgCMat objects.

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

Version:
$Id: ZvgCMatList.java,v 1.2 2001/06/05 18:20:58 walkowia Exp $
Author:
W.Walkowiak, 05/24/01
See Also:
Serialized Form
Source Code:
ZvgCMatList.java

Constructor Summary
ZvgCMatList()
           
ZvgCMatList(double[] xRef)
          Constructor with reference point (eg IP).
ZvgCMatList(Enumeration e)
          This constructor takes an enumeration of ZvgCMats or ZvTracks
ZvgCMatList(Enumeration e, double[] xRef)
          This constructor takes an enumeration of ZvgCMats or ZvTracks and allows to set the reference point (eg IP).
 
Method Summary
 void addCMat(ZvgCMat cMat)
          add a single CMat
 void addCMat(ZvTrack track)
          add a single track (ZvTrack)
 void addEnumeration(Enumeration e)
          Add an enumeration of CMats or ZvTracks
 ZvgCMat cMatAt(int index)
           
 boolean contains(ZvgCMat cMat)
           
 ZvgCMat firstCMat()
           
 ZvgCMatList getCopy()
          get a deep copy of Cmat list
 int getNCMats()
          get number of CMats in this list
 double[] getRefPoint()
          Get the current reference point used.
 Enumeration getZvTracks()
          get an enumeration of the underlying ZvTracks
 int indexOf(ZvgCMat cMat)
          find index of track in list
returns -1, if not found
 void insertCMatAt(ZvgCMat cMat, int index)
           
 void insertCMatAt(ZvTrack track, int index)
           
 boolean isEmpty()
           
 ZvgCMat lastCMat()
           
 int lastIndexOf(ZvgCMat cMat)
          find last index of track in list
returns -1, if not found
 void removeAllCMats()
           
 void removeCMat(ZvgCMat cMat)
           
 void removeCMatAt(int index)
           
 void setCMatAt(ZvgCMat cMat, int index)
           
 void setRefPoint(double[] xRef)
          Set the reference point (eg IP)
CAUTION: Takes effect for future additions to list only.
 void setTrackAt(ZvTrack track, int index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZvgCMatList

public ZvgCMatList()

ZvgCMatList

public ZvgCMatList(double[] xRef)
Constructor with reference point (eg IP).

ZvgCMatList

public ZvgCMatList(Enumeration e)
This constructor takes an enumeration of ZvgCMats or ZvTracks

ZvgCMatList

public ZvgCMatList(Enumeration e,
                   double[] xRef)
This constructor takes an enumeration of ZvgCMats or ZvTracks and allows to set the reference point (eg IP).
Method Detail

setRefPoint

public void setRefPoint(double[] xRef)
Set the reference point (eg IP)
CAUTION: Takes effect for future additions to list only.

getRefPoint

public double[] getRefPoint()
Get the current reference point used.

getNCMats

public int getNCMats()
get number of CMats in this list

getZvTracks

public Enumeration getZvTracks()
get an enumeration of the underlying ZvTracks

addCMat

public void addCMat(ZvgCMat cMat)
add a single CMat

addCMat

public void addCMat(ZvTrack track)
add a single track (ZvTrack)

addEnumeration

public void addEnumeration(Enumeration e)
Add an enumeration of CMats or ZvTracks

cMatAt

public ZvgCMat cMatAt(int index)

firstCMat

public ZvgCMat firstCMat()

lastCMat

public ZvgCMat lastCMat()

insertCMatAt

public void insertCMatAt(ZvgCMat cMat,
                         int index)

insertCMatAt

public void insertCMatAt(ZvTrack track,
                         int index)

setCMatAt

public void setCMatAt(ZvgCMat cMat,
                      int index)

setTrackAt

public void setTrackAt(ZvTrack track,
                       int index)

removeAllCMats

public void removeAllCMats()

removeCMat

public void removeCMat(ZvgCMat cMat)

removeCMatAt

public void removeCMatAt(int index)

contains

public boolean contains(ZvgCMat cMat)

indexOf

public int indexOf(ZvgCMat cMat)
find index of track in list
returns -1, if not found

lastIndexOf

public int lastIndexOf(ZvgCMat cMat)
find last index of track in list
returns -1, if not found

isEmpty

public boolean isEmpty()

getCopy

public ZvgCMatList getCopy()
get a deep copy of Cmat list


The LCD Group