lcsim/src/org/lcsim/util/aida
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)
{