public class GeometryReader extends CompactReader
For example, this compact XML will instantiate a Subdetector with specific type of 'CylindricalBarrelCalorimeter'.
Support added for detailed geometry representation.
Modifier and Type | Class and Description |
---|---|
(package private) static class |
GeometryReader.GeometryFactory |
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
buildDetailed |
Constructor and Description |
---|
GeometryReader() |
Modifier and Type | Method and Description |
---|---|
boolean |
buildDetailed() |
Detector |
read(InputStream in)
Read a compact geometry XML file.
|
void |
setBuildDetailed(boolean buildDetailed) |
getDocument, registerCLHEPConstants, resetDocument
public Detector read(InputStream in) throws IOException, org.jdom.JDOMException, ElementFactory.ElementCreationException
CompactReader
read
in class CompactReader
in
- The input stream to read.IOException
- If an IO error occurs while reading the stream.org.jdom.JDOMException
- If invalid XML is found while reading the file.ElementFactory.ElementCreationException
public boolean buildDetailed()
public void setBuildDetailed(boolean buildDetailed)
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.