CMS 3D CMS Logo

validateGeometry_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process('VALID')
4 
5 process.load('Configuration.StandardSequences.GeometryDB_cff')
6 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
7 from Configuration.AlCa.autoCond import autoCond
8 process.GlobalTag.globaltag = autoCond['mc']
9 
10 process.source = cms.Source('EmptySource')
11 
12 process.maxEvents = cms.untracked.PSet(
13  input = cms.untracked.int32(1)
14  )
15 #
16 # Note: Please, download the geometry file from a location
17 # specified by Fireworks/Geometry/data/download.url
18 #
19 # For example: wget http://cmsdoc.cern.ch/cms/data/CMSSW/Fireworks/Geometry/data/v4/cmsGeom10.root
20 #
21 process.valid = cms.EDAnalyzer("ValidateGeometry",
22  infileName = cms.untracked.string('cmsGeom10.root'),
23  outfileName = cms.untracked.string('validateGeometry.root')
24  )
25 
26 process.p = cms.Path(process.valid)