Message: Re: Passing a string as GDML auxiliary value? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

More Re: Passing a string as GDML auxiliary value? 

Forum: Geometry
Re: None Passing a string as GDML auxiliary value? (Andrew)
Date: 08 Jan, 2010
From: Gabriele Cosmo <Gabriele Cosmo>

> I would like to pass a string as an auxiliary tag value in a GDML file
> (for passing the name of a sensitive detector, for example). Looking
> through the code it appears it might be impossible since
> G4GDMLAuxPairType is defined as follows:
> 
> struct G4GDMLAuxPairType
>   {
>      G4String type;
>      G4double value;
>   };
> 
> Am I correct that it is not possible to pass a string as the auxiliary
> value?

The auxiliary information in GDML consist of a pair made of a string
and an associated value, as specified in the GDML manual.
The use of such information is totally under your control, so you can
use the string component for your purposes.

 Add Message Add Message
to: "Re: Passing a string as GDML auxiliary value?"

 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 ]