Visualization Twig Configuration Tutorial

Complete: 5

Responsible: IannaOsborne

Basic Concepts

VisConfigurationService can be used to configure an Iguana CMSSW application such as a number of various windows to be popped up and tiled, which iglets to load, which branches to be set visible at startup, and the default parameters for visualization cuts and scales (e.g. VisActiveConfigurables), and which Twigs should be loaded in certain iglets.

Windows

The untracked vector of strings Views sets which window or windows will be popped up and tiled at startup. The number of windows is not limited. The allowed strings are as follows.

'3D Window' - a 3D window. This window is suitable for displaying the Geant4 geometry.

'Lego Window' - a window where the event data are displayed in "unrolled" detector, e.g. in eta and phi coordinates.

'RPhi Window' - a window which shows XY projection of the detector barrel and event data.

'RZ Window' - a window which displays the event data and detector in RZ coordinates.

Example:

service = VisConfigurationService {
 ##########
 # Number of various windows to be popped up and tiled.
 # Default value is 'RPhi Window'
 #
 # untracked vstring Views = {'3D Window', 'Lego Window', 'RPhi Window', 'RZ Window'}
 untracked vstring Views = {'3D Window'}
}

Iglets

The list of iglets to load is defined by the untracked vector of strings ContentProxies. For the full list of iglets see https://twiki.cern.ch/twiki/bin/view/CMS/WorkBookEventDisplay#VisContentProxies

Configuration File Fragment

Here is an example of a configuration file fragment which defines a VisConfigurationService and defines the Twigs to be loaded in VisTrackerContent. VisTrackerContent defines the content of 'Reco/Tracker' - the iglet which is loaded as defined by ContentProxies parameter. By commenting out (use # in front of the name) or removing the Twigs from the VisTrackerContent the user can control what will be loaded.

service = VisConfigurationService {
 ##########
 # Number of various windows to be popped up and tiled.
 # Default value is 'RPhi Window'
 #
 # untracked vstring Views = {'3D Window', 'Lego Window', 'RPhi Window', 'RZ Window'}
 untracked vstring Views = {'3D Window'}

 # #########
 # Which iglets to load (the default value is defined
 # in VisApplicationMain and usually loads all available iglets):
 untracked vstring  ContentProxies =
  {'Reco/Tracker',
   'Simulation/Hits'
  }

 untracked vstring VisTrackerContent = {
  'VisTkGeometryTwig', 
  'VisTrackerPiDigiTwig',
  'VisTrackerPiClusterTwig', 
  'VisTrackerPiRechitTwig',
  'VisTrackerDigiTwig', 
  'VisTrackerClusterTwig',
  'VisTrackerRechit2DTwig', 
  'VisTrackerRechit2DMatchedTwig',
  'VisTkRecTracksTwig', 
  'VisTkIdealHelixTracksTwig',
  # 'VisTkRecTrackDetsTwig', 
  'VisTrajectorySeedTwig',
  'VisGsfTrackTwig'
 }
}

Which Twig causes a problem?

To find out which Twig is causing the problem, run iguana in verbose mode:

> env LOG=stderr iguana your.cfg

The std output lines just before the exception would indicate the name of the Twig.

-- IannaOsborne - 15 Jan 2008

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r3 - 2011-12-16 - IannaOsborne
 
    • 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