GeomConverter/src/org/lcsim/detector
diff -N IReadout.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ IReadout.java 18 Apr 2007 22:07:11 -0000 1.1
@@ -0,0 +1,9 @@
+package org.lcsim.detector;
+
+import java.util.List;
+
+public interface IReadout<T>
+{
+ public String getName();
+ public List<T> getDigits();
+}
\ No newline at end of file
GeomConverter/src/org/lcsim/detector
diff -u -r1.11 -r1.12
--- DetectorElement.java 18 Apr 2007 00:17:46 -0000 1.11
+++ DetectorElement.java 18 Apr 2007 22:07:11 -0000 1.12
@@ -9,6 +9,7 @@
implements IDetectorElement
{
private IDetectorElementContainer children = new DetectorElementContainer();
+
private IGeometryInfo geometry = null;
private IDetectorElement parent = null;
private IIdentifier id = null;
@@ -269,6 +270,11 @@
return srch;
}
+ public IReadout getReadout()
+ {
+ return readout;
+ }
+
public IParameters getParameters()
{
return parameters;
GeomConverter/src/org/lcsim/detector
diff -u -r1.7 -r1.8
--- IDetectorElement.java 18 Apr 2007 00:17:46 -0000 1.7
+++ IDetectorElement.java 18 Apr 2007 22:07:11 -0000 1.8
@@ -1,7 +1,5 @@
package org.lcsim.detector;
-import java.util.List;
-
import hep.physics.vec.Hep3Vector;
import org.lcsim.detector.identifier.IIdentifiable;
@@ -13,7 +11,7 @@
*
* @author Tim Nelson <[log in to unmask]>
* @author Jeremy McCormick <[log in to unmask]>
- * @version $Id: IDetectorElement.java,v 1.7 2007/04/18 00:17:46 jeremy Exp $
+ * @version $Id: IDetectorElement.java,v 1.8 2007/04/18 22:07:11 jeremy Exp $
*/
public interface IDetectorElement
extends IIdentifiable, INamed
@@ -102,6 +100,15 @@
Hep3Vector globalPoint);
/**
+ * Get the readout associated with this DetectorElement,
+ * or <code>null</code> if the DetectorElement has no
+ * associated readout.
+ * @return Associated IReadout object or <code>null</code> if
+ * no IReadout has been assigned to this DetectorElement.
+ */
+ public IReadout getReadout();
+
+ /**
* The named parameters associated with this DetectorElement.
* @return An IParameters object with the parameters.
*/