...
Overview
The SLIC simulator package uses a low-level XML data format while the reconstruction uses a smaller, more targetted format called the "compact description". Using a compact geometry in the simulator requires converting it to LCDD first.
- Follow the instructions in Building+org.lcsim+software to build the GeomConverter package.
- Run the application which will display a simple GUI for running the application.
Building a distribution
Command Syntax
The full syntax for running GeomConverter is
No Format |
---|
GeomConverter [-o format] [<infile> [<outfile>]]
|
If no output file is specified the GUI will be displayed. If no format is given the format will be guessed based on the output file.
Running the Converter
- After building GeomConverter, run this command to convert a compact detector file to LCDDGo to the GeomConverter directory and build a distribution. Unzip the distribution one directory below the current one. (This example has a hardcoded version number.)
No Format |
---|
cd ..
tar -zxvf GeomConverterjava -jar ./target/bin/GeomConverter-VERSION-0.3.tar.gz
|
Run the compact to LCDD converter. No Format |
GeomConverter-0.3/bin/GeomConverter compact.xml det.lcdd
bin.jar -o lcdd compact.xml det.lcdd
|
where VERSION corresponds to the build version, e.g. 1.11-SNAPSHOT
Info |
---|
|
Windows users need to run GeomConverter.bat from the Windows command prompt instead of the GeomConverter script. |
Running in SLIC
The output LCDD file det.lcdd can be used as input to SLIC, which might look like this.
No Format |
---|
slic -g det.lcdd -z -n |
...
...