Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:58:37

0001 import FWCore.ParameterSet.Config as cms
0002 process = cms.Process("GeometryInfo")
0003 
0004 import sys
0005 
0006 if len(sys.argv) >1:
0007     runno = int(sys.argv[1])
0008 else:
0009     runno = 1
0010 
0011 # minimum of logs
0012 process.MessageLogger = cms.Service("MessageLogger",
0013     cerr = cms.untracked.PSet(
0014         enable = cms.untracked.bool(False)
0015     ),
0016     cout = cms.untracked.PSet(
0017         enable = cms.untracked.bool(True),
0018         threshold = cms.untracked.string('INFO')
0019     )
0020 )
0021 
0022 # load alignment correction
0023 #process.load("Geometry.VeryForwardGeometryBuilder.ctppsIncludeAlignmentsFromXML_cfi")
0024 #process.ctppsIncludeAlignmentsFromXML.RealFiles = cms.vstring("Geometry/VeryForwardGeometryBuilder/test/sample_alignment_corrections.xml")
0025 
0026 # no events to process
0027 process.source = cms.Source("EmptyIOVSource",
0028     timetype = cms.string('runnumber'),
0029     firstValue = cms.uint64(runno),
0030     lastValue = cms.uint64(runno),
0031     interval = cms.uint64(1)
0032 )
0033 process.maxEvents = cms.untracked.PSet(
0034     input = cms.untracked.int32(1)
0035 )
0036 
0037 #Database output service
0038 process.load("CondCore.CondDB.CondDB_cfi")
0039 # input database (in this case local sqlite file)
0040 process.CondDB.connect = 'sqlite_file:CTPPSRPRealAlignment_table.db'
0041 
0042 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0043     process.CondDB,
0044     DumpStat=cms.untracked.bool(True),
0045     toGet = cms.VPSet(
0046       cms.PSet(
0047         record = cms.string('RPRealAlignmentRecord'),
0048         tag = cms.string("CTPPSRPAlignment_real_table")
0049       )
0050     )
0051 )
0052 
0053 
0054 process.ctppsAlignmentInfo = cms.EDAnalyzer("CTPPSAlignmentInfo",
0055     alignmentType = cms.untracked.string("real"),
0056 )
0057 
0058 process.p = cms.Path(
0059     process.ctppsAlignmentInfo
0060 )