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("Reader")
0004 
0005 process.load("DQM.SiStripCommon.TkHistoMap_cfi")
0006 
0007 process.load("CalibTracker.SiStripCommon.TkDetMapESProducer_cfi")
0008 
0009 process.MessageLogger = cms.Service("MessageLogger",
0010     debugModules = cms.untracked.vstring(''),
0011     Reader = cms.untracked.PSet(
0012         threshold = cms.untracked.string('INFO')
0013     ),
0014     cout = cms.untracked.PSet(
0015         threshold = cms.untracked.string('INFO')
0016     ),
0017     destinations = cms.untracked.vstring('cout','Reader') #Reader.log
0018 )
0019 
0020 process.maxEvents = cms.untracked.PSet(
0021     input = cms.untracked.int32(-1)
0022 )
0023 
0024 process.source = cms.Source("EmptyIOVSource",
0025     firstValue = cms.uint64(1000000),
0026     lastValue = cms.uint64(1000000),
0027     timetype = cms.string('runnumber'),
0028     interval = cms.uint64(1)
0029 )
0030 
0031 # 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
0032 process.load('Configuration.Geometry.GeometryExtended_cff')
0033 process.TrackerTopologyEP = cms.ESProducer("TrackerTopologyEP")
0034 process.load("Geometry.TrackerGeometryBuilder.trackerParameters_cfi")
0035 
0036 process.poolDBESSource = cms.ESSource("PoolDBESSource",
0037     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0038     DBParameters = cms.PSet(
0039          messageLevel = cms.untracked.int32(2),
0040          authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0041      ),
0042      timetype = cms.untracked.string('runnumber'),
0043      connect = cms.string('frontier://cmsfrontier.cern.ch:8000/FrontierProd/CMS_COND_31X_STRIP'),
0044      toGet = cms.VPSet( 
0045      cms.PSet( 
0046          record = cms.string('SiStripPedestalsRcd'),
0047          tag = cms.string('SiStripPedestals_GR09_31X_v1_hlt')
0048      ),
0049      cms.PSet(
0050          record = cms.string('SiStripNoisesRcd'),
0051          tag = cms.string('SiStripNoise_GR09_31X_v1_hlt')
0052      ),
0053 ## ##     cms.PSet(
0054 ## ##         record = cms.string('SiStripQualityRcd'), 
0055 ## ##         tag = cms.string('SiStripBadChannel_CRAFT_21X_v4_offline') 
0056 ## ##     ), 
0057      cms.PSet(
0058          record = cms.string('SiStripApvGainRcd'),
0059          tag = cms.string('SiStripApvGain_GR09_31X_v1_hlt') 
0060      ),
0061 ##     cms.PSet(
0062 ##          record = cms.string('SiStripLorentzAngleRcd'),
0063 ##          tag = cms.string('SiStripLorentzAngle_CRAFT_22X_v1_offline') 
0064 ##      )
0065     
0066      )
0067 )
0068 
0069 
0070 process.a = cms.ESSource("PoolDBESSource",
0071    BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0072    DBParameters = cms.PSet(
0073         messageLevel = cms.untracked.int32(2),
0074         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0075     ),
0076     timetype = cms.untracked.string('runnumber'),
0077     connect = cms.string('frontier://cmsfrontier.cern.ch:8000/FrontierProd/CMS_COND_31X_STRIP'),
0078     toGet = cms.VPSet(
0079     cms.PSet(
0080         record = cms.string('SiStripFedCablingRcd'),
0081         tag = cms.string('SiStripFedCabling_GR09_31X_v1_hlt')
0082     ),
0083 ##     cms.PSet(
0084 ##         record = cms.string('SiStripBadStripRcd'), 
0085 ##         tag = cms.string('SiStripBadComponents_realisticMC_31X_v1') 
0086 ##     ),
0087 ##      cms.PSet(
0088 ##          record = cms.string('SiStripThresholdRcd'),
0089 ##          tag = cms.string('SiStripThreshold_CRAFT_31X_v1_offline')
0090 ##      )
0091    
0092     )
0093 )
0094 
0095 
0096 ## siStripQualityESProducer = cms.ESProducer("SiStripQualityESProducer",
0097 ##     ThresholdForReducedGranularity = cms.double(0.2),
0098 ##     appendToDataLabel = cms.string(''),
0099 ##     ReduceGranularity = cms.bool(True),
0100 ##     ListOfRecordToMerge = cms.VPSet(cms.PSet(
0101 ##         record = cms.string('SiStripDetVOffRcd"'),
0102 ## ##        record = cms.string('SiStripDetCablingRcd'),
0103 ## ##        record = cms.string('SiStripBadChannelRcd'),        
0104 ##         tag = cms.string('test')
0105 ##     ))
0106 ## )
0107 
0108 
0109 process.DQMStore = cms.Service("DQMStore",
0110     verbose = cms.untracked.int32(1)
0111 )
0112 
0113 ###process.load("DQM.SiStripMonitorSummary.OnDemandMonitoring_cfi")
0114 process.load("DQM.SiStripMonitorSummary.SiStripMonitorCondData_cfi")
0115 process.load("CalibTracker.Configuration.Tracker_DependentRecords_forGlobalTag_nofakes_cff"
0116 )
0117 
0118 
0119 ## --- General Configurable options:
0120 
0121 process.CondDataMonitoring.OutputFileName = 'SiStrip_CondDB_CurrentTag.root'
0122 
0123 process.CondDataMonitoring.MonitorSiStripPedestal      = True
0124 process.CondDataMonitoring.MonitorSiStripNoise         = True
0125 process.CondDataMonitoring.MonitorSiStripQuality       = False
0126 process.CondDataMonitoring.MonitorSiStripCabling       = True
0127 process.CondDataMonitoring.MonitorSiStripApvGain       = False
0128 process.CondDataMonitoring.MonitorSiStripLorentzAngle  = False
0129 process.CondDataMonitoring.MonitorSiStripBackPlaneCorrection  = False
0130 process.CondDataMonitoring.MonitorSiStripLowThreshold  = False
0131 process.CondDataMonitoring.MonitorSiStripHighThreshold = False
0132 
0133 process.CondDataMonitoring.OutputMEsInRootFile         = True
0134 process.CondDataMonitoring.FillConditions_PSet.Mod_On            = True
0135 process.CondDataMonitoring.FillConditions_PSet.OutputSummaryAtLayerLevelAsImage           = False
0136 process.CondDataMonitoring.FillConditions_PSet.OutputSummaryProfileAtLayerLevelAsImage    = False # This should be saved only in case of LA (because for LA no SummaryAtLayerLevel is available)
0137 
0138 ## --- TkMap specific Configurable options:
0139 
0140 process.CondDataMonitoring.SiStripCablingDQM_PSet.TkMap_On     = True
0141 process.CondDataMonitoring.SiStripCablingDQM_PSet.TkMapName     = 'CablingTkMap.svg'
0142 process.CondDataMonitoring.SiStripCablingDQM_PSet.minValue     = 0.
0143 process.CondDataMonitoring.SiStripCablingDQM_PSet.maxValue     = 6.
0144 
0145 process.CondDataMonitoring.SiStripPedestalsDQM_PSet.TkMap_On     = True
0146 process.CondDataMonitoring.SiStripPedestalsDQM_PSet.TkMapName     = 'PedestalTkMap.svg'
0147 process.CondDataMonitoring.SiStripPedestalsDQM_PSet.minValue     = 0.
0148 process.CondDataMonitoring.SiStripPedestalsDQM_PSet.maxValue     = 400.
0149 
0150 process.CondDataMonitoring.SiStripNoisesDQM_PSet.TkMap_On     = True
0151 process.CondDataMonitoring.SiStripNoisesDQM_PSet.TkMapName     = 'NoiseTkMap.svg'
0152 process.CondDataMonitoring.SiStripNoisesDQM_PSet.minValue     = 0.
0153 process.CondDataMonitoring.SiStripNoisesDQM_PSet.maxValue     = 6.
0154 
0155 process.CondDataMonitoring.SiStripApvGainsDQM_PSet.TkMap_On     = True
0156 process.CondDataMonitoring.SiStripApvGainsDQM_PSet.TkMapName     = 'GainTkMap.png'
0157 process.CondDataMonitoring.SiStripApvGainsDQM_PSet.minValue     = 0.
0158 process.CondDataMonitoring.SiStripApvGainsDQM_PSet.maxValue     = 1.5
0159 
0160 process.CondDataMonitoring.SiStripLorentzAngleDQM_PSet.TkMap_On     = True
0161 process.CondDataMonitoring.SiStripLorentzAngleDQM_PSet.TkMapName     = 'LorentzAngleTkMap.png'
0162 process.CondDataMonitoring.SiStripLorentzAngleDQM_PSet.minValue     = 0.01
0163 process.CondDataMonitoring.SiStripLorentzAngleDQM_PSet.maxValue     = 0.03
0164 
0165 process.CondDataMonitoring.SiStripBackPlaneCorrectionDQM_PSet.TkMap_On     = True
0166 process.CondDataMonitoring.SiStripBackPlaneCorrectionDQM_PSet.TkMapName     = 'BackPlaneCorrectionTkMap.png'
0167 process.CondDataMonitoring.SiStripBackPlaneCorrectionDQM_PSet.minValue     = 0.00
0168 process.CondDataMonitoring.SiStripBackPlaneCorrectionDQM_PSet.maxValue     = 0.10
0169 
0170 process.CondDataMonitoring.SiStripLowThresholdDQM_PSet.TkMap_On     = True
0171 process.CondDataMonitoring.SiStripLowThresholdDQM_PSet.TkMapName     = 'LowThresholdTkMap.svg'
0172 process.CondDataMonitoring.SiStripLowThresholdDQM_PSet.minValue     = 0.
0173 process.CondDataMonitoring.SiStripLowThresholdDQM_PSet.maxValue     = 10.
0174 
0175 process.CondDataMonitoring.SiStripHighThresholdDQM_PSet.TkMap_On     = True
0176 process.CondDataMonitoring.SiStripHighThresholdDQM_PSet.TkMapName     = 'HighThresholdTkMap.svg'
0177 process.CondDataMonitoring.SiStripHighThresholdDQM_PSet.minValue     = 0.
0178 process.CondDataMonitoring.SiStripHighThresholdDQM_PSet.maxValue     = 10.
0179 
0180 ## ---
0181 process.p1 = cms.Path(process.CondDataMonitoring)