3 modified files
lcsim/src/org/lcsim/recon/cheater
diff -u -r1.1 -r1.2
--- OutputMCFastRecon.java 12 Dec 2008 21:39:01 -0000 1.1
+++ OutputMCFastRecon.java 18 Dec 2008 20:48:34 -0000 1.2
@@ -33,10 +33,7 @@
// Write the events to disk
//
LCIODriver driver = new LCIODriver(output);
- for(int i=0;i<outcolls.length;i++)
- {
- driver.getWriter().addWriteOnly(outcolls[i]);
- }
+ driver.setWriteOnlyCollections(outcolls);
add(driver);
}
public OutputMCFastRecon(String path, String name)
@@ -50,10 +47,7 @@
//
File output = new File(path,name);
LCIODriver driver = new LCIODriver(output);
- for(int i=0;i<outcolls.length;i++)
- {
- driver.getWriter().addWriteOnly(outcolls[i]);
- }
+ driver.setWriteOnlyCollections(outcolls);
add(driver);
}
lcsim/src/org/lcsim/recon/cheater
diff -u -r1.1 -r1.2
--- OutputPPRRecon.java 12 Dec 2008 21:39:01 -0000 1.1
+++ OutputPPRRecon.java 18 Dec 2008 20:48:34 -0000 1.2
@@ -40,10 +40,7 @@
// Write the events to disk
//
LCIODriver driver = new LCIODriver(output);
- for(int i=0;i<outcolls.length;i++)
- {
- driver.getWriter().addWriteOnly(outcolls[i]);
- }
+ driver.setWriteOnlyCollections(outcolls);
add(driver);
}
public OutputPPRRecon(String path, String name)
@@ -57,10 +54,7 @@
//
File output = new File(path,name);
LCIODriver driver = new LCIODriver(output);
- for(int i=0;i<outcolls.length;i++)
- {
- driver.getWriter().addWriteOnly(outcolls[i]);
- }
+ driver.setWriteOnlyCollections(outcolls);
add(driver);
}
lcsim/test/org/lcsim
diff -u -r1.2 -r1.3
--- LCIOReconReadTest.java 17 Oct 2007 02:06:25 -0000 1.2
+++ LCIOReconReadTest.java 18 Dec 2008 20:48:34 -0000 1.3
@@ -41,7 +41,7 @@
loop.setLCIORecordSource(file);
loop.add(new ReadDriver());
LCIODriver lcio = new LCIODriver(new TestOutputFile("reconOnly.slcio"));
- lcio.getWriter().addWriteOnly("PFAReconstructedParticles");
+ lcio.setWriteOnlyCollection("PFAReconstructedParticles");
loop.add(lcio);
loop.loop(1, null);
loop.dispose();
CVSspam 0.2.8