1 package org.lcsim.geometry.compact.converter.lcdd;
2
3 import org.jdom.DataConversionException;
4 import org.jdom.Element;
5 import org.lcsim.geometry.compact.converter.lcdd.util.Calorimeter;
6
7
8
9
10
11
12 public class ProjectiveCylinder extends LCDDSegmentation
13 {
14 private int thetaBins;
15 private int phiBins;
16
17 ProjectiveCylinder(Element node) throws DataConversionException
18 {
19 super(node);
20 thetaBins = node.getAttribute("thetaBins").getIntValue();
21 phiBins = node.getAttribute("phiBins").getIntValue();
22 }
23 void setSegmentation(Calorimeter cal)
24 {
25 org.lcsim.geometry.compact.converter.lcdd.util.ProjectiveCylinder cyl = new org.lcsim.geometry.compact.converter.lcdd.util.ProjectiveCylinder();
26 cyl.setNTheta(thetaBins);
27 cyl.setNPhi(phiBins);
28 cal.setSegmentation(cyl);
29 }
30 }