Print

Print


Commit in lcsim/src/org/lcsim/util/aida on MAIN
AIDA.java+151.6 -> 1.7
Add support for passing an options string on 1D histograms to allow support for efficiency histograms.

lcsim/src/org/lcsim/util/aida
AIDA.java 1.6 -> 1.7
diff -u -r1.6 -r1.7
--- AIDA.java	4 Oct 2007 22:02:07 -0000	1.6
+++ AIDA.java	24 Jul 2008 21:38:39 -0000	1.7
@@ -161,6 +161,21 @@
          return hf.createHistogram1D(path, bins, lowerEdge, upperEdge);
       }
    }
+   
+   public IHistogram1D histogram1D(String path, int bins, double lowerEdge, double upperEdge, String options)
+   {
+      try
+      {
+         IManagedObject obj = tree.find(path);
+         if (obj instanceof IHistogram1D) return (IHistogram1D) obj;
+         throw new RuntimeException(path +" is not a IHistogram1D");
+      }
+      catch (IllegalArgumentException x)
+      {
+         checkPath(path);
+         return hf.createHistogram1D(path, null, bins, lowerEdge, upperEdge, options);
+      }
+   }
 
    public IHistogram2D histogram2D(String path)
    {
CVSspam 0.2.8