lcsim/test/org/lcsim/recon/vertexing/zvtop4
diff -u -r1.2 -r1.3
--- ZvTrackTest.java 24 Jun 2005 05:39:39 -0000 1.2
+++ ZvTrackTest.java 26 Jun 2005 04:34:58 -0000 1.3
@@ -1,7 +1,9 @@
package org.lcsim.recon.vertexing.zvtop4;
import java.io.File;
+import java.net.URL;
+import org.lcsim.util.cache.FileCache;
import org.lcsim.util.loop.LCSimLoop;
import junit.framework.TestCase;
@@ -9,11 +11,15 @@
public class ZvTrackTest extends TestCase {
LCSimLoop loop;
File primaryVertexFile;
+ URL location;
+ FileCache cache;
protected void setUp() throws Exception {
super.setUp();
loop = new LCSimLoop();
// contains psi- mu mu events
- primaryVertexFile = new File("psiMuMu.slcio");
+ location = new URL("http://www.lcsim.org/datasamples/psiMuMu.slcio");
+ cache = new FileCache();
+ primaryVertexFile = cache.getCachedFile(location);
loop.setLCIORecordSource(primaryVertexFile);
}