Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:27:22

0001 import FWCore.ParameterSet.Config as cms
0002 import FWCore.ParameterSet.VarParsing as VarParsing
0003 
0004 process = cms.Process("DISPLAY")
0005 
0006 
0007 options = VarParsing.VarParsing ()
0008 options.register ('file',
0009                   "xxx", # default value
0010                   VarParsing.VarParsing.multiplicity.singleton,
0011                   VarParsing.VarParsing.varType.string,
0012                   "xrootd URL")
0013 
0014 
0015 options.parseArguments()
0016 
0017 
0018 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
0019 
0020 
0021 # process.maxEvents = cms.untracked.PSet(
0022 #         input = cms.untracked.int32(1)
0023 #         )
0024 
0025 ### For running on pre 3.6 files the current needed to determine the
0026 ### magnetic field is taken from Conditions DB.
0027 # process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0028 ### specify tag:
0029 # process.GlobalTag.globaltag = 'START36_V10::All'
0030 ### or use auto-cond:
0031 # from Configuration.AlCa.autoCond import autoCond
0032 # process.GlobalTag.globaltag = autoCond['mc']
0033 
0034 ### Request EveService
0035 process.EveService = cms.Service("EveService")
0036 
0037 process.source = cms.Source(
0038     "PoolSource",
0039     fileNames = cms.untracked.vstring('file:' + options.file)
0040 )
0041 
0042 ### Extractor of geometry needed to display it in Eve.
0043 ### Required for "DummyEvelyser".
0044 process.add_( cms.ESProducer(
0045         "TGeoMgrFromDdd",
0046         verbose = cms.untracked.bool(False),
0047         level   = cms.untracked.int32(8)
0048 ))
0049 
0050 process.dump = cms.EDAnalyzer(
0051     "DummyEvelyser",
0052     tracks = cms.untracked.InputTag("generalTracks")
0053 )
0054 
0055 process.p = cms.Path(process.dump)