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("Geometry.VeryForwardGeometry.geometryPPS_CMSxz_fromDD_2018_cfi")
0017 process.load("Geometry.VeryForwardGeometry.geometryRPFromDD_2017_cfi")
0018 
0019 
0020 # load alignment correction
0021 process.load("CalibPPS.ESProducers.ctppsRPAlignmentCorrectionsDataESSourceXML_cfi")
0022 process.ctppsRPAlignmentCorrectionsDataESSourceXML.RealFiles = cms.vstring(
0023     "Geometry/VeryForwardGeometryBuilder/test/alignment_file_1.xml",
0024     "Geometry/VeryForwardGeometryBuilder/test/alignment_file_2.xml",
0025 )
0026 process.ctppsRPAlignmentCorrectionsDataESSourceXML.verbosity = 1
0027 
0028 # no events to process
0029 process.source = cms.Source("EmptySource",
0030   firstRun = cms.untracked.uint32(123),
0031   firstLuminosityBlock = cms.untracked.uint32(1),
0032   firstEvent = cms.untracked.uint32(1),
0033   numberEventsInLuminosityBlock = cms.untracked.uint32(3),
0034   numberEventsInRun = cms.untracked.uint32(30)
0035 )
0036 
0037 process.maxEvents = cms.untracked.PSet(
0038     input = cms.untracked.int32(1)
0039 )
0040 
0041 process.ctppsGeometryInfo = cms.EDAnalyzer("CTPPSGeometryInfo",
0042     geometryType = cms.untracked.string("real"),
0043     printRPInfo = cms.untracked.bool(True),
0044     printSensorInfo = cms.untracked.bool(True)
0045 )
0046 
0047 process.p = cms.Path(
0048     process.ctppsGeometryInfo
0049 )