Author: [log in to unmask]
Date: Thu Oct 8 23:11:05 2015
New Revision: 3825
Log:
Setup run manager in test as the builder needs it now.
Modified:
java/trunk/evio/src/test/java/org/hps/evio/ScalersTest.java
Modified: java/trunk/evio/src/test/java/org/hps/evio/ScalersTest.java
=============================================================================
--- java/trunk/evio/src/test/java/org/hps/evio/ScalersTest.java (original)
+++ java/trunk/evio/src/test/java/org/hps/evio/ScalersTest.java Thu Oct 8 23:11:05 2015
@@ -15,6 +15,7 @@
import org.hps.record.scalers.ScalerData;
import org.hps.record.scalers.ScalerUtilities;
import org.hps.record.scalers.ScalerUtilities.LiveTimeIndex;
+import org.hps.run.database.RunManager;
import org.lcsim.event.EventHeader;
import org.lcsim.util.Driver;
import org.lcsim.util.cache.FileCache;
@@ -44,6 +45,9 @@
LCSimEventBuilder builder = new LCSimEngRunEventBuilder();
manager.addConditionsListener(builder);
+ // This needs to be set as the builder depends on it now.
+ RunManager.getRunManager().setRun(4469);
+
// Configure and run the job to write out the LCIO from EVIO.
CompositeLoopConfiguration configuration = new CompositeLoopConfiguration();
configuration.setDataSourceType(DataSourceType.EVIO_FILE);
|