1 package org.lcsim.geometry.segmentation;
2
3 import org.jdom.Element;
4 import org.jdom.DataConversionException;
5
6 import org.lcsim.geometry.util.IDDescriptor;
7
8
9
10
11
12 public class MokkaSegmentation extends SegmentationBase
13 {
14 public MokkaSegmentation(Element node) throws DataConversionException
15 {
16 super(node);
17 }
18
19 public void setIDDescription(IDDescriptor id)
20 {
21 super.setIDDescription(id);
22 }
23
24 public boolean supportsNeighbours()
25 {
26 return false;
27 }
28
29 public long[] getNeighbourIDs(int layerRange, int zRange, int phiRange)
30 {
31 if (true)
32 throw new RuntimeException("MokkaSegmentation does not support neighbors.");
33 return null;
34 }
35
36 public long findCellContainingXYZ(double x, double y, double z)
37 {
38 throw new RuntimeException(".MokkaSegmentation does not support findCellContainingXYZ.");
39 }
40
41 public String[] getSegmentationFieldNames() {
42 throw new RuntimeException("I dunno.");
43 }
44 }