Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:12:06

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("CONDOBJMON")
0004 #-------------------------------------------------
0005 # CALIBRATION
0006 #-------------------------------------------------
0007 ###process.load("DQM.SiStripMonitorSummary.Tags21X_cff")
0008 
0009 process.load("DQM.SiStripCommon.TkHistoMap_cff")
0010 
0011 
0012 #-------------------------------------------------
0013 # DQM
0014 #-------------------------------------------------
0015 process.load("DQM.SiStripMonitorSummary.SiStripMonitorCondData_cfi")
0016 process.load("CalibTracker.Configuration.Tracker_DependentRecords_forGlobalTag_nofakes_cff"
0017 )
0018 
0019 process.source = cms.Source("EmptyIOVSource",
0020                             lastValue = cms.uint64(216000),
0021                             timetype = cms.string('runnumber'),
0022                             firstValue = cms.uint64(216000),
0023                             interval = cms.uint64(1)
0024                             )
0025 
0026 
0027 # the DB Geometry is NOT used because in this cfg only one tag is taken from the DB and no GT is used. To be fixed if this is a problem
0028 process.load('Configuration.Geometry.GeometryExtended_cff')
0029 process.TrackerTopologyEP = cms.ESProducer("TrackerTopologyEP")
0030 process.load("Geometry.TrackerGeometryBuilder.trackerParameters_cfi")
0031 
0032 process.a = cms.ESSource("PoolDBESSource",
0033    BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0034    DBParameters = cms.PSet(
0035         messageLevel = cms.untracked.int32(2),
0036         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0037     ),
0038     timetype = cms.untracked.string('runnumber'),
0039     connect = cms.string('frontier://cmsfrontier.cern.ch:8000/FrontierProd/CMS_COND_31X_FROM21X'),
0040                          toGet = cms.VPSet(
0041     cms.PSet(
0042     record = cms.string('SiStripBadChannelRcd'), 
0043 ##    tag = cms.string('SiStripBadChannel_GR09_31X_v1_hlt')
0044         tag = cms.string('SiStripBadChannel_HotStrip_CRAFT_v3_offline')
0045 ##        tag = cms.string('SiStripBadChannel_HotStrip_GR09_31X_v1_hlt')    
0046     )
0047 ##     cms.PSet(
0048 ##     record = cms.string('SiStripDetVOffRcd'),
0049 ##     tag = cms.string('SiStripDetVOff_Ideal_31X_v2')
0050 ##     ),
0051 ##     cms.PSet(
0052 ##     record = cms.string('SiStripFedCablingRcd'),
0053 ##     tag = cms.string('SiStripFedCabling_GR09_31X_v1_hlt')
0054 ##     ),
0055 ##     cms.PSet(
0056 ##     record = cms.string('SiStripBadFiberRcd'),
0057 ##     tag = cms.string('SiStripBadFiber_Ideal_31X_v2')
0058 ##     ),
0059 ##     cms.PSet(
0060 ##     record = cms.string('SiStripBadModuleRcd'),
0061 ##     tag = cms.string('SiStripBadModule_Ideal_31X_v2')
0062 ##     ),
0063   
0064     )
0065 )
0066 
0067 process.siStripQualityESProducer = cms.ESProducer("SiStripQualityESProducer",
0068     ThresholdForReducedGranularity = cms.double(0.2),
0069     appendToDataLabel = cms.string(''),
0070     ReduceGranularity = cms.bool(False),
0071     PrintDebugOutput = cms.bool(False),
0072     UseEmptyRunInfo = cms.bool(False),
0073     ListOfRecordToMerge = cms.VPSet(cms.PSet(
0074 ##    record = cms.string('SiStripDetVOffRcd'),
0075 ##    record = cms.string('SiStripDetCablingRcd'),
0076     record = cms.string('SiStripBadChannelRcd'),        
0077     tag = cms.string('')
0078     ))
0079 )
0080 
0081 
0082 process.maxEvents = cms.untracked.PSet(
0083     input = cms.untracked.int32(1)
0084     )
0085 process.MessageLogger = cms.Service("MessageLogger",
0086     cerr = cms.untracked.PSet(
0087         enable = cms.untracked.bool(False)
0088     ),
0089     cout = cms.untracked.PSet(
0090         enable = cms.untracked.bool(True),
0091         threshold = cms.untracked.string('INFO')
0092     ),
0093     debugModules = cms.untracked.vstring('')
0094 )
0095 
0096 from DQMServices.Core.DQMQualityTester import DQMQualityTester
0097 process.qTester = DQMQualityTester(
0098                                qtList = cms.untracked.FileInPath('DQM/SiStripMonitorSummary/data/CondDBQtests.xml'),
0099                                QualityTestPrescaler = cms.untracked.int32(1),
0100                                getQualityTestsFromFile = cms.untracked.bool(True)
0101                                )
0102 
0103 process.DQMStore = cms.Service("DQMStore",
0104                                verbose = cms.untracked.int32(1)
0105                                )
0106 
0107 
0108 
0109 ## --- General Configurable options:
0110 
0111 process.CondDataMonitoring.OutputFileName = 'SiStrip_CondDB_CurrentTag.root'
0112 
0113 process.CondDataMonitoring.MonitorSiStripPedestal      = False
0114 process.CondDataMonitoring.MonitorSiStripNoise         = False
0115 process.CondDataMonitoring.MonitorSiStripQuality       = True
0116 process.CondDataMonitoring.MonitorSiStripCabling       = False
0117 process.CondDataMonitoring.MonitorSiStripApvGain       = False
0118 process.CondDataMonitoring.MonitorSiStripLorentzAngle  = False
0119 process.CondDataMonitoring.MonitorSiStripBackPlaneCorrection  = False
0120 process.CondDataMonitoring.MonitorSiStripLowThreshold  = False
0121 process.CondDataMonitoring.MonitorSiStripHighThreshold = False
0122 
0123 process.CondDataMonitoring.OutputMEsInRootFile         = True
0124 process.CondDataMonitoring.FillConditions_PSet.Mod_On            = False
0125 process.CondDataMonitoring.FillConditions_PSet.OutputSummaryAtLayerLevelAsImage           = False
0126 process.CondDataMonitoring.FillConditions_PSet.OutputSummaryProfileAtLayerLevelAsImage    = False # This should be saved only in case of LA or BP (because for LA and BP no SummaryAtLayerLevel is available)
0127 
0128 ## --- TkMap specific Configurable options:
0129 
0130 process.CondDataMonitoring.SiStripQualityDQM_PSet.TkMap_On     = True
0131 process.CondDataMonitoring.SiStripQualityDQM_PSet.TkMapName     = 'QualityTkMap.svg'
0132 process.CondDataMonitoring.SiStripQualityDQM_PSet.minValue     = 0.
0133 process.CondDataMonitoring.SiStripQualityDQM_PSet.maxValue     = 1.
0134 
0135 
0136 
0137 
0138 
0139 ## ---
0140 
0141 
0142 process.p = cms.Path(process.CondDataMonitoring*process.qTester)
0143 #process.p = cms.Path(process.CondDataMonitoring)