Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-06-30 04:13:22

0001 import FWCore.ParameterSet.Config as cms
0002 import FWCore.ParameterSet.VarParsing as VarParsing
0003 
0004 process = cms.Process("SiStripQualityStatisticsCabling")
0005 
0006 #prepare options
0007 
0008 options = VarParsing.VarParsing("analysis")
0009 
0010 options.register ('cablingTagName',
0011                   "SiStripFedCabling_GR10_v1_hlt",
0012                   VarParsing.VarParsing.multiplicity.singleton, # singleton or list
0013                   VarParsing.VarParsing.varType.string,          # string, int, or float
0014                   "Cabling DB tag name")
0015 options.register ('runNumber',
0016                   1,
0017                   VarParsing.VarParsing.multiplicity.singleton, # singleton or list
0018                   VarParsing.VarParsing.varType.int,          # string, int, or float
0019                   "Run Number")
0020 
0021 options.parseArguments()
0022 
0023 process.MessageLogger = cms.Service("MessageLogger",
0024     cout = cms.untracked.PSet(
0025         threshold = cms.untracked.string('WARNING')
0026     ),
0027     log_cabling = cms.untracked.PSet(
0028         threshold = cms.untracked.string('INFO'),
0029         default = cms.untracked.PSet(limit=cms.untracked.int32(0)),
0030         SiStripQualityStatistics = cms.untracked.PSet(limit=cms.untracked.int32(100000))
0031     ),
0032     destinations = cms.untracked.vstring('log_cabling','cout'),
0033     categories = cms.untracked.vstring('SiStripQualityStatistics')
0034 )
0035 
0036 process.source = cms.Source("EmptyIOVSource",
0037     timetype = cms.string('runnumber'),
0038     firstValue= cms.uint64(options.runNumber),
0039     lastValue= cms.uint64(options.runNumber),
0040     interval = cms.uint64(1)
0041 )
0042 
0043 process.maxEvents = cms.untracked.PSet(
0044     input = cms.untracked.int32(1)
0045 )
0046 
0047 #-------------------------------------------------
0048 # Calibration
0049 #-------------------------------------------------
0050 
0051 process.load("Configuration.Geometry.GeometryIdeal_cff")   # needed because the GlobalTag is NOT used
0052 
0053 process.load("CondCore.DBCommon.CondDBCommon_cfi")   # needed because the GlobalTag is NOT used
0054 process.CondDBCommon.connect='frontier://FrontierProd/CMS_CONDITIONS'
0055 process.poolDBESSource=cms.ESSource("PoolDBESSource",
0056                                     process.CondDBCommon,
0057                                     BlobStreamerName=cms.untracked.string('TBufferBlobStreamingService'),
0058                                     toGet           =cms.VPSet(
0059     cms.PSet(
0060     record=cms.string('SiStripFedCablingRcd'),
0061     tag   =cms.string(options.cablingTagName)
0062     )
0063     )
0064                                     )
0065     
0066 #process.load("CalibTracker.Configuration.Tracker_DependentRecords_forGlobalTag_nofakes_cff")                                    )
0067 process.sistripconn = cms.ESProducer("SiStripConnectivity")  # needed because the GlobalTag is NOT used
0068 
0069 # Include masking #
0070 
0071 process.load("CalibTracker.SiStripESProducers.SiStripQualityESProducer_cfi")
0072 process.siStripQualityESProducer.ListOfRecordToMerge=cms.VPSet(
0073     cms.PSet(record=cms.string('SiStripDetCablingRcd'),tag=cms.string(''))
0074     )
0075 process.siStripQualityESProducer.ReduceGranularity = cms.bool(False)
0076 
0077 
0078 #-------------------------------------------------
0079 # Services for the TkHistoMap
0080 #-------------------------------------------------
0081 process.load("DQM.SiStripCommon.TkHistoMap_cff")
0082 
0083 from CalibTracker.SiStripQuality.siStripQualityStatistics_cfi import siStripQualityStatistics
0084 process.stat = siStripQualityStatistics.clone(
0085         TkMapFileName=cms.untracked.string("TkMapBadComponents_Cabling.png")  #available filetypes: .pdf .png .jpg .svg
0086         )
0087 
0088 
0089 process.p = cms.Path(process.stat)
0090 
0091