Visualization Configuration Tutorial

Complete: 5

Responsible: IannaOsborne

Basic Concepts

Description of the cmsRun Python Configuration Syntax is available here: https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideAboutPythonConfigFile

Configuration File Example

import FWCore.ParameterSet.Config as cms

process = cms.Process("IGUANA")
process.load("Configuration.StandardSequences.FakeConditions_cff")

process.load("Configuration.StandardSequences.Reconstruction_cff")

process.source = cms.Source("PoolSource",
    firstEvent = cms.untracked.uint32(55),
    firstRun = cms.untracked.uint32(30),
    fileNames = cms.untracked.vstring('/store/relval/2008/6/9/RelVal-RelValH200ZZ4L-1212539383-STARTUP-2nd-02/0001/00C61FC1-0B37-DD11-9823-0018F3C3E
3A6.root')
)

from FWCore.MessageLogger.MessageLogger_cfi import *

process.add_( cms.Service("VisConfigurationService",
    EnabledTwigs = cms.untracked.vstring('/Objects/CMS Event and Detector/DTs/Wheel 0', 
        '/Objects/CMS Event and Detector/Muon DT Event/DT 4DSegment'),
    VisAutoStart = cms.untracked.bool(False),
    Views = cms.untracked.vstring('3D Window'),
    ContentProxies = cms.untracked.vstring('Framework/EventSetup', 
        'Reco/MuonDT', 
        'Reco/CMS.MuonCSC', 
        'Reco/CMS.MuonRPC', 
        'Reco/Ecal', 
        'Reco/Hcal', 
        'Reco/Tracker', 
        'Reco/Muon', 
        'Reco/Jets', 
        'Simulation/Data Formats', 
        'Simulation/Hits'),
    VisLegoScale = cms.untracked.double(2.0),
    VisCaloAnnotation = cms.untracked.bool(False),
    VisExceptionMessage = cms.untracked.string('none'),
    VisCaloEnergyScale = cms.untracked.double(1.0),
    VisEventTimer = cms.untracked.uint32(30000),
    VisEnergyCut = cms.untracked.double(1.0)
  )
)

-- IannaOsborne - 27 Jun 2008

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