Versions Compared

Key

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

...

  • ALWAYS create a new detector when you make changes to the geometry
  • make a subdirectory of hps-detectors/detectors; name of the subdirectory is the name of the detector
  • add name of the detector to detectors/taglist.txt
  • copy from another detector: compact.xml, detector.properties, SamplingFractions
  • in compact.xml: change name and comment in <info> block
  • in detector.properties: change name, change ConditionsReader if necessary (TestRunConditionsReader for 2012 test run, HpsConditionsReader for 2014 run) - both of these lines are required
  • Create the LCDD file for use in slic: see below

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.

...

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:

...