Creating a Detector from compact.xml

Creating a compact.xml

  • compact.xml is a human readable geometry description for slic. The best way to start is to take an existing compact.xml and modify it to your needs.

Setting up GeomConverter

  • a detailed tutorial can be found here
  • go to your GeomConverter directory, for example /usr/sbin/local/GeomConverter/
  • build it using maven 2
    mvn -DskipTests=true clean install
  • add the bin to your PATH variable
    export PATH=$PATH:/usr/local/sbin/GeomConverter/target/bin
  • typing `GeomConverter` will now open a GUI to convert a compact.xml file either to an *.lcdd or a *.heprep file
  • as an alternative one can use
    GeomConverter [-o format] [<infile> [<outfile>]]

Creating geometry files and checking for overlaps

  • create the .heprep and .lcdd from the compact.xml
  • use slic to check the lcdd file for overlaps
    • create a makro with the following line:
    • run slic with the macro -g <detectorname>.lcdd -m macro

Making the detector known to org.lcsim

  • a detailed tutorial can be found here
  • create the file ~/.lcsim/
  • add the path of your detector definition files (*.lcdd and *.heprep) to
    DETECTORNAME: file:///pathtodetectorfiles/
  • The path must contain a file named which has to contain the following line: name: DETECTORNAME
  • remember to name your files `DETECTORNAME.heprep`
  • sample file for the clic000 detector on the common afs space

-- ChristianGrefe - 26 Feb 2009

This topic: CLIC > Detector > CLICSoftwareComputing > Software > SiDSoftware > SiDTutorials > CompactXml
Topic revision: r6 - 2013-12-09 - ChristianGrefe
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback