Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-09-28 23:48:28

0001 import FWCore.ParameterSet.Config as cms    
0002 
0003 process = cms.Process("CONDOBJMON")
0004 #-------------------------------------------------
0005 
0006 #-------------------------------------------------
0007 # DQM
0008 #-------------------------------------------------
0009 process.load("DQM.SiStripMonitorSummary.SiStripMonitorCondDataOffline_cfi")
0010 process.CondDataMonitoring.OutputMEsInRootFile        = cms.bool(True)
0011 process.CondDataMonitoring.MonitorSiStripPedestal      =cms.bool(False)
0012 process.CondDataMonitoring.MonitorSiStripNoise         =cms.bool(False)
0013 process.CondDataMonitoring.MonitorSiStripQuality       =cms.bool(True)
0014 process.CondDataMonitoring.MonitorSiStripCabling       =cms.bool(False)
0015 process.CondDataMonitoring.MonitorSiStripLowThreshold  =cms.bool(False)
0016 process.CondDataMonitoring.MonitorSiStripHighThreshold =cms.bool(False)
0017 process.CondDataMonitoring.MonitorSiStripApvGain       =cms.bool(False)
0018 process.CondDataMonitoring.MonitorSiStripLorentzAngle  =cms.bool(False)
0019 
0020 ## SI STRIP MONITOR TRACK:
0021 process.load("DQM.SiStripCommon.TkHistoMap_cfi");
0022 
0023 process.source = cms.Source("EmptyIOVSource",
0024     lastValue = cms.uint64(insert_runnumber),
0025     timetype = cms.string('runnumber'),
0026     firstValue = cms.uint64(insert_runnumber),
0027     interval = cms.uint64(1)
0028 )
0029 
0030 process.maxEvents = cms.untracked.PSet(
0031     input = cms.untracked.int32(1)
0032 )
0033 
0034 process.MessageLogger = cms.Service("MessageLogger",
0035     debugModules = cms.untracked.vstring('SiStripMonitorCondData'),
0036     cout = cms.untracked.PSet(
0037         threshold = cms.untracked.string('Error')
0038     ),
0039     destinations = cms.untracked.vstring('error.log', 
0040         'cout')
0041 )
0042 
0043 process.qTester = cms.EDFilter("QualityTester",
0044     qtList = cms.untracked.FileInPath('DQM/SiStripMonitorSummary/data/insert_QtestsFileName'),
0045     QualityTestPrescaler = cms.untracked.int32(1),
0046     getQualityTestsFromFile = cms.untracked.bool(True)
0047 )
0048 
0049 process.DQMStore = cms.Service("DQMStore",
0050     verbose = cms.untracked.int32(1)
0051 )
0052 
0053 from CalibTracker.Configuration.Common.PoolDBESSource_cfi import *
0054 siStripCond = poolDBESSource.clone(
0055     toGet = (
0056         poolDBESSource.toGet[0].clone(
0057             record = 'SiStripFedCablingRcd',
0058             tag = 'insert_FedCablingTag'
0059         ), 
0060         poolDBESSource.toGet[0].clone( 
0061             record = 'SiStripNoisesRcd',
0062             tag = 'insert_NoiseTag'
0063         ), 
0064         poolDBESSource.toGet[0].clone(
0065             record = 'SiStripPedestalsRcd',
0066             tag = 'insert_PedestalTag'
0067         ),
0068         poolDBESSource.toGet[0].clone(
0069             record = 'SiStripApvGainRcd',
0070             tag = 'SiStripGain_Ideal_21X'
0071         ),
0072         poolDBESSource.toGet[0].clone(
0073             record = 'SiStripLorentzAngleRcd',
0074             tag = 'SiStripLorentzAngle_Ideal_21X'
0075         ),     
0076         poolDBESSource.toGet[0].clone(
0077             record = 'SiStripThresholdRcd',
0078             tag = 'insert_ThresholdTag'
0079         )
0080     ),
0081     connect = 'frontier://cmsfrontier.cern.ch:8000/FrontierProd/insertAccount'
0082 )
0083 
0084 sistripconn = cms.ESProducer("SiStripConnectivity")
0085 
0086 process.a = cms.ESSource("PoolDBESSource",
0087     appendToDataLabel = cms.string('test'),
0088     toGet = cms.VPSet(cms.PSet(
0089         record = cms.string('SiStripBadFiberRcd'),
0090 ##        record = cms.string('SiStripDetCablingRcd'),
0091         tag = cms.string('insert_DB_Tag')
0092     )
0093     ),
0094     DBParameters = cms.PSet(
0095     authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0096     ),
0097     timetype = cms.string('runnumber'),
0098     connect = cms.string('frontier://cmsfrontier.cern.ch:8000/FrontierProd/insertAccount'),
0099     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService')
0100 )
0101 
0102 process.MySSQ = cms.ESProducer("SiStripQualityESProducer",
0103     appendToDataLabel = cms.string(''),
0104     ReduceGranularity = cms.bool(True),
0105     ThresholdForReducedGranularity = cms.double(0.3),
0106     ListOfRecordToMerge = cms.VPSet(cms.PSet(
0107         record = cms.string('SiStripBadFiberRcd'),
0108 ##        record = cms.string('SiStripDetCablingRcd'),
0109 ##        record = cms.string('SiStripBadChannelRcd'),        
0110         tag = cms.string('test')
0111     ))
0112 )
0113 
0114 #process.MySSQPrefer = cms.ESPrefer("PoolDBESSource","a")
0115 
0116 
0117     #-------------------------------------------------
0118     ## Scheduling
0119     #-------------------------------------------------
0120 
0121 process.p = cms.Path(process.CondDataMonitoring*process.qTester)
0122 ####process.p = cms.Path(process.CondDataMonitoring)
0123 
0124 
0125 
0126 
0127 
0128   
0129