Commit in lcio/src/java/hep/lcio/implementation on MAIN
event/ITrackerPulse.java+3-51.4 -> 1.5
sio/SIOTrackerPulse.java+3-31.4 -> 1.5
+6-8
2 modified files
Minor code cleanup

lcio/src/java/hep/lcio/implementation/event
ITrackerPulse.java 1.4 -> 1.5
diff -u -r1.4 -r1.5
--- ITrackerPulse.java	12 May 2010 14:50:01 -0000	1.4
+++ ITrackerPulse.java	30 Jun 2010 00:12:51 -0000	1.5
@@ -6,7 +6,7 @@
 /**
  *
  * @author tonyj
- * @version $Id: ITrackerPulse.java,v 1.4 2010/05/12 14:50:01 engels Exp $
+ * @version $Id: ITrackerPulse.java,v 1.5 2010/06/30 00:12:51 tonyj Exp $
  */
 public class ITrackerPulse extends ILCObject implements TrackerPulse
 {
@@ -18,10 +18,8 @@
    protected TrackerData correctedData;
    protected float time;
    //protected float timeError;
-   protected static int covMatrixSize=3;
-   protected float[] covMatrix = new float[covMatrixSize];
+   protected float[] covMatrix = new float[3];
    
- 
    
    /**
     * @return Returns the cellID0.
@@ -82,7 +80,7 @@
 
    public void setCovMatrix(float[] matrix)
    {
-      if (matrix.length != covMatrixSize) throw new IllegalArgumentException();
+      if (matrix.length != covMatrix.length) throw new IllegalArgumentException();
       checkAccess();
       this.covMatrix = matrix;
    }

lcio/src/java/hep/lcio/implementation/sio
SIOTrackerPulse.java 1.4 -> 1.5
diff -u -r1.4 -r1.5
--- SIOTrackerPulse.java	12 May 2010 14:50:01 -0000	1.4
+++ SIOTrackerPulse.java	30 Jun 2010 00:12:51 -0000	1.5
@@ -12,7 +12,7 @@
 /**
  *
  * @author tonyj
- * @version $Id: SIOTrackerPulse.java,v 1.4 2010/05/12 14:50:01 engels Exp $
+ * @version $Id: SIOTrackerPulse.java,v 1.5 2010/06/30 00:12:51 tonyj Exp $
  */
 public class SIOTrackerPulse extends ITrackerPulse
 {
@@ -30,14 +30,14 @@
       //timeError = 0;
       //chargeError = 0;
 
-      for (int i = 0; i < covMatrixSize; i++)
+      for (int i = 0; i < covMatrix.length; i++)
         covMatrix[i] = 0;
 
       if( SIOVersion.encode(major,minor) > SIOVersion.encode(1,12)){
         //timeError = in.readFloat();
         //chargeError = in.readFloat();
         if ((flags & (1 << LCIO.TRAWBIT_CM)) != 0){
-          for (int i = 0; i < covMatrixSize; i++){
+          for (int i = 0; i < covMatrix.length; i++){
               covMatrix[i] = in.readFloat();
           }
         }
CVSspam 0.2.8