3.4.3 Fireworks Geometry


Introduction

This document is a user guide how to produce and efficiently visualize cms geometries in a Fireworks. With first step DDD geometry is converted to TGeo format and then display in Geometry Table View. Note, this is not the geometry format which is used for drawing rec hits and detectors in projected views.

Producing TGeo files

Geometry files can be produced with cmsRun. The configuration script scrips take an argument which specifies geometry configuration. Output of cmsRun is cmsSimGeo<tag>.root and cmsTGeoRecoGeom<tag>.root for simulation and reconstruction geometry.

  • Simulation Geometry
   cmsRun Fireworks/Geometry/python/dumpSimGeometry_cfg.py tag=<prod>
  • Reconstruction Geometry
   cmsRun Fireworks/Geometry/python/dumpRecoGeometry_cfg.py tag=<prod>

Viewing with cmsShow

Fireworks can display the simulation geometry and flag any overlaps. By default cmsShow takes cmsSimGeom-14.root from a tarball or CMSSW project area to display the geometry. If you want to use another file, use the --sim-geom-file <file-name> command-line option.
You can display the geometry by running cmsShow, creating a geometry table view, and selecting 3D view from the table view menu. Alternatively you can use pre-prepared configurations available in the CMSSW project area and cmsShow tarball.

./cmsShow -c simGeo.fwc --sim-geom-file <geometry-file>


Moving over node hierarchy

In the default configuration all nodes are drawn up to specified visibility depth. Instead of swiching visibility off for the subtestectors which can clutter a view, you can move top node to the subdetector yoou want to investigate. Top node setting is saved and restored in Fireworks configuration file.

TopNode1.png
Selecting SiPixel detector as a top node.

TopNode2.png
SiPixel detector is top node. Can move back to top by clicking CdTop button.

All children visibility On/Off

Geometry table popup menu has an option for switching visibility of all child nodes. This is in particular useful for volumes with large number of daughter nodes.


AllChld3.png
Disable rendering of all ecal cells

AllChld2b.png
Select only cells with eta index -4

Visibility depth

Value of default visibility depth level in cmsShow is 3. It is intentionally set low to prevent rendering of too many nodes.


VisLevel1a.png
Open geometry table view controller accessed from the table view info button.

VisLevel2a.png
Increase visibility depth to 2.

Filter Material

Fireworks also has an option to draw nodes which match given material or shape. In simulation geometry it is large variety of materials. In TGeo reco geometry material is set only to define color and has a name matching a detector name.

Filter.png
Select nodes wich match dtxb material name.

Checking overlaps

Overlaps can be displayed with Overlap table view. It makes sense to trace overlaps only in simulation geometry since reco geometry no concept of mother volumes.
./cmsShow -c overlaps.fwc 
overlaps1.png

Presentations

The Fireworks geometry capability was presented at the 2012 CHEP conference:

Review status

Reviewer/Editor and Date (copy from screen) Comments
AntonioMorelosPineda - 16 Apr 2013 Upgrade to workbook style
AljaMrakTadel -11 Jul 2012 Created.

Upgrade to workbook style, A.Morelos,16-Apr-2013

Responsible: AljaMrakTadel
Last reviewed by: AntonioMorelosPineda - 16 Apr 2013

Topic attachments
I Attachment History Action Size Date Who Comment
PNGpng AllChld2.png r2 r1 manage 49.3 K 2014-09-04 - 20:38 AljaMrakTadel  
PNGpng AllChld2a.png r1 manage 49.3 K 2014-09-04 - 20:59 AljaMrakTadel version 2
PNGpng AllChld2b.png r1 manage 53.6 K 2014-09-04 - 21:40 AljaMrakTadel  
PNGpng AllChld3.png r1 manage 122.7 K 2014-09-04 - 22:09 AljaMrakTadel  
PNGpng Filter.png r1 manage 259.1 K 2014-09-04 - 21:29 AljaMrakTadel  
PNGpng TopNode1.png r1 manage 65.2 K 2014-09-04 - 19:57 AljaMrakTadel  
PNGpng TopNode2.png r1 manage 54.8 K 2014-09-04 - 19:57 AljaMrakTadel  
PNGpng VisLevel1a.png r1 manage 67.1 K 2014-09-04 - 22:18 AljaMrakTadel  
PNGpng VisLevel2a.png r1 manage 95.0 K 2014-09-04 - 21:40 AljaMrakTadel  
PNGpng cms-geobrowser.png r1 manage 616.5 K 2012-03-14 - 20:50 AljaMrakTadel  
PNGpng overlaps1.png r1 manage 92.0 K 2012-03-16 - 02:00 AljaMrakTadel  
Edit | Attach | Watch | Print version | History: r26 < r25 < r24 < r23 < r22 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r26 - 2016-10-20 - AljaMrakTadel


ESSENTIALS

ADVANCED TOPICS


 
    • 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-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