Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:49:17

0001 import FWCore.ParameterSet.Config as cms
0002 process = cms.Process("GeometryInfo")
0003 
0004 # minimum of logs
0005 process.MessageLogger = cms.Service("MessageLogger",
0006     cerr = cms.untracked.PSet(
0007         enable = cms.untracked.bool(False)
0008     ),
0009     cout = cms.untracked.PSet(
0010         enable = cms.untracked.bool(True),
0011         threshold = cms.untracked.string('INFO')
0012     )
0013 )
0014 
0015 # geometry
0016 process.load("Geometry.VeryForwardGeometry.geometryRPFromDD_2018_cfi")
0017 #process.load("Geometry.VeryForwardGeometry.geometryRPFromDD_2017_cfi")
0018 
0019 # no events to process
0020 process.source = cms.Source("EmptyIOVSource",
0021     timetype = cms.string('runnumber'),
0022     firstValue = cms.uint64(1),
0023     lastValue = cms.uint64(1),
0024     interval = cms.uint64(1)
0025 )
0026 process.maxEvents = cms.untracked.PSet(
0027     input = cms.untracked.int32(1)
0028 )
0029 
0030 #Database output service
0031 process.load("CondCore.CondDB.CondDB_cfi")
0032 # input database (in this case local sqlite file)
0033 process.CondDB.connect = 'sqlite_file:CTPPSRPAlignment.db'
0034 
0035 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0036     process.CondDB,
0037     DumpStat=cms.untracked.bool(True),
0038     toGet = cms.VPSet(
0039       cms.PSet(
0040         record = cms.string('RPMisalignedAlignmentRecord'),
0041         tag = cms.string("CTPPSRPAlignment_misaligned")
0042       )
0043     )
0044 )
0045 
0046 process.ctppsGeometryInfo = cms.EDAnalyzer("CTPPSGeometryInfo",
0047     geometryType = cms.untracked.string("misaligned"),
0048     printRPInfo = cms.untracked.bool(True),
0049     printSensorInfo = cms.untracked.bool(True)
0050 )
0051 
0052 process.p = cms.Path(
0053     process.ctppsGeometryInfo
0054 )