- jwebb's home page
- Posts
- 2019
- 2018
- 2017
- 2016
- 2015
- 2014
- 2013
- November (1)
- October (1)
- September (1)
- July (1)
- June (1)
- April (1)
- March (3)
- February (1)
- January (1)
- 2012
- 2011
- December (2)
- September (3)
- August (5)
- July (6)
- June (6)
- May (1)
- April (5)
- March (5)
- February (2)
- January (2)
- 2010
- December (3)
- October (3)
- September (2)
- August (2)
- June (2)
- May (4)
- April (4)
- March (2)
- February (4)
- January (10)
- 2009
- 2008
- 2007
- 2006
- July (1)
- My blog
- Post new blog entry
- All blogs
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
Groups:
- jwebb's blog
- Login or register to post comments