Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Start by creating a local directory for the schemas.

No Format
mkdir /scratch/slicSchemas

Next set Set the GDML_SCHEMA_DIR environment variable to point to the local directory.  The init_ilcsoft.sh script itself sets GDML_SCHEMA_DIR, so this command must be run after init_ilcsoft.sh (or replace the corresponding line in init_ilcsoft.sh).

No Format
export GDML_SCHEMA_DIR=/mySchemaDirscratch/slicSchemas

SLIC also searches automatically in the current directory for schemas. 

The entity resolver in GDML should find the schemas if the structure has been flattened (all .xsd files in mySchemaDir, no subdirectoriesthe local directory). 

SLIC It should also be able to find the schemas when the path component of the URL is preserved, i.e. ./schemas/lcdd/1.0/lcdd.xsd.

Copying LCDD schemas

...

from ilcinstall build

The GDML & LCDD schemas needed are already saved present in the ilcinstall installation directory, so all that's needed is to copy them:, so they can be directly copied into your local directory.

No Format
cp. v00-00/lcdd/v03-02-02/schemas/lcdd/1.0/*.xsd /mySchemaDir
cp v00-00/geant4/9.6.p01/$ILCSOFT/init_ilcsoft.sh
cd /scratch/slicSchemas
cp $G4INSTALL/source/persistency/gdml/schema/*.xsd /mySchemaDir

...

.
cd $LCDD/schemas/lcdd/1.0/*.xsd .

The above instructions assume that SLIC has already been successfully installed with ilcinstall.

Getting the LCDD schemas from SVN

To copy the schemas into a local directory without using any ilcinstall installation, do execute the following commands.

No Format
cvs -d :pserver:anonymous@cvscd /scratch
svn co svn://svn.freehep.org:/cvs/lcd co/lcdet/projects/lcdd/trunk lcdd
cp lcdd/schemas/*/*/*.xsd /mySchemaDirslicSchemas

If you want to keep the schema directory structure, use this command from your lcdd directoryinstead.

No Format
cd lcdd
cp -R schemas /scratch/mySchemaDirslicSchemas

The LCDD schemas are can also be found online at http://www.lcsim.org/schemas/lcdd/1.0/.

Downloading the GDML schemas

 To copy the schemas into a local directory, do the following.

No Format
cvs -d :pserver:anonymous@cvs.freehep.org:/cvs/lcd co gdml2/GDMLSchema
cp gdml2/GDMLSchema/*.xsd /mySchemaDir

Go into the local schema directory.

 

No Format
cd /scratch/slicSchemas

Now create a file schemaFiles.txt with the following contents in it.  (Just copy and paste into the file in your editor and then save it.)

No Format
gdml.xsd     
gdml_core.xsd
gdml_define.xsd
gdml_extensions.xsd
gdml_materials.xsd 
gdml_parameterised.xsd
gdml_replicas.xsd     
gdml_solids.xsd

Then execute the following command to pull the schemas from the standard URL location.

No Format
wget -i schemaFiles.txt -B 'http://service-spi.web.cern.ch/service-spi/app/releases/GDML/schema/'

Now you should see all of the GDML XSD files in the local directoryThe GDML schemas for slic are also online at http://www.lcsim.org/schemas/gdml/1.0/.