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/dumpGeom_cfg.py 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/dumpGeom_cfg.py
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:
wget http://cern.ch/cmsshow/cmsShow-7.4-2.linux.tar.gz
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.
--
MikolajPiotrNowak - 2015-09-22