Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
import FWCore.ParameterSet.Config as cms

process = cms.Process("test")
process.load("FWCore.MessageService.MessageLogger_cfi")

#    service = Tracer {}
process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi")

process.load("Geometry.TrackerGeometryBuilder.trackerGeometry_cfi")
process.load("Geometry.DTGeometryBuilder.dtGeometry_cfi")
process.load("Geometry.CSCGeometryBuilder.cscGeometry_cfi")

# global tag...
process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
process.GlobalTag.globaltag = "MC_31X_V3::All" # use a valid global tag here!
#... or fake...
#process.load("Configuration.StandardSequences.FakeConditions_cff")
#... or specific tracker/muon conditions
#process.load("CalibTracker.Configuration.TrackerAlignment.TrackerAlignment_Frontier_cff")
#process.load("CalibMuon.Configuration.Muon_FrontierAlignment_cff")
#process.load("CalibTracker.Configuration.TrackerAlignment.TrackerAlignment_Frontier_IntDB_cff")
#process.load("CalibMuon.Configuration.Muon_FrontierAlignment_IntDB_cff")

process.load("Geometry.TrackerGeometryBuilder.idealForDigiTrackerGeometry_cff")
process.load("Geometry.CSCGeometryBuilder.idealForDigiCscGeometry_cff")
process.load("Geometry.DTGeometryBuilder.idealForDigiDtGeometry_cff")

process.source = cms.Source("EmptySource")
process.maxEvents = cms.untracked.PSet(
    input = cms.untracked.int32(1)
)

process.demo = cms.EDAnalyzer("TestAccessGeom",
    # spaces are removed internally - but are needed since framework seems to ignore empty strings...
    TrackerGeomLabels = cms.vstring('idealForDigi', 
        ' '),
    DTGeomLabels = cms.vstring('idealForDigi', 
        ' '),
    CSCGeomLabels = cms.vstring('idealForDigi', 
        ' ')
)

process.p = cms.Path(process.demo)
process.MessageLogger.cerr.INFO.limit = 1000000
process.MessageLogger.cerr.noTimeStamps = True