- 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
Useful Extentions to the AgML language
The purpose of this blog is to start documenting some (potentially) useful extentions to the AgML language. At present we are constrained by backwards compatability issues with starsim/geant3... if it's not in geant3 we can't make use of it. Once we migrate fully to ROOT and virtual Monte Carlo, we will be able to take advantage of the full functionality of TGeo geometry classes.
0. A flag to indicate backwards compatability with starsim is required... probably use the CDE block. If present, limit names to four characters, disallow extentions listed below, etc...
<CDE> ... </CDE>
1. Extrusion shapes
Described by a set of vertices, and the x, y center of each z slice, and a scale at each z.
<Shape type="Xtru" nz="NZ" xcenter="{...}" ycenter="{...}" zslice="{...}" scale="{...}" nvert="NVERT" xvert="{...}" yvert="{...}" zvert="{...}" />
Could not be emulated in AgSTAR
2. Composite shapes
<Shape type="Composite" name="MyShape" operation="Add"> <Shape type="Tube" rmin="0" rmax="10" dz="20" name="Tube1" /> <Shape type="Tube" rmin="0" rmax="20" dz="10" name="Tube2" /> <Placement shape="Tube1" x="-10" /> <Placement shape="Tube2" y="+10" > <Rotation alphaz="10" /> </Placement> </Shape>
Could be emulated in AgSTAR using multiple volumes and "MANY" flag, at least for the addition operation.
3. Containers and Assemblies
<Container name="NAME" comment="A virtual volume whose material must be left unspecified (inherits from mother)"> ... </Container>
<Assembly name="NAME" comment="A virtual volume with no shape, attributes or medium"> ... </Assembly>
Both can be emulated in AgSTAR.
- jwebb's blog
- Login or register to post comments