Hi,
I'm working with defining a geometry using GDML and ROOT. The attached gdml file produced this error:
Error in <TFormula::Compile>: Bad numerical expression : "sz"
when loaded. The problem comes from when I try to use a defined constant in an arithmetic expression:
<define>
...
<constant name="sz" value="100"/>
</define>
<solids>
...
<box aunit="radian" lunit="mm" name="det" x="sz" y="sz" z="2*sz"/>
</solids>
The z="2*sz" causes the error. If I replace this with "2*100", for example, the error goes away.
Is this feature of GDML implemented? Is it implemented within ROOT?
I've attached a gdml file that shows the problem, along with a macro I've been using for testing.
Thank you,
Mark
Mark Messier messier_at_indiana.edu Department of Physics http://www.physics.indiana.edu/~messier Indiana University Phone: (812) 855-0236 Bloomington, IN 47405 Fax: (812) 855-0440Received on Tue May 01 2007 - 19:01:45 CEST
This archive was generated by hypermail 2.2.0 : Wed May 02 2007 - 05:50:01 CEST