Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Converting the compact.xml file to LCDD

For production development, the latest up-to-date conversion code using the core lcsim detector-framework package should always be used.

Instructions for converting the compact.xml file to lcdd can be found at http://www.lcsim.org/sites/lcsim/lcsim-detector-framework/usage.html

For testing, one can also use the HPS jar files, as they have the lcsim packages embedded.

To do so, one needs to set the classpath and run the converter class from the trunk of the HPS installation

Note that in these examples 3.4.0-SNAPSHOT will need to be appropriately modified.

The following will bring up a GUI, allowing the user to browse input, output and conversion type

...

.

...

The following will directly create the lcdd file:

No Format
java -cp distribution/target/hps-distribution-3.4.0-SNAPSHOT-bin.jar org.lcsimhps.geometry.compact.converter.Maindetector.DetectorConverter -of lcdd -i compact.xml -o detectorName.lcdd

...

Info

Note that it is easiest to run this command from the HPS detector-data directory, as the gdml directory, needed by most recent detectors, will be found automatically.

You also need to specify the run number using -r <runNumber> to have the detector added to the conditions database

 


Viewing LCDD

The LCDD file can be viewed directly using SLIC:

...