Search/Navigation:
Related:
SLAC/EPP/HPS Public
Jefferson Lab/Hall B/HPS Run Wiki
S30XL-LESA/LDMX
Each geometry is a subdirectory of hps-detectors/detectors, and must contain the following:
Conventions followed for all geometries unless noted otherwise:
Official geometry for 2014 mock data challenge.
SLIC crashes on approximately 1 in a billion events. This bug is believed to be resolved in v7.
Engineering run geometry with surveyed SVT and ECAL. Identical to HPS-EngRun2015-Nominal-v2, except:
Engineering run geometry with surveyed SVT.
Engineering run geometry. Replaces the v0. The SVTPosition is either "Nominal" (+/- 1.5 mm to active sensor) or "Open" (+/~ 7mm to active sensor).
First version of engineering run geometry. The SVTPosition is either "Nominal" (+/- 1.5 mm to active sensor) or "Open" (+/~ 7mm to active sensor).
Official geometry for the Decembers 2014 ECal commissioning run
HPS-TestRun-v3
Official geometry for 2012 test run as-built.
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
java -cp distribution/target/hps-distribution-3.4.0-SNAPSHOT-bin.jar org.lcsim.geometry.compact.converter.Main
The following will directly create the lcdd file
java -cp distribution/target/hps-distribution-3.4.0-SNAPSHOT-bin.jar org.lcsim.geometry.compact.converter.Main -o lcdd compact.xml detectorName.lcdd
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.
The LCDD file can be viewed directly using SLIC:
slic -g mygeom.lcdd -n
This puts you in an interactive Geant4 session; here is a suggested series of commands (from How do I visualize with OpenGL):
/vis/scene/create /vis/scene/add/volume /vis/open OGLSX /vis/viewer/refresh
There is a Python script that converts LCDD to GDML and views it in ROOT: DrawLCDD.py
ROOT can view GDML, but not tessellated volumes: How do I visualize with ROOT
WIRED can view HepRep files and can be run as a JAS3 plugin.