lcsim/src/org/lcsim/plugin/web
diff -u -r1.3 -r1.4
--- examples.html 3 Aug 2005 18:53:04 -0000 1.3
+++ examples.html 3 Aug 2005 19:30:58 -0000 1.4
@@ -32,6 +32,10 @@
<td><a href="examples/ClusterFinding.java">ClusterFinding.java</a></td>
<td>Cluster Finding example</td>
</tr>
+ <tr>
+ <td><a href="examples/DigiSimExample.java">DigiSimExample.java</a></td>
+ <td>Digitization example</td>
+ </tr>
</table>
<h2>org.lcsim Jython examples</h2>
<p>These examples are written in Jython. They have to be executed from within
lcsim/src/org/lcsim/plugin/web/examples
diff -N DigiSimExample.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ DigiSimExample.java 3 Aug 2005 19:30:58 -0000 1.1
@@ -0,0 +1,23 @@
+import org.lcsim.digisim.CalHitMapDriver;
+import org.lcsim.digisim.DigiSimDriver;
+import org.lcsim.util.Driver;
+
+/**
+ * A simple FastMC example
+ */
+public class DigiSimExample extends Driver
+{
+ public DigiSimExample()
+ {
+ // Instantiate CalHitMapDriver, needed by DigiSim
+ Driver hitmapper = new CalHitMapDriver();
+ // Add as sub-driver
+ add(hitmapper);
+
+ // Instantiate DigiSim
+ Driver digi = new DigiSimDriver();
+ // Turn on diagnostic histograms
+// digi.setHistogramLevel(1);
+ add(digi);
+ }
+}