Problem 1104 - Problem writing material properties table to gdml file
Summary: Problem writing material properties table to gdml file
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: persistency/gdml (show other problems)
Version: 9.3
Hardware: Apple Mac OS X
: P5 minor
Assignee: Gabriele Cosmo
URL:
Depends on:
Blocks:
 
Reported: 2010-02-17 18:52 CET by Doug Roberts
Modified: 2010-02-18 19:08 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description Doug Roberts 2010-02-17 18:52:41 CET
I am trying to write a gdml description of a detector sensitive to optical photons.  The materials have indices of refraction that depend on wavelength, for example.  When I look at the gdml output I see two issues:

1) When the matrices containing the properties are defined their names are just given by the type of the property, "RINDEX" for example for the index of refraction.  The problem is that all of the matrices have the same name.  I don't see how they could end up being associated with different materials.  See below:

<define>
    <matrix coldim="2" name="ABSLENGTH" values="1.90745e-06 2.54e+06 1.93725e-06 2.54e+06 1.968e-06 2.54e+06 1.99974e-06 2.54e+06 2.03253e-06 2.54e"/>
1.90745e-06 2.54e+06 1.93725e-06 2.54e+06 1.968e-06 2.54e+06 1.99974e-06 2.54e+06 2.03253e-06 2.54e
    <matrix coldim="2" name="RINDEX" values="1.90745e-06 1.55403 1.93725e-06 1.55557 1.968e-06 1.55698 1.99974e-06 1.55827 2.03253e-06 1.55945 2"/>
    <matrix coldim="2" name="ABSLENGTH" values="1.90745e-06 2.33615e+06 1.93725e-06 2.19567e+06 1.968e-06 2.06162e+06 1.99974e-06 1.93381e+06 2.032"/>
    <matrix coldim="2" name="RINDEX" values="1.90745e-06 1.45653 1.93725e-06 1.45681 1.968e-06 1.4571 1.99974e-06 1.4574 2.03253e-06 1.45771 2.0"/>
    <matrix coldim="2" name="ABSLENGTH" values="1.90745e-06 40 1.93725e-06 40 1.968e-06 40 1.99974e-06 40 2.03253e-06 40 2.0664e-06 40 2.10143e-06 "/>
    <matrix coldim="2" name="RINDEX" values="1.90745e-06 1 1.93725e-06 1 1.968e-06 1 1.99974e-06 1 2.03253e-06 1 2.0664e-06 1 2.10143e-06 1 2.13"/>

I suppose an easy fix would be to append the value of the pointer to the material properties vector to the name?

2)  The other issue is that the values string seems to be limited to 100 characters.  Therefore the entire matrix is not written out.
Comment 1 Gabriele Cosmo 2010-02-18 19:08:16 CET
Thanks for the precise report.
A fix has been introduced in the development version and will be made available in a future patch.