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