Author: [log in to unmask]
Date: Wed Nov 26 15:12:37 2014
New Revision: 1598
Log:
Add analysis template steering file.
Added:
java/trunk/analysis/src/main/java/org/hps/analysis/examples/DummyAnalysisDriver.java (with props)
java/trunk/steering-files/src/main/resources/org/hps/steering/AnalysisTemplate.lcsim
Added: java/trunk/analysis/src/main/java/org/hps/analysis/examples/DummyAnalysisDriver.java
=============================================================================
--- java/trunk/analysis/src/main/java/org/hps/analysis/examples/DummyAnalysisDriver.java (added)
+++ java/trunk/analysis/src/main/java/org/hps/analysis/examples/DummyAnalysisDriver.java Wed Nov 26 15:12:37 2014
@@ -0,0 +1,15 @@
+package org.hps.analysis.examples;
+
+import org.lcsim.event.EventHeader;
+import org.lcsim.util.Driver;
+
+/**
+ * This is the stupidest possible Driver that could ever be written.
+ * @author Jeremy McCormick <[log in to unmask]>
+ */
+public class DummyAnalysisDriver extends Driver {
+ public void process(EventHeader event) {
+ System.out.println("Hello from the DummyAnalysisDriver! This is event #" + event + " in run # " + event.getRunNumber() + ".");
+ }
+
+}
Added: java/trunk/steering-files/src/main/resources/org/hps/steering/AnalysisTemplate.lcsim
=============================================================================
--- java/trunk/steering-files/src/main/resources/org/hps/steering/AnalysisTemplate.lcsim (added)
+++ java/trunk/steering-files/src/main/resources/org/hps/steering/AnalysisTemplate.lcsim Wed Nov 26 15:12:37 2014
@@ -0,0 +1,30 @@
+<!--
+ This is a simple template for creating an analysis steering file.
+-->
+<lcsim xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
+ xs:noNamespaceSchemaLocation="http://www.lcsim.org/schemas/lcsim/1.0/lcsim.xsd">
+ <execute>
+ <driver name="EventMarkerDriver"/>
+ <-- This should be replaced with your actual analysis Driver. -->
+ <driver name="DummyAnalysisDriver"/>
+ <driver name="LCIODriver"/>
+ <driver name="AidaSaveDriver"/>
+ <driver name="AidaSaveDriverRoot"/>
+ </execute>
+ <drivers>
+ <driver name="EventMarkerDriver" type="org.lcsim.job.EventMarkerDriver">
+ <eventInterval>1</eventInterval>
+ </driver>
+ <-- This should be replaced with your actual analysis Driver. -->
+ <driver name="DummyAnalysisDriver" type="org.hps.analysis.examples.DummyAnalysisDriver"/>
+ <driver name="LCIODriver" type="org.lcsim.util.loop.LCIODriver">
+ <outputFilePath>${outputFile}</outputFilePath>
+ </driver>
+ <driver name="AidaSaveDriver" type="org.lcsim.job.AidaSaveDriver">
+ <outputFileName>${outputFile}.aida</outputFileName>
+ </driver>
+ <driver name="AidaSaveDriverRoot" type="org.lcsim.job.AidaSaveDriver">
+ <outputFileName>${outputFile}.root</outputFileName>
+ </driver>
+ </drivers>
+</lcsim>
|