Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

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.

Building and Running GeomConverter

  1. Follow the instructions in Building+org.lcsim+software to build the GeomConverter package.
  2. Run the application
    No Format
    
    maven run
    
    This command displays a simple GUI for running the application where the target format can be selected along with the Input and Output files.

Building and Running a GeomConverter 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

  1. After building GeomConverter, run this command to convert a compact detector file to LCDD.
    No Format
    
    java -jar ./target/bin/GeomConverter-VERSION-bin.jar -o lcdd
  2. Go to the GeomConverter directory and build a distribution.
    No Format
    
    maven dist
    
  3. Unzip the distribution from one directory below the current one. (This example has a hardcoded version number.)
    No Format
    
    cd ..
    tar -zxvf GeomConverter/target/GeomConverter-0.3.tar.gz
    
  4. Run the compact to LCDD converter using the script.
    No Format
    
    GeomConverter-0.3/bin/GeomConverter compact.xml det.lcdd
    
    where VERSION corresponds to the build version, e.g. 1.11-SNAPSHOT
Info
titleWindows Users

Windows users need to run GeomConverter.bat from the Windows command prompt instead of the GeomConverter script.

Command Syntax

The full syntax for running GeomConverter is

No Format

GeomConverter-0.3/bin/GeomConverter [-o format] [<infile> [<outfile>]]

...

.

Running in SLIC

The output LCDD file det.lcdd can be used as input to SLIC, which might look like this.

...