Message: Error in Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Error in 

Forum: Geometry
Date: 25 Aug, 2010
From: Michael Rinaldi <Michael Rinaldi>

As a little background to my setup... I create a geometry (about 72 volumes inside a world volume) initially by reading it from an ascii file (created using GEANT4 GEOMETRY FROM TEXT FILE ver 1.0). This file is read in and the geometry created and correctly visualized.

To read in this geometry I use the standard text method,

G4VPhysicalVolume* physiWorld = volmgr->ReadAndConstructDetector();

I now want to dump this existing geometry into GDML format. To do this I added the statement,

parser.Write(fWriteFile, physiWorld);

In the process of writing out my geometry as a gdml file, execution is halted with a "stream closed" error in the method G4GDMLWrite::Write(..). I've put print statements in this method to track where it exactly stops functioning, The method successfully executes up to lines (188-193), or more descriptively,


When it tries to execute the next line,
   G4Transform3D R = TraverseVolumeTree(logvol,depth);

it fails and I get a "stream closed" message on my terminal. This last message may not be related to the problem but it is the last message I see. I put a print statement after the line

   G4Transform3D R = TraverseVolumeTree(logvol,depth);

but this print statement never gets executed.

Does anyone have any idea why this statement might cause a problem?

Does the GDML Writer have a limit on the number of enclosed volumes in the world volume?

Any help is appreciated.


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

1 None: Re: Error in   (Norman Graf - 25 Aug, 2010)
 Add Message Add Message
to: "Error in"

 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 ]