Print

Print


Commit in lcsim-cal-calib/src/org/lcsim/cal/calib on MAIN
InterpolatedHMatrixProcessor.java+4-31.3 -> 1.4
add measurement dimension to properties file

lcsim-cal-calib/src/org/lcsim/cal/calib
InterpolatedHMatrixProcessor.java 1.3 -> 1.4
diff -u -r1.3 -r1.4
--- InterpolatedHMatrixProcessor.java	5 Jun 2008 23:13:27 -0000	1.3
+++ InterpolatedHMatrixProcessor.java	6 Jun 2008 00:36:15 -0000	1.4
@@ -3,7 +3,7 @@
  *
  * Created on June 5, 2008, 9:46 AM
  *
- * $Id: InterpolatedHMatrixProcessor.java,v 1.3 2008/06/05 23:13:27 ngraf Exp $
+ * $Id: InterpolatedHMatrixProcessor.java,v 1.4 2008/06/06 00:36:15 ngraf Exp $
  */
 
 package org.lcsim.cal.calib;
@@ -63,7 +63,7 @@
         Map<String, double[]> avMap = new TreeMap<String, double[]>();
         Map<String, double[]> covMap = new HashMap<String, double[]>();
         
-        
+        int hMatrixDimensionality = 0;
         for(File f : filesToProcess)
         {
             String[] parts = f.getName().split("_");
@@ -83,7 +83,7 @@
             String key = "Theta_"+theta+"_Energy_"+energy;
             
             HMatrix h = HMatrix.read(f.getName());
-            
+            hMatrixDimensionality = h.averageVector().length;
             avMap.put(key, h.averageVector());
             covMap.put(key, h.packedInverseCovarianceMatrix());
             
@@ -96,6 +96,7 @@
         // add some provenance to the file...
         w.write("# "+detectorName+" "+comment()+"\n");
         
+        w.write("Dimensionality = "+hMatrixDimensionality+"\n");
         // the energies and angles...
         w.write("ThetaVals  = "+stripBrackets(angles.toString())+"\n");
         w.write("EnergyVals = "+stripBrackets(energies.toString())+"\n");
CVSspam 0.2.8