Message: GDML pointer stripping does not seem to work Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None GDML pointer stripping does not seem to work 

Forum: Persistency
Date: 12 Sep, 2016
From: Jeremy McCormick <Jeremy McCormick>


I want to write a GDML file from the Geant4 runtime without the pointers added to the names, but it does not seem to work.

G4VPhysicalVolume* world = G4TransportationManager::GetTransportationManager()->GetNavigatorForTracking()->GetWorldVolume();

G4GDMLParser* parser = new G4GDMLParser();
parser->Write(fileName, world);

But the names still end up with the pointers in them e.g. ...

<isotope N="180" Z="74" name="W1800x2257000">
    <atom unit="g/mole" value="179.947"/>

<box lunit="mm" name="Target_box0x235dc80" x="35" y="95" z="0.35"/>

<volume name="Target_envelope0x2302f80">
  <materialref ref="Air0x2258770"/>
  <solidref ref="Target_box0x235dc80"/>
  <physvol name="Target_layerType00x2303360">
    <volumeref ref="Target_layerType00x22fe390"/>

Am I not configuring the parser correctly here?

I have gone so far as to hack up the Geant4 code to try and turn off this behavior but even that did not seem to work.

By the way, this does not seem like the preferable default behavior here to mangle the names of objects when they are written to the GDML file.  I would much prefer it to be off by default.



Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 More: Re: GDML pointer stripping does not seem to work   (Michael H. Kelsey - 13 Sep, 2016)
(_ More: Re: GDML pointer stripping does not seem to work   (Gabriele Cosmo - 21 Sep, 2016)
 Add Message Add Message
to: "GDML pointer stripping does not seem to work"

 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 ]