lcsim/src/org/lcsim/util/aida
diff -u -r1.12 -r1.13
--- AIDA.java 13 Mar 2013 05:11:48 -0000 1.12
+++ AIDA.java 15 Apr 2013 22:42:55 -0000 1.13
@@ -13,7 +13,7 @@
import hep.aida.IProfile1D;
import hep.aida.IProfile2D;
import hep.aida.ITree;
-import hep.aida.ref.rootwriter.RootFileStore;
+//import hep.aida.ref.rootwriter.RootFileStore;
import hep.aida.ref.xml.AidaXMLStore;
import java.io.File;
import java.io.IOException;
@@ -285,20 +285,20 @@
public void saveAs(String name) throws IOException
{
- if (name.toLowerCase().endsWith(".root")) {
- saveAsRoot(name);
- return;
- }
+ //if (name.toLowerCase().endsWith(".root")) {
+ // saveAsRoot(name);
+ // return;
+ //}
if (!name.toLowerCase().endsWith(".aida")) name = name + ".aida";
save(new File(name), false);
}
public void saveAs(File outFile) throws IOException
{
- if (outFile.getName().toLowerCase().endsWith(".root")) {
- saveAsRoot(outFile.getPath());
- return;
- }
+ //if (outFile.getName().toLowerCase().endsWith(".root")) {
+ // saveAsRoot(outFile.getPath());
+ // return;
+ //}
save(outFile,false);
}
@@ -342,13 +342,13 @@
store.commit(tree, newFile, null, useZip, false, false);
}
}
- private void saveAsRoot(String path) throws IOException {
- RootFileStore store = new RootFileStore(path);
- tree.commit();
- store.open();
- store.add(tree);
- store.close();
- }
+ //private void saveAsRoot(String path) throws IOException {
+ //RootFileStore store = new RootFileStore(path);
+ // tree.commit();
+ // store.open();
+ // store.add(tree);
+ // store.close();
+ //}
private class AIDAException extends RuntimeException
{
AIDAException(String message, Throwable cause)