Hello HPS Software,

I wrote a little Python script for viewing the lcdd detector files. See attachments. The first one is the script, the next two are two detector models, the "HPS-TestRun-v3" and "HPS-Test-JLAB-v4pt1". 


  1. The script requires ROOT to be installed and in the path. It also requires ROOT to have the gdml module, but that is pretty standard by now.
  2. Invoke with -h for options. Main useful option would be to call with -N to only make the lcdd_cleaned.gdml file.
  3. It cannot show tessellated objects. These cause ROOT to crash, so tessellated stuff gets stripped.
  4. It pollutes your working directory with two files: lcdd_cleaned.gdml and lcdd_cleaned.C. The first is a pure gdml file, the second is a root script to render it.
  5. You can rotate and zoom in, make cutaway planes etc all using ROOT interactively. It is useful for checking your geometry.

P.S. The Python is crappy, if you want to improve it, send me your updates :-)

Use REPLY-ALL to reply to list

To unsubscribe from the HPS-SOFTWARE list, click the following link: