CMSShow brief description

CMSShow is a tool that let's you display geometry in a graphical way as well as see the geometry tree in human readable way. Although it can display CMS events - it cannot display TOTEM events as they have not been implemented yet.

How to display geometry

First of all remember that you would need a machine with OpenGL. The nodes on lxplus do not have it installed. The best way is to download CMSShow code for your own computer and create .root file with geometry on lxplus node.

This part has to be done on machine where your CMSSW project is present.

WARNING sed command changes files that could impact your work. Later in this script you mv them back to their previous state, but should anything crash you would have to check them out from repository again to retain clean copy of them. Go to CMSSW workspace directory and enter src folder. Edit Geometry/TotemRPGeometryBuilder/python/ file with geometry you would like to use by changing line: process.load("Configuration.TotemCommon.geometryRP_cfi") Then invoke these commands:
cd Geometry/TotemRPData/data/
sed -i.bak 's/TotemRPGlobal:OTOTEM/cms:CMSE/' RP_Stations_Assembly.xml
sed -i.bak 's/TotemRPGlobal:OTOTEM/cms:CMSE/' RP_Param_Beam_Region.xml  
cd ../../../
cmsRun Geometry/TotemRPGeometryBuilder/python/
cd Geometry/TotemRPData/data/
mv RP_Stations_Assembly.xml.bak RP_Stations_Assembly.xml
mv RP_Param_Beam_Region.xml.bak RP_Param_Beam_Region.xml   
cd ../../../

This should produce: cmsSimGeom-7.root file.

This part has to be done on machine where OpenGL is present.

You have to download CMSShow code and untar it. To do this invoke these commands:

tar xzf cmsShow-7.4-2.linux.tar.gz 
cd cmsShow-7.4-2

Now you have to copy this cmsSimGeom-7.root which you have just created. Then just next run this command:

./cmsShow --sim-geom-file ./cmsSimGeom-7.root -c simGeo.fwc

Wait a few seconds and cmsShow should appear. Close "Open Remotes Data Files" window and you can start your work with cmsShow. To rotate use Left Mouse Button. To Zoom in and out use Mouser scrolle wheel. To move use Middle Mouse button. after_open.png

-- MikolajPiotrNowak - 2015-09-22

Topic attachments
I Attachment History Action Size Date Who Comment
Compressed Zip archivetar XMLDump.tar r2 r1 manage 20.0 K 2015-09-23 - 13:03 MikolajPiotrNowak  
PNGpng after_open.png r2 r1 manage 92.7 K 2015-09-23 - 13:35 MikolajPiotrNowak  
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2015-09-23 - MikolajPiotrNowak
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    TOTEM All webs login

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