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 
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 
33 
34 
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 
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)