HOWTO: Examine detector geometry data banks in starsim

In an interactive session of starsim, it is possible to retrieve information about how the data banks which are used to define the detector geometry.  It is possible to retrieve this information when the geometry is created, or from information stored in the fzd files.  Here is how to do it.
 
First let us generate an output file with a little macro.
 
$ cat <+++ > test.kumac
message Hello starsim

* Open an output file
gfile o test.fzd

GDrop ALL

DetP geom y2006h

GExec .sl53_gcc432/lib/geometry.so
GClose ALL

* Let's get out of here
EXIT
+++
$ starsim -w 0 -b test.kumac

 
Ok. First thing to notice about that kumac is, we didn't generate any events. Just created a geometry, then we exited the system.
$ ls -l test.fzd
-rw-r--r-- 1 jwebb rhstar 2851200 Dec 18 11:34 test.fzd
Interesting. The fzd file is 2.8 MB. One wonders why it is so big. The answer is, we have saved the geometry in the fzd file. Here's how to access part of the information after the fact.
$ starsim
starsim> ** open the file
starsim> gfile p test.fzd
starsim> ** dump the contents of the ECAL bank
starsim> aguser/gdump /DETM/ECAL
... lots of output
------------------------------------------------------------------------------
| ECUT | CUT SELECTION
---------------------------------------------- entered file at 18-Dec- 9 11:45
Bank IDH ECUT CUT SELECTION
Author JASON WEBB, HAL SPINKA, ILYA SELYUZHENKO
Version 11/13/2009
ND 5
Up EMCG
IO-Charac -F
-------- Data of Bank/UpBank: ECUT/EMCG Doc Version: 11/13/2009 ----------

1 - 91218.4688 - usage counter
2 - 1.000000000 - system version
3 VERSION 1.000000000 - SELECTOR
4 ABSORBER 1.000000000 - ABSORBER CUTS
5 SENSITIV 2.00000000 - SENSITIVE CUTS
-----------------------------------------------------------
... lots more output