1 package org.lcsim.geometry.compact;
2
3 import java.util.ArrayList;
4 import java.util.List;
5
6 import org.jdom.Element;
7 import org.lcsim.geometry.util.BaseIDDecoder;
8
9
10
11
12
13 public class Segmentation extends BaseIDDecoder
14 {
15 protected List<Double> cellSizes = new ArrayList<Double>(2);
16 boolean useForHitPosition = true;
17
18 protected Segmentation(Element segmentation)
19 {
20 super();
21
22
23 useForHitPosition = Boolean.parseBoolean(segmentation.getAttribute("useForHitPosition").getValue());
24 }
25
26 public boolean useForHitPosition()
27 {
28 return this.useForHitPosition;
29 }
30
31 public double getCellSizeU()
32 {
33 return this.cellSizes.get(0);
34 }
35
36 public double getCellSizeV()
37 {
38 return this.cellSizes.get(1);
39 }
40
41 public String[] getSegmentationFieldNames() {
42 return new String[]{};
43 }
44 }