Problem 558

Summary: GDML example with GEANT4.6 and xercesc2.4.0
Product: Examples/Extended Reporter: ahoover
Component: gdmlAssignee: Radovan.Chytracek
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P2    
Version: other   
Hardware: PC   
OS: Linux   

Description ahoover 2003-12-17 14:34:31 CET
I am trying to use the /examples/gdml example in GEANT4.6 using xercesc2.4.0 on
RedHat Enterprise Linux WS release 3 with gcc3.2.3. First, when compiling the
code there are ominous warning messages created from the gdml/libgdml/saxana
directory, for example:

make[2]: Entering directory
`/data0/geant4-gcc3.2.3/geant4.6.0/examples/extended/gdml/libgdml/saxana'
Compiling SAXComponentFactory.cc ...
Compiling SAXComponentFactoryTable.cc ...
Compiling SAXEventGun.cc ...
In file included from src/SAXEventGun.cc:34:
/data0/geant4-gcc3.2.3/xerces-c-src2_4_0/include/xercesc/framework/XMLPScanToken.hpp:
In copy constructor `xercesc_2_4::XMLPScanToken::XMLPScanToken(const
xercesc_2_4::XMLPScanToken&)':
/data0/geant4-gcc3.2.3/xerces-c-src2_4_0/include/xercesc/framework/XMLPScanToken.hpp:180:
warning: base
   class `class xercesc_2_4::XMemory' should be explicitly initialized in the
   copy constructor


I have run several of the examples provided with xerces2.4.0 with no problems.
The gdml example code will compile and I can run it, but there are errors
output to the screen when xerces parses the gdml file, shown below:

You have successfully chosen to use the following graphics systems.
Current available graphics systems are:
  ASCIITree (ATree)
  DAWNFILE (DAWNFILE)
  GAGTree (GAGTree)
  G4HepRepFile (HepRepFile)
  G4HepRep (HepRepXML)
  RayTracer (RayTracer)
  VRML1FILE (VRML1FILE)
  VRML2FILE (VRML2FILE)
  OpenGLImmediateX (OGLIX)
  OpenGLStoredX (OGLSX)
  OpenGLImmediateXm (OGLIXm)
  OpenGLStoredXm (OGLSXm)
error: publicId:
error: publicId:
error: publicId:
error: publicId:
error: publicId:
error: publicId:
error: publicId: !ţ
error: publicId: ůý
error: publicId:
error: publicId:
error: publicId:
error: publicId:
error: publicId:
error: publicId:
error: publicId:
error: publicId:
Expression evaluator:: Registering constant NbOfLayers: 10
Expression evaluator:: Registering quantity AbsorberThickness: 2cm
Expression evaluator:: Registering quantity GapThickness: 5cm
etc...



Any help, insight, sympathy is appreciated.

Andrew
Comment 1 Radovan.Chytracek 2004-01-11 05:06:59 CET
Hi,

 in the mean time GDML project has been spawned outside Geant4 source code
base. See http://savannah.cern.ch/projects/gdml where you can download latest
source code tar ball which has been updated already to build with Xerces-C
2.2.0 and later. I have not tested it yet with Xerces- C 2.4.0 but I'll do
ASAP. Which of of the GDML examples you were trying to run?

Cheers

 Radovan
Comment 2 Radovan.Chytracek 2004-06-18 02:50:59 CEST
I have realized during recent development in GDML that this message comes from
somewhat failing SAX error handler. I have implemented SAX2 based GDML reader
which does report properly the document deviations from the GDML schema. The
possible solution to the problem may be checking the tag order especially in
the materials defintions or uniqueness of the names. I am afraid that this
problem can't be fixed in G4 so I close. It is already solved in GDML project
so stay tuned on the GDML web page http://cern.ch/gdml for updates as things
move quickly these days.