CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch12/src/Fireworks/Eve/testEve_cfg.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 process = cms.Process("DISPLAY")
00004 
00005 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
00006 
00007 ### Expects test.root in current directory.
00008 process.source = cms.Source(
00009     "PoolSource",
00010     fileNames=cms.untracked.vstring('file:test.root')
00011 )
00012 
00013 # process.maxEvents = cms.untracked.PSet(
00014 #         input = cms.untracked.int32(1)
00015 #         )
00016 
00017 ### For running on pre 3.6 files the current needed to determine the
00018 ### magnetic field is taken from Conditions DB.
00019 # process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
00020 ### specify tag:
00021 # process.GlobalTag.globaltag = 'START36_V10::All'
00022 ### or use auto-cond:
00023 # from Configuration.PyReleaseValidation.autoCond import autoCond
00024 # process.GlobalTag.globaltag = autoCond['mc']
00025 
00026 ### Request EveService
00027 process.EveService = cms.Service("EveService")
00028 
00029 ### Extractor of Geometry needed to display it in Eve.
00030 ### Required for "DummyEvelyser".
00031 process.add_( cms.ESProducer(
00032         "TGeoMgrFromDdd",
00033         verbose = cms.untracked.bool(False),
00034         level   = cms.untracked.int32(8)
00035 ))
00036 
00037 process.dump = cms.EDAnalyzer(
00038     "DummyEvelyser",
00039     tracks = cms.untracked.InputTag("generalTracks")
00040 )
00041 
00042 process.p = cms.Path(process.dump)