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
import FWCore.ParameterSet.Config as cms

process = cms.Process("DBGeometryTest")
#process.load("DetectorDescription.OfflineDBLoader.test.cmsIdealGeometryForWrite_cfi")
process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")

process.maxEvents = cms.untracked.PSet(
        input = cms.untracked.int32(1)
        )

process.source = cms.Source("EmptySource")

process.myprint = cms.OutputModule("AsciiOutputModule")

#046   std::string attribute = "MuStructure";      // could come from outside
#047   std::string value     = "MuonEndcapCSC";
process.prod = cms.EDAnalyzer("TestSpecParAnalyzer"
                                  , specName = cms.string("MuStructure")
                                  , specStrValue = cms.untracked.string("MuonEndcapCSC")
                                  #, specDblValue = cms.untracked.double(0.0)
                              )

process.Timing = cms.Service("Timing")

process.p1 = cms.Path(process.prod)
process.e1 = cms.EndPath(process.myprint)