Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("read")
0004 process.load('CondCore.CondDB.CondDB_cfi')
0005 process.load("FWCore.MessageService.MessageLogger_cfi")
0006 process.MessageLogger.cerr.threshold = "INFO"
0007 process.MessageLogger.cerr.WriteESAlignments = dict()
0008 
0009 process.maxEvents = cms.untracked.PSet(
0010     input = cms.untracked.int32(1)
0011 )
0012 
0013 process.load("Configuration.StandardSequences.GeometryDB_cff")
0014 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0015 from Configuration.AlCa.autoCond import autoCond
0016 process.GlobalTag.globaltag = autoCond['mc']
0017 
0018 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0019 
0020 process.source = cms.Source("EmptySource")
0021 
0022 process.CondDB.timetype = cms.untracked.string('runnumber')
0023 process.CondDB.connect = cms.string('sqlite_file:testESAlignments.db')
0024 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0025     process.CondDB,
0026     toPut = cms.VPSet(
0027       cms.PSet(
0028         record = cms.string('EBAlignmentRcd'),
0029         tag = cms.string('EB')
0030       ),
0031       cms.PSet(
0032         record = cms.string('EEAlignmentRcd'),
0033         tag = cms.string('EE')
0034       ),
0035       cms.PSet(
0036         record = cms.string('ESAlignmentRcd'),
0037         tag = cms.string('ES')
0038       )
0039     )
0040 )
0041 
0042 process.TestWriteESAlignments = cms.EDAnalyzer("TestWriteESAlignments")
0043 
0044 process.p = cms.Path(process.TestWriteESAlignments)