Print

Print


Commit in lcsim/src/org/lcsim/plugin/web on MAIN
examples.html+41.3 -> 1.4
examples/DigiSimExample.java+23added 1.1
+27
1 added + 1 modified, total 2 files
GL: Add DigiSimExample to list of org.lcsim examples

lcsim/src/org/lcsim/plugin/web
examples.html 1.3 -> 1.4
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
DigiSimExample.java added at 1.1
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);
+   }
+}
CVSspam 0.2.8