Detector Description XML to HTML tool example and how to guide

Complete: 5

A description and example of how to convert a CMSSW geometry configuration into simple static web pages.

Introduction

This tool is provides an easy way to look at the components of a geometry, such as the LogicalParts selected by a SpecPar.

Tutorials

Set up your work area, check out the package and run as follows:

scram p CMSSW YOUR_VERSION
cd YOUR_VERSION/src
cmsenv
addpkg DetectorDescription/RegressionTest
cd DetectorDescription/RegressionTest/test
scram b
setenv PATH $CMSSW_BASE/test/yourslcgccconfig:${PATH}
rehash
mkdir dddhtml
cd dddhtml
html_ddd ../configuration.xml

For example:

scram p CMSSW CMSSW_3_9_0_pre3
cd CMSSW_3_9_0_pre3/src
cmsenv
addpkg DetectorDescription/RegressionTest
cd DetectorDescription/RegressionTest/test
scram b
setenv PATH $CMSSW_BASE/test/slc5_ia32_gcc434/:${PATH}
rehash
mkdir dddhtml
cd dddhtml
html_ddd ../configuration.xml

Now, if you want to use a configuration.xml file of your own, generated by one of the other available scripts, you can do something like this in the same work area:

cd ../../../..
addpkg DetectorDescription/Schema
addpkg Geometry/CMSCommonData
scram b
$CMSSW_RELEASE_BASE/src/GeometryReaders/XMLIdealGeometryESSource/test/testdddreport.sh cmsExtendedGeometryXML_cfi.py

You may use any *XML_cfi.py file found here: Geometry/CMSCommonData/python/. You will have the following in you src area:

dddreportconfig.xml

and you can now do:

cd DetectorDescription/RegressionTest/test/dddhtml
rm -rf *
cp ../../../../dddreportconfig.xml .
html_ddd dddreportconfig.xml

You may then open the index.html in dddhtml directory using your web-browser or move the whole thing up to a web-site, for example: http://case.web.cern.ch/case/GeometryExtended380/index.html

Links.

Review status

Reviewer/Editor and Date Comments
MichaelCase - 29-Jul-2010 created page

Responsible: CMS.MichaelCase
Last reviewed by: No one

-- MichaelCase - 28-Jul-2010

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r6 - 2010-09-01 - MichaelCase
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    CMSPublic All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback