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

None Re: assembly in gdml 

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

Thanks a lot for your replies !

The code you mentioned is exactely what I tried. But It seems that the error comes from the file G4GDMLReadStructure.cc 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); }
      else
      {
        G4String error_msg = "Unknown tag in structure: " + tag;
        G4Exception("G4GDMLReadStructure::StructureRead()",
                    "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. You too ? Which version of Geant4 are you using ?

Thanks, Bertrand

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

1 None: Re: assembly in gdml   (Bertrand Rosse - 04 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 ]