CMS 3D CMS Logo

testEve_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 import FWCore.ParameterSet.VarParsing as VarParsing
3 
4 process = cms.Process("DISPLAY")
5 
6 
7 options = VarParsing.VarParsing ()
8 options.register ('file',
9  "xxx", # default value
10  VarParsing.VarParsing.multiplicity.singleton,
11  VarParsing.VarParsing.varType.string,
12  "xrootd URL")
13 
14 
15 options.parseArguments()
16 
17 
18 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
19 
20 
21 # process.maxEvents = cms.untracked.PSet(
22 # input = cms.untracked.int32(1)
23 # )
24 
25 ### For running on pre 3.6 files the current needed to determine the
26 ### magnetic field is taken from Conditions DB.
27 # process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
28 ### specify tag:
29 # process.GlobalTag.globaltag = 'START36_V10::All'
30 ### or use auto-cond:
31 # from Configuration.AlCa.autoCond import autoCond
32 # process.GlobalTag.globaltag = autoCond['mc']
33 
34 ### Request EveService
35 process.EveService = cms.Service("EveService")
36 
37 process.source = cms.Source(
38  "PoolSource",
39  fileNames = cms.untracked.vstring('file:' + options.file)
40 )
41 
42 ### Extractor of geometry needed to display it in Eve.
43 ### Required for "DummyEvelyser".
44 process.add_( cms.ESProducer(
45  "TGeoMgrFromDdd",
46  verbose = cms.untracked.bool(False),
47  level = cms.untracked.int32(8)
48 ))
49 
50 process.dump = cms.EDAnalyzer(
51  "DummyEvelyser",
52  tracks = cms.untracked.InputTag("generalTracks")
53 )
54 
55 process.p = cms.Path(process.dump)