java/sandbox
--- java/sandbox/EtEventDisplayExample.java (rev 0)
+++ java/sandbox/EtEventDisplayExample.java 2014-09-11 01:22:15 UTC (rev 988)
@@ -0,0 +1,42 @@
+import org.hps.conditions.deprecated.CalibrationDriver;
+import org.hps.evio.LCSimEventBuilder;
+import org.hps.evio.LCSimTestRunEventBuilder;
+import org.hps.recon.ecal.EcalRawConverterDriver;
+import org.hps.record.composite.CompositeLoop;
+import org.hps.record.composite.CompositeLoopConfiguration;
+import org.hps.record.enums.DataSourceType;
+import org.hps.record.et.EtConnection;
+import org.lcsim.job.EventMarkerDriver;
+import org.lcsim.recon.tracking.digitization.sisim.config.RawTrackerHitSensorSetup;
+
+/**
+ * Example of supplying events to the JAS3 Wired event display.
+ * This can be run in JAS3 using F9 and F2 to compile and load.
+ * Then the "next" button at the top of the app should be used
+ * to step through the events.
+ *
+ * @author Jeremy McCormick <[log in to unmask]>
+ */
+public class EtEventDisplayExample {
+
+ public static void main(String[] args) {
+ CompositeLoopConfiguration config = new CompositeLoopConfiguration();
+ LCSimEventBuilder builder = new LCSimTestRunEventBuilder();
+ builder.setDebug(false);
+ config.setDataSourceType(DataSourceType.ET_SERVER)
+ .setDetectorName("HPS-TestRun-v8-5")
+ .setEtConnection(EtConnection.createDefaultConnection())
+ .setLCSimEventBuilder(builder)
+ .setStopOnEndRun(true)
+ .setStopOnErrors(true)
+ .setSupplyLcioEvents(true)
+ .setMaxQueueSize(1)
+ .setTimeout(-1L)
+ .add(new CalibrationDriver())
+ .add(new RawTrackerHitSensorSetup())
+ .add(new EcalRawConverterDriver())
+ .add(new EventMarkerDriver());
+ CompositeLoop loop = new CompositeLoop(config);
+ loop.loop(-1);
+ }
+}