Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:52:27

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("Test")
0004 process.maxEvents = cms.untracked.PSet(
0005     input = cms.untracked.int32(1)
0006 )
0007 
0008 process.source = cms.Source("EmptyIOVSource",
0009                             timetype   = cms.string('timestamp'),
0010                             #firstValue = cms.uint64(5565740779852738368),
0011                             #lastValue  = cms.uint64(5565740779852738369),
0012                             #firstValue = cms.uint64(5566459919991846016),
0013                             #lastValue = cms.uint64(5566459919991846017),
0014                             firstValue = cms.uint64(5590608666362382145),
0015                             lastValue = cms.uint64(5590608666362382146),
0016                             interval  = cms.uint64(1)
0017                             )
0018 
0019 process.TFileService = cms.Service("TFileService",
0020                                    fileName = cms.string("histo_alloffroot")
0021                                    )
0022 
0023 process.MessageLogger = cms.Service("MessageLogger",
0024     cout = cms.untracked.PSet(
0025         threshold = cms.untracked.string('WARNING')
0026     ),
0027     destinations = cms.untracked.vstring('cout')
0028 )
0029 
0030 process.Timing = cms.Service("Timing")
0031 
0032 process.load("Configuration/StandardSequences/FrontierConditions_GlobalTag_cff")
0033 process.load("Configuration/StandardSequences/GeometryIdeal_cff")
0034 
0035 
0036 process.GlobalTag.globaltag = 'START311_V1::All'
0037 
0038 ###### Quality ESProducer --- copied from SiStripESProducer
0039 process.load("CalibTracker.SiPixelESProducers.SiPixelQualityESProducer_cfi")
0040 
0041 process.GlobalTag.toGet = cms.VPSet(
0042     cms.PSet(
0043     timetype = cms.untracked.string('timestamp'),
0044     record = cms.string("SiPixelQualityFromDbRcd"),
0045     tag = cms.string("SiPixelQuality_v10_mc"),
0046     connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PIXEL")),
0047     cms.PSet(timetype = cms.untracked.string('timestamp'),
0048              record = cms.string("SiPixelDetVOffRcd"),
0049              tag    = cms.string("SiPixelDetVOff_v1_offline"),    
0050              connect = cms.untracked.string('sqlite_file:../../../../alloff.db')
0051              )
0052     )
0053 
0054 process.BadModuleReader = cms.EDAnalyzer("SiPixelBadModuleReader",
0055                                          printDebug = cms.untracked.uint32(1),
0056                                          RcdName = cms.untracked.string("SiPixelQualityRcd") 
0057                                          )
0058 
0059 process.siPixelQualityESProducer.ListOfRecordToMerge = cms.VPSet(
0060     cms.PSet( record = cms.string("SiPixelQualityFromDbRcd"),
0061               tag    = cms.string("SiPixelQuality_v10_mc")
0062               ),
0063     cms.PSet( record = cms.string("SiPixelDetVOffRcd"),
0064            tag    = cms.string("SiPixelDetVOff_v1_offline")
0065               )
0066     )
0067 
0068 process.p = cms.Path(process.BadModuleReader)
0069 
0070 
0071 
0072 
0073 
0074 
0075