lcsim/src/org/lcsim/event
diff -N RawTrackerHit.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ RawTrackerHit.java 24 Oct 2006 19:17:13 -0000 1.1
@@ -0,0 +1,41 @@
+package org.lcsim.event;
+
+import org.lcsim.geometry.IDDecoder;
+import org.lcsim.geometry.Subdetector;
+
+/**
+ * A raw tracker hit (as expected in raw data from a real detector)
+ * @author tonyj
+ * @version $Id: RawTrackerHit.java,v 1.1 2006/10/24 19:17:13 tonyj Exp $
+ */
+public interface RawTrackerHit
+{
+ /**
+ * Returns a time measurement associated with the adc values.
+ * E.g. the t0 of the spectrum for the TPC. Subdetector dependent.
+ */
+ int getTime();
+ /**
+ * Returns the detector specific cell id.
+ */
+ long getCellID();
+ /**
+ * Returns the array of ADCValues.
+ * The array may be of length 1 if this detector only reads out a single value per cell.
+ * The value may also need decoding (for example the KPiX chip uses one bit as a
+ * range indicator).
+ */
+ short[] getADCValues();
+
+ /** Returns the IDDecoder associated with this hit */
+ IDDecoder getIDDecoder();
+
+ /** Using the IDDecoder, returns the Subdetector associated with this hit */
+ Subdetector getSubdetector();
+
+ /** Returns the associated SimTrackerHit. Note this may be <code>null</code>
+ * if there is no associated SimTrackerHit (for example because this is a noise
+ * hit, or because there is no MC information.
+ */
+ SimTrackerHit getSimTrackerHit();
+}