Commit in lcsim-cal-calib/src/org/lcsim/cal/calib on MAIN
ClusterEnergyAnalysis.java+16-211.6 -> 1.7
can't noth display and write out.

lcsim-cal-calib/src/org/lcsim/cal/calib
ClusterEnergyAnalysis.java 1.6 -> 1.7
diff -u -r1.6 -r1.7
--- ClusterEnergyAnalysis.java	15 Jul 2008 03:33:53 -0000	1.6
+++ ClusterEnergyAnalysis.java	15 Jul 2008 03:36:38 -0000	1.7
@@ -3,7 +3,7 @@
  *
  * Created on July 14, 2008, 6:18 PM
  *
- * $Id: ClusterEnergyAnalysis.java,v 1.6 2008/07/15 03:33:53 ngraf Exp $
+ * $Id: ClusterEnergyAnalysis.java,v 1.7 2008/07/15 03:36:38 ngraf Exp $
  */
 
 package org.lcsim.cal.calib;
@@ -191,7 +191,7 @@
     
     protected void endOfData()
     {
-        boolean showPlots = true;
+        boolean showPlots = false;
         String fileType = "png";
         String[] pars = {"amplitude", "mean","sigma"};
         //      int[] intEnergy = {1, 2, 5, 10, 20, 50, 100,  500 };
@@ -374,27 +374,22 @@
             resolution2.show();
             residuals.show();
         }
-        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)
+        else
         {
-            System.out.println("problem writing out hardcopy in "+fileType+" format");
-            e.printStackTrace();
+            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)
+            {
+                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