Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:36:56

0001 # Read Bad Chambers values - Tim Cox - 05.05.2009
0002 # I intend this to read from the standard cond data files, whatever they are.
0003 # This is for CMSSW_31X
0004 
0005 import FWCore.ParameterSet.Config as cms
0006 
0007 process = cms.Process("TEST")
0008 process.load("Configuration/StandardSequences/FrontierConditions_GlobalTag_cff")
0009 process.GlobalTag.globaltag = 'IDEAL_31X::All'
0010 
0011 process.load("CalibMuon.Configuration.getCSCConditions_frontier_cff")
0012 
0013 # Must change connect string in CalibMuon.Configuration.getCSCConditions_frontier_cff
0014 # (and note that Final 31X will use //FrontierProd/CMS_COND_31X_CSC)
0015 process.cscConditions.connect = cms.string('frontier://FrontierPrep/CMS_COND_31X_ALL')
0016 
0017 process.cscConditions.toGet = cms.VPSet(
0018         cms.PSet(record = cms.string('CSCBadChambersRcd'),
0019                  tag = cms.string('CSCBadChambers_none_FiveLiveME42'))
0020 )
0021 process.es_prefer_cscConditions = cms.ESPrefer("PoolDBESSource","cscConditions")
0022 
0023 process.maxEvents = cms.untracked.PSet(
0024     input = cms.untracked.int32(1)
0025 )
0026 process.source = cms.Source("EmptySource")
0027 
0028 process.analyze = cms.EDAnalyzer("CSCReadBadChambersAnalyzer",
0029     outputToFile = cms.bool(True),
0030     readBadChambers = cms.bool(True),
0031     me42installed = cms.bool(True)                                 
0032 )
0033 
0034 process.printEventNumber = cms.OutputModule("AsciiOutputModule")
0035 
0036 process.p = cms.Path(process.analyze)
0037 process.ep = cms.EndPath(process.printEventNumber)
0038