Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:15:31

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("CondCore.CondDB.CondDB_cfi")
0017 # input database (in this case local sqlite file)
0018 #process.CondDB.connect = 'sqlite_file:../../CondTools/Geometry/PPSGeometry_oldDD_multiIOV.db'
0019 process.CondDB.connect = cms.string( 'frontier://FrontierPrep/CMS_CONDITIONS' )
0020 
0021 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0022     process.CondDB,
0023     DumpStat=cms.untracked.bool(True),
0024     toGet = cms.VPSet(
0025       cms.PSet(
0026         record = cms.string('VeryForwardIdealGeometryRecord'),
0027         tag = cms.string("PPS_RecoGeometry_test_v1")
0028       )
0029     )
0030 )
0031 
0032 process.ctppsGeometryESModule = cms.ESProducer("CTPPSGeometryESModule",
0033     fromPreprocessedDB = cms.untracked.bool(True),
0034     fromDD4hep = cms.untracked.bool(False),
0035     verbosity = cms.untracked.uint32(1),
0036 )
0037 
0038 
0039 # load alignment correction
0040 process.load("CalibPPS.ESProducers.ctppsRPAlignmentCorrectionsDataESSourceXML_cfi")
0041 process.ctppsRPAlignmentCorrectionsDataESSourceXML.RealFiles = cms.vstring(
0042     "Geometry/VeryForwardGeometryBuilder/test/alignment_file_1.xml",
0043     "Geometry/VeryForwardGeometryBuilder/test/alignment_file_2.xml",
0044 )
0045 process.ctppsRPAlignmentCorrectionsDataESSourceXML.verbosity = 1
0046 
0047 # no events to process
0048 process.source = cms.Source("EmptySource",
0049 #  firstRun = cms.untracked.uint32(273725),  # start run for 2016-2017
0050   firstRun = cms.untracked.uint32(314747),  # start run for 2018
0051   firstLuminosityBlock = cms.untracked.uint32(1),
0052   firstEvent = cms.untracked.uint32(1),
0053   numberEventsInLuminosityBlock = cms.untracked.uint32(3),
0054   numberEventsInRun = cms.untracked.uint32(30)
0055 )
0056 
0057 process.maxEvents = cms.untracked.PSet(
0058     input = cms.untracked.int32(1)
0059 )
0060 
0061 process.ctppsGeometryInfo = cms.EDAnalyzer("CTPPSGeometryInfo",
0062     geometryType = cms.untracked.string("real"),
0063     printRPInfo = cms.untracked.bool(True),
0064     printSensorInfo = cms.untracked.bool(True)
0065 )
0066 
0067 process.p = cms.Path(
0068     process.ctppsGeometryInfo
0069 )