Re: "'Vacuum' has no defaults" when ROOT read geometry written in GDML

From: Andrei Gheata <Andrei.Gheata_at_cern.ch>
Date: Thu, 7 Apr 2011 10:08:45 +0200


Hi,
Define materials like below. If they are made of single elements, do not define them as compounds.

Cheers,
Andrei

       <material Z="13.0" name="ALUMINIUM">
         <D value="2.7"/>
         <atom value="26.98"/>
       </material>
       <element formula="IRON" Z="26.0" name="FE">
         <atom value="55.847"/>
       </element>
       <element formula="NICKEL" Z="28.0" name="NI">
         <atom value="58.71"/>
       </element>
       <element formula="CHROMIUM" Z="24.0" name="CR">
         <atom value="51.998"/>
       </element>
       <material name="IRON(COMPOUND)">
         <D value="7.8"/>
         <fraction ref="NI" n="0.099"/>
         <fraction ref="FE" n="0.703964"/>
         <fraction ref="CR" n="0.197"/>
       </material>


On 04/06/2011 06:41 PM, Xinchun Tian wrote:
> Hi,
>
> I defined "Vacuum" as following:
>
> <materials>
> <element Z="1" formula="Vacuum" name="videRef"> <atom value="1"/></element>
> <material formula=" " name="Vacuum">
> <D value="1.e-25" unit="g/cc"/>
> <fraction n="1.0" ref="videRef"/>
> </material>
>
> <volume name="vCornerCutoutExtruNDOSV">
> <materialref ref="Vacuum"/>
> <solidref ref="sCornerCutoutExtruNDOSV"/>
> </volume>
>
> When ROOT read this geometry, I got "'Vacuum' has no defaults", what
> does that mean and how to solve it?
>
> I also played with "Lead" which gives the same message.
>
> Thanks,
>
> Xinchun
>
Received on Thu Apr 07 2011 - 10:08:49 CEST

This archive was generated by hypermail 2.2.0 : Thu Apr 07 2011 - 17:50:01 CEST