Message: Re: assembly in gdml Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: assembly in gdml 

Forum: Geometry
Re: Question assembly in gdml (Jing Liu)
Re: Feedback Re: assembly in gdml (Zoltan)
Date: 21 Sep, 2009
From: Bertrand Rosse <Bertrand Rosse>

Hi all,

First of all, thank you Zoltan for your answer. Nevertheless, I always have problems with the assembly tag.

Following your example, I created my gdml file (see attached file) but I get the following error :

 *** G4Exception : ReadError
      issued by : G4GDMLReadStructure::StructureRead()
Unknown tag in structure: assembly
*** Fatal Exception *** core dump ***

It seems that the error comes from the file in source/persistency/gdml/src

void G4GDMLReadStructure::
StructureRead(const xercesc::DOMElement* const structureElement)
   G4cout << "G4GDML: Reading structure..." << G4endl;

   for (xercesc::DOMNode* iter = structureElement->getFirstChild();
        iter != 0; iter = iter->getNextSibling())
      if (iter->getNodeType() != xercesc::DOMNode::ELEMENT_NODE)  { continue; }

      const xercesc::DOMElement* const child
            = dynamic_cast<xercesc::DOMElement*>(iter);
      const G4String tag = Transcode(child->getTagName());

      if (tag=="bordersurface") { BordersurfaceRead(child); } else
      if (tag=="skinsurface") { SkinsurfaceRead(child); } else
      if (tag=="volume") { VolumeRead(child); } else
      if (tag=="loop") { LoopRead(child,&G4GDMLRead::StructureRead); }
        G4String error_msg = "Unknown tag in structure: " + tag;
                    "ReadError", FatalException, error_msg);

The tag "assembly" is not recognized (only "bordersurface", "skinsurface", "volume" and "loop"), that's why I get the fatal error "Unknown tag in structure: assembly" !!!

I'm using the G4GDMLParser to read my GDML file.

The tag "assembly" seems to NOT be recognized by Geant4.

May I do something wrong ?

Thanks a lot for your answer !



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

1 More: Re: assembly in gdml   (Gabriele Cosmo - 21 Sep, 2009)
(_ None: Re: assembly in gdml   (Bertrand Rosse - 21 Sep, 2009)
 Add Message Add Message
to: "Re: assembly in gdml"

 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 ]