Message: Re: GDML GetVariable() usage Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

More Re: GDML GetVariable() usage 

Forum: Geometry
Re: None GDML GetVariable() usage (Andrew)
Date: 17 Feb, 2010
From: Gabriele Cosmo <Gabriele Cosmo>

> GDML parser has a parser.GetVariable() function, which is good. However,
> there appears no way to check if a variable name has been defined before
> calling the function, so either it works or it core dumps, depending on
> what the user has put in the geometry file. I was hoping there would be
> a parser.IsValid() function to handle this gracefully, but I have not
> found it. Or, is there some other way?

The parser does not provide such method... but we can be easily add it!

Cheers, Gabriele

 Add Message Add Message
to: "Re: GDML GetVariable() usage"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]