Overview | Releases | Download | Docs | Links | Help | RecentChanges

xml2COOL

part of SctDatabases

http://cool.cvs.cern.ch/cgi-bin/cool.cgi/cool/contrib/XmlCool/

[How to build and run a simple COOL example using SCRAM]

http://lcgapp.cern.ch/project/CondDB/snapshot/gettingStartedCOOL.html

To check out the package... First:

 export CVSROOT=:pserver:anonymous@cool.cvs.cern.ch:/cvs/COOL
 cvs login
 (the password is blank)
 cvs co cool/contrib/XmlCool

Edit xml2cool.cpp under XMLCOOL to input a valid password (defPWD) and databasename (defDBName).

Compile using 'scram b' and then use the command:

unitTest_RelationalCool_COOL2XML mytest

which will download the COOL data in XML format to a file named mytest.xml

This can be transformed to the SCT XML format using an XSL transform and the saxon or xsltproc program

In SR1, the code is at:

/daqsoft/cool/SCT_TEST_COOL_1_2_4/src/RelationalCool?/tests/XML2COOL

The latest transform can be found at

http://sroe.home.cern.ch/sroe/xsl/SCT2COOL.xsl

or

wget "http://sroe.home.cern.ch/sroe/xsl/SCT2COOL.xsl"

Viewing existing uploads to COOL

The standalone SCT system used to upload to CMCPROD, which can be viewed at http://atldbdev01.cern.ch:9243/?dbname=SCT-CMC&folder=/SCT/auxiliaryInfo

But now all uploads (noth SCT standalone and SCT/TRT combined) are to COMPROD, viewable at:

http://atldbdev01.cern.ch:9243/?dbname=SCT-COMPROD&folder=/SCT/auxiliaryInfo

If the above links are not active, you can try restarting the server by http://atldbdev01.cern.ch:9463/?restart=yes

How to download xml file from COOL

where

How to upload xml file to COOL

Example: You want to upload the configuration for run 2414, which is located in /work/srsctdaq1/sr1daq/saved_data as configArchive_2414_start.xml.gz.

Note 'thepassword' is defined in /daqsoft/cool/cstring.txt

Scripts are in preparation to automate this process (upload many runs... to be run as a cron):

Further notes from Shaun

unitTest_RelationalCool_COOL2XML myDuck 5 "oracle:// devdb10;schema=atlas_sct_commcond_dev;user=atlas_sct_commcond_dev;passwo rd=thepassword;dbname=DUCK" Retrieves the database to file myDuck.xml

Contents of setup.sh

cd /daqsoft/cool/COOL_1_2_3
export PATH=/afs/cern.ch/sw/lcg/app/spi/scram:$PATH
export SCRAM_ARCH=slc3_ia32_gcc323
eval `scram runtime -sh`