Commit in lcsim-cal-calib/src/org/lcsim/cal/calib on MAIN
ClusterEnergyAnalysis.java+17-41.5 -> 1.6
add hardcopy

lcsim-cal-calib/src/org/lcsim/cal/calib
ClusterEnergyAnalysis.java 1.5 -> 1.6
diff -u -r1.5 -r1.6
--- ClusterEnergyAnalysis.java	15 Jul 2008 03:11:18 -0000	1.5
+++ ClusterEnergyAnalysis.java	15 Jul 2008 03:33:53 -0000	1.6
@@ -3,7 +3,7 @@
  *
  * Created on July 14, 2008, 6:18 PM
  *
- * $Id: ClusterEnergyAnalysis.java,v 1.5 2008/07/15 03:11:18 ngraf Exp $
+ * $Id: ClusterEnergyAnalysis.java,v 1.6 2008/07/15 03:33:53 ngraf Exp $
  */
 
 package org.lcsim.cal.calib;
@@ -23,6 +23,7 @@
 import hep.aida.IPlotterStyle;
 import hep.aida.ITree;
 import hep.physics.vec.Hep3Vector;
+import java.io.IOException;
 import java.util.List;
 import org.lcsim.conditions.ConditionsManager;
 import org.lcsim.conditions.ConditionsManager.ConditionsSetNotFoundException;
@@ -373,15 +374,27 @@
             resolution2.show();
             residuals.show();
         }
-        else
+        try{
+            plotter.writeToFile("energyPlots."+fileType,fileType);
+            results.writeToFile("linearity."+fileType,fileType);
+            resolution.writeToFile("resolution."+fileType,fileType);
+            resolution2.writeToFile("resolutionLinear."+fileType,fileType);
+            residuals.writeToFile("residuals."+fileType,fileType);        
+        }
+        catch(IOException e)
         {
-            // hardcopy
+            System.out.println("problem writing out hardcopy in "+fileType+" format");
+            e.printStackTrace();
+        }
+//        else
+//        {
+//            // hardcopy
 //            plotter.writeToFile(fileFullPath+"_energyPlots."+fileType,fileType);
 //            results.writeToFile(fileFullPath+"_linearity."+fileType,fileType);
 //            resolution.writeToFile(fileFullPath+"_resolution."+fileType,fileType);
 //            resolution2.writeToFile(fileFullPath+"_resolutionLinear."+fileType,fileType);
 //            residuals.writeToFile(fileFullPath+"_residuals."+fileType,fileType);
-        }
+//        }
     }
     
     
CVSspam 0.2.8