Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from DQM.SiStripMonitorSummary.SiStripMonitorCommon_cfi import MonitorSiStrip_PSet
0004 
0005 CondDataMonitoring = cms.EDAnalyzer("SiStripMonitorCondData",
0006 
0007     OutputFileName             = cms.string('SiStripMonitorCondData_MYTEST.root'),
0008                                   
0009     OutputMEsInRootFile        = cms.bool(True),
0010 
0011     MonitorSiStrip_PSet = MonitorSiStrip_PSet.clone(
0012     MonitorSiStripPedestal     = True,
0013     MonitorSiStripNoise        = True,
0014     MonitorSiStripQuality      = False,
0015     MonitorSiStripCabling      = True,
0016     MonitorSiStripLowThreshold = True,
0017     MonitorSiStripHighThreshold= True,
0018     MonitorSiStripApvGain      = True,   
0019     MonitorSiStripLorentzAngle = True,  
0020     MonitorSiStripBackPlaneCorrection = True
0021     ),
0022 
0023     FillConditions_PSet = cms.PSet(
0024       FolderName_For_QualityAndCabling_SummaryHistos= cms.string("SiStrip/Tracks"),
0025       OutputSummaryAtLayerLevelAsImage           = cms.bool(True),
0026       OutputSummaryProfileAtLayerLevelAsImage    = cms.bool(True),
0027       OutputCumulativeSummaryAtLayerLevelAsImage = cms.bool(True),
0028       Mod_On                  = cms.bool(False),
0029       HistoMaps_On            = cms.bool(True),
0030       SummaryOnStringLevel_On = cms.bool(False),
0031       SummaryOnLayerLevel_On  = cms.bool(True),
0032       GrandSummary_On         = cms.bool(True),
0033       StripQualityLabel       = cms.string(''),
0034 
0035       ActiveDetIds_On         =  cms.bool(False),
0036       TkMap_On                =  cms.bool(False),
0037 
0038       #  exclude OR include a set of modules
0039       restrictModules         = cms.bool(False),
0040       ModulesToBeIncluded_DetIdSelector = cms.vstring(
0041 #            "0x1e000000-0x16000000",  #TIB
0042 #            "0x1e000000-0x18000000",  #TID
0043 #            "0x1e006000-0x18002000", #TIDm
0044 #            "0x1e006000-0x18004000", #TIDp
0045 #            "0x1e000000-0x1a000000", #TOB
0046 #            "0x1e000000-0x1c000000", #TEC
0047 #            "0x1e0c0000-0x1c040000", #TECm
0048 #            "0x1e0c0000-0x1c080000"  #TECp
0049       ),
0050       ModulesToBeExcluded_DetIdSelector = cms.vstring(
0051 #            "0x1e000000-0x16000000",  #TIB
0052 #            "0x1e000000-0x18000000",  #TID
0053 #            "0x1e006000-0x18002000", #TIDm
0054 #            "0x1e006000-0x18004000", #TIDp
0055 #            "0x1e000000-0x1a000000", #TOB
0056 #            "0x1e000000-0x1c000000", #TEC
0057 #            "0x1e0c0000-0x1c040000", #TECm
0058 #            "0x1e0c0000-0x1c080000"  #TECp
0059       ),
0060       ModulesToBeIncluded     = cms.vuint32(), #e.g. {369120277, 369120278, 369120282}
0061       ModulesToBeExcluded     = cms.vuint32(),
0062         
0063       # exclude a subdetector
0064       SubDetectorsToBeExcluded = cms.vstring('none'), #possibilities : "none" or
0065                                                       #combinations of {"TIB","TOB","TID","TEC" }
0066       ModulesToBeFilled = cms.string('all')          
0067     ),
0068                                   
0069 
0070     # -----
0071 
0072     SiStripCablingDQM_PSet = cms.PSet(
0073 
0074     ActiveDetIds_On         =  cms.bool(True),
0075 
0076     TkMap_On                =  cms.bool(True),
0077     TkMapName               =  cms.string('CablingTkMap.png'),
0078     minValue               =  cms.double(0.),
0079     maxValue               =  cms.double(6.), 
0080     saturatedFraction      = cms.double(.01),
0081     
0082     CondObj_fillId       = cms.string('ProfileAndCumul'),
0083     CondObj_name         = cms.string('fedcabling')
0084     ),    
0085 
0086     # -----
0087 
0088     SiStripPedestalsDQM_PSet = cms.PSet(
0089 
0090       ActiveDetIds_On         =  cms.bool(True),
0091       
0092       TkMap_On                =  cms.bool(True),     
0093       TkMapName               =  cms.string('PedestalTkMap.png'),
0094       minValue               =  cms.double(0.),
0095       maxValue               =  cms.double(400.),  
0096       saturatedFraction      = cms.double(.01),
0097 
0098       CondObj_fillId       = cms.string('onlyProfile'),
0099       CondObj_name         = cms.string('pedestal'),
0100 
0101       FillSummaryAtLayerLevel           = cms.bool(True),
0102       FillSummaryProfileAtLayerLevel    = cms.bool(True),
0103 
0104       Profile_description     = cms.string('Profile_PedestalFromCondDB'),
0105       Profile_xTitle          = cms.string('Strip Number'),
0106       Profile_yTitle          = cms.string('Pedestal from CondDB(ADC)'),
0107       
0108       SummaryOfProfile_description = cms.string('ProfileSummary_PedestalFromCondDB'),
0109       SummaryOfProfile_xTitle = cms.string('Strip Number'),
0110       SummaryOfProfile_yTitle = cms.string('Pedestal from CondDB(ADC)'),
0111       SummaryOfProfile_NchY   = cms.int32(100),
0112       SummaryOfProfile_LowY   = cms.double(0.0),
0113       SummaryOfProfile_HighY  = cms.double(1000.0),
0114 
0115       Summary_description     = cms.string('Summary_PedestalFromCondDB'),
0116       Summary_xTitle          = cms.string('detId'),
0117       Summary_yTitle          = cms.string('Pedestal from CondDB(ADC)'),
0118       Summary_NchY            = cms.int32(100),
0119       Summary_LowY            = cms.double(0.0),
0120       Summary_HighY           = cms.double(1000.0)
0121     ),
0122 
0123     # -----
0124                                   
0125     SiStripNoisesDQM_PSet = cms.PSet(
0126 
0127       ActiveDetIds_On         =  cms.bool(True),
0128       
0129       TkMap_On                =  cms.bool(True),
0130       TkMapName               =  cms.string('NoiseTkMap.png'),
0131       minValue               =  cms.double(3.),
0132       maxValue               =  cms.double(9.),      
0133       saturatedFraction      = cms.double(.01),
0134 
0135       CondObj_fillId    = cms.string('onlyCumul'),
0136       CondObj_name      = cms.string('noise'),
0137 
0138       GainRenormalisation               = cms.bool(False),
0139       SimGainRenormalisation               = cms.bool(False),
0140       
0141       FillSummaryAtLayerLevel           = cms.bool(True),
0142       FillSummaryProfileAtLayerLevel    = cms.bool(True),
0143       FillCumulativeSummaryAtLayerLevel = cms.bool(True),
0144       
0145       Profile_description               = cms.string('Profile_NoiseFromCondDB'),
0146       Profile_xTitle                    = cms.string('Strip Number'),
0147       Profile_yTitle                    = cms.string('Noise from CondDB(ADC)'),
0148 
0149       Cumul_description = cms.string('NoiseFromCondDB'),
0150       Cumul_xTitle      = cms.string('Noise from CondDB(ADC)'),
0151       Cumul_yTitle      = cms.string(' '),
0152       Cumul_NchX        = cms.int32(50),
0153       Cumul_LowX        = cms.double(0.0),
0154       Cumul_HighX       = cms.double(5.0),
0155       
0156       SummaryOfProfile_description = cms.string('ProfileSummary_NoiseFromCondDB'),
0157       SummaryOfProfile_xTitle      = cms.string('Strip Number'),      
0158       SummaryOfProfile_yTitle      = cms.string('Noise from CondDB(ADC)'),
0159       SummaryOfProfile_NchY        = cms.int32(50),
0160       SummaryOfProfile_LowY        = cms.double(0.0),
0161       SummaryOfProfile_HighY       = cms.double(10.0),
0162 
0163       Summary_description          = cms.string('Summary_NoiseFromCondDB'),
0164       Summary_xTitle               = cms.string('detId'),
0165       Summary_yTitle               = cms.string('Noise from CondDB(ADC)'),
0166       Summary_NchY                 = cms.int32(50),
0167       Summary_LowY                 = cms.double(0.0),
0168       Summary_HighY                = cms.double(10.0),
0169       
0170       SummaryOfCumul_description = cms.string('CumulativeSummary_NoiseFromCondDB'),
0171       SummaryOfCumul_xTitle      = cms.string('Noise from CondDB'),
0172       SummaryOfCumul_yTitle      = cms.string(' '),
0173       SummaryOfCumul_NchX        = cms.int32(50),
0174       SummaryOfCumul_LowX        = cms.double(0.0),
0175       SummaryOfCumul_HighX       = cms.double(10.0)
0176     ),
0177 
0178     # -----
0179     SiStripQualityDQM_PSet = cms.PSet(
0180 
0181       ActiveDetIds_On         =  cms.bool(True),
0182     
0183       TkMap_On                =  cms.bool(True),
0184       TkMapName               =  cms.string('QualityTkMap.svg'),
0185       minValue               =  cms.double(0.),
0186       maxValue               =  cms.double(0.), 
0187       saturatedFraction      = cms.double(.01),
0188 
0189 
0190       CondObj_name   = cms.string('quality'),
0191       CondObj_fillId = cms.string('onlyProfile'),
0192       
0193       FillSummaryAtLayerLevel           = cms.bool(True),
0194 
0195       Profile_description = cms.string('Profile_QualityFlagFromCondDB'),
0196       Profile_xTitle      = cms.string('Strip Number'),
0197       Profile_yTitle      = cms.string('Quality Flag from CondDB'),
0198       
0199       Summary_description = cms.string('Summary_FractionOfBadStripsFromCondDB'),
0200       Summary_xTitle      = cms.string('detId'),
0201       Summary_yTitle      = cms.string('Fraction of bad strips from CondDB(%)'),
0202       Summary_NchY        = cms.int32(100),
0203       Summary_LowY        = cms.double(0.5),
0204       Summary_HighY       = cms.double(100.5),
0205 
0206       Summary_BadObjects_histo_xTitle      =cms.string('Sub Det And Layer'),
0207       
0208       Summary_BadModules_histo_name =cms.string('Summary_BadModules_FromCondDB'),
0209       Summary_BadModules_histo_yTitle      =cms.string('Number of bad Modules from CondDB'),
0210       
0211       Summary_BadFibers_histo_name =cms.string('Summary_BadFibers_FromCondDB'),
0212       Summary_BadFibers_histo_yTitle      =cms.string('Number of bad Fibers from CondDB'),
0213       
0214       Summary_BadApvs_histo_name =cms.string('Summary_BadApvs_FromCondDB'),
0215       Summary_BadApvs_histo_yTitle      =cms.string('Number of bad Apvs from CondDB'),
0216       
0217       Summary_BadStrips_histo_name =cms.string('Summary_BadStrips_FromCondDB'),
0218       Summary_BadStrips_histo_yTitle      =cms.string('Number of bad Strips from CondDB'),
0219       
0220       SummaryOfCumul_description   =cms.string('CumulativeSummary_SiStripQualityFromCondDB'),
0221       SummaryOfCumul_xTitle        =cms.string('SiStripQualityfrom CondDB'),
0222       SummaryOfCumul_yTitle        =cms.string(' '),
0223       
0224       SummaryOfCumul_NchX          = cms.int32(100),
0225       SummaryOfCumul_LowX          = cms.double(0.0),
0226       SummaryOfCumul_HighX         = cms.double(100.0)  
0227 
0228     ),
0229 
0230     # -----
0231     SiStripApvGainsDQM_PSet = cms.PSet(
0232 
0233       ActiveDetIds_On         =  cms.bool(True),
0234 
0235       TkMap_On                =  cms.bool(True),
0236       TkMapName               =  cms.string('GainTkMap.svg'),
0237       minValue               =  cms.double(0.),
0238       maxValue               =  cms.double(1.5),  
0239       saturatedFraction      = cms.double(.01),
0240 
0241       CondObj_name   = cms.string('apvgain'),
0242       CondObj_fillId = cms.string('ProfileAndCumul'),
0243 
0244       FillSummaryAtLayerLevel           = cms.bool(True),
0245       FillSummaryProfileAtLayerLevel    = cms.bool(True),
0246 
0247       Profile_description = cms.string('Profile_ApvGainFromCondDB'),
0248       Profile_xTitle      = cms.string('Apv Number'),
0249       Profile_yTitle      = cms.string('ApvGain from CondDB'),
0250 
0251       Cumul_description   = cms.string('ApvGainFromCondDB'),
0252       Cumul_xTitle        = cms.string('ApvGain from CondDB'),
0253       Cumul_yTitle        = cms.string(' '),        
0254       Cumul_NchX          = cms.int32(50),
0255       Cumul_LowX          = cms.double(0.5),
0256       Cumul_HighX         = cms.double(1.5),
0257 
0258       SummaryOfProfile_description = cms.string('ProfileSummary_ApvGainFromCondDB'),
0259       SummaryOfProfile_xTitle      = cms.string('Apv Number'),
0260       SummaryOfProfile_yTitle      = cms.string('ApvGain from CondDB'),
0261       SummaryOfProfile_NchY        = cms.int32(50),
0262       SummaryOfProfile_LowY        = cms.double(0.5),
0263       SummaryOfProfile_HighY       = cms.double(1.5),
0264 
0265       Summary_description   = cms.string('Summary_ApvGainFromCondDB'),
0266       Summary_xTitle        = cms.string('detId'),
0267       Summary_yTitle        = cms.string('ApvGain from CondDB'),
0268       Summary_NchY          = cms.int32(50),        
0269       Summary_LowY          = cms.double(0.5),
0270       Summary_HighY         = cms.double(1.5)
0271     ),
0272 
0273     # -----
0274 
0275     SiStripLorentzAngleDQM_PSet = cms.PSet(
0276 
0277     ActiveDetIds_On         =  cms.bool(False),
0278       
0279     TkMap_On                =  cms.bool(True),
0280     TkMapName               =  cms.string('LorentzAngleTkMap.png'),
0281     minValue               =  cms.double(0.01),
0282     maxValue               =  cms.double(0.03),
0283     saturatedFraction      = cms.double(.01),
0284 
0285       CondObj_name = cms.string('lorentzangle'),
0286       CondObj_fillId = cms.string('ProfileAndCumul'),
0287       
0288       FillSummaryProfileAtLayerLevel = cms.bool(True),
0289       FillCumulativeSummaryAtLayerLevel = cms.bool(True),
0290 
0291       SummaryOfCumul_description = cms.string('ProfileSummary_LorentzAngleFromCondDB'),
0292       SummaryOfCumul_xTitle      = cms.string('LorentzAngle from CondDB'),
0293       SummaryOfCumul_yTitle      = cms.string(' '),
0294       SummaryOfCumul_NchX        = cms.int32(50),      
0295       SummaryOfCumul_LowX        = cms.double(0.01),
0296       SummaryOfCumul_HighX       = cms.double(0.06),
0297       
0298       SummaryOfProfile_description = cms.string('Summary_LorentzAngleFromCondDB'),
0299       SummaryOfProfile_xTitle      = cms.string('detId'),
0300       SummaryOfProfile_yTitle      = cms.string('LorentzAngle from CondDB'),
0301       SummaryOfProfile_NchY        = cms.int32(50),
0302       SummaryOfProfile_LowY        = cms.double(0.01),
0303       SummaryOfProfile_HighY       = cms.double(0.06)      
0304     ),
0305 
0306     # -----
0307     SiStripBackPlaneCorrectionDQM_PSet = cms.PSet(
0308 
0309     ActiveDetIds_On         =  cms.bool(False),
0310       
0311     TkMap_On                =  cms.bool(True),
0312     TkMapName               =  cms.string('BackPlaneCorrectionTkMap.png'),
0313     minValue               =  cms.double(0.00),
0314     maxValue               =  cms.double(0.10),
0315     saturatedFraction      = cms.double(.01),
0316 
0317       CondObj_name = cms.string('bpcorrection'),
0318       CondObj_fillId = cms.string('ProfileAndCumul'),
0319       
0320       FillSummaryProfileAtLayerLevel = cms.bool(True),
0321       FillCumulativeSummaryAtLayerLevel = cms.bool(True),
0322 
0323       SummaryOfCumul_description = cms.string('ProfileSummary_BackPlaneCorrectionFromCondDB'),
0324       SummaryOfCumul_xTitle      = cms.string('BackPlaneCorrection from CondDB'),
0325       SummaryOfCumul_yTitle      = cms.string(' '),
0326       SummaryOfCumul_NchX        = cms.int32(50),      
0327       SummaryOfCumul_LowX        = cms.double(0.00),
0328       SummaryOfCumul_HighX       = cms.double(0.10),
0329       
0330       SummaryOfProfile_description = cms.string('Summary_BackPlaneCorrectionFromCondDB'),
0331       SummaryOfProfile_xTitle      = cms.string('detId'),
0332       SummaryOfProfile_yTitle      = cms.string('BackPlaneCorrection from CondDB'),
0333       SummaryOfProfile_NchY        = cms.int32(50),
0334       SummaryOfProfile_LowY        = cms.double(0.00),
0335       SummaryOfProfile_HighY       = cms.double(0.10)      
0336     ),
0337 
0338     # -----
0339 
0340       SiStripLowThresholdDQM_PSet = cms.PSet(
0341 
0342       ActiveDetIds_On         =  cms.bool(True),
0343       
0344       TkMap_On                =  cms.bool(True),
0345       TkMapName               =  cms.string('LowThresholdTkMap.png'),
0346       minValue               =  cms.double(0.),
0347       maxValue               =  cms.double(10.), 
0348       saturatedFraction      = cms.double(.01),
0349 
0350       WhichThreshold= cms.string('Low'),
0351 
0352       CondObj_fillId = cms.string('onlyProfile'), 
0353       CondObj_name   = cms.string('lowthreshold'),  
0354 
0355       FillSummaryAtLayerLevel= cms.bool(True),
0356       FillSummaryProfileAtLayerLevel=cms.bool(True),
0357       FillCumulativeSummaryAtLayerLevel = cms.bool(True),
0358 
0359       Profile_description = cms.string('Profile_LowThresholdFromCondDB'),
0360       Profile_xTitle      = cms.string('Strip Number'),
0361       Profile_yTitle      = cms.string('Low Threshold from CondDB(ADC)'),
0362       
0363       SummaryOfProfile_description = cms.string('ProfileSummary_LowThresholdFromCondDB'),
0364       SummaryOfProfile_xTitle      = cms.string('Strip Number'),
0365       SummaryOfProfile_yTitle      = cms.string('Low Threshold from CondDB(ADC)'),  
0366       SummaryOfProfile_NchY        = cms.int32(100),
0367       SummaryOfProfile_LowY        = cms.double(0),
0368       SummaryOfProfile_HighY       = cms.double(10),
0369 
0370       Summary_description   = cms.string('Summary_LowThresholdFromCondDB'),
0371       Summary_xTitle        = cms.string('detId'),
0372       Summary_yTitle        = cms.string('Low Threshold from CondDB(ADC)'),
0373       Summary_NchY          = cms.int32(100),
0374       Summary_LowY          = cms.double(0),
0375       Summary_HighY         = cms.double(10)
0376       ),
0377 
0378 
0379     # -----
0380 
0381     SiStripHighThresholdDQM_PSet = cms.PSet(
0382 
0383     ActiveDetIds_On         =  cms.bool(True),
0384 
0385     TkMap_On                =  cms.bool(True),
0386     TkMapName               =  cms.string('HighThresholdTkMap.png'),
0387     minValue               =  cms.double(0.),
0388     maxValue               =  cms.double(10.),  
0389     saturatedFraction      = cms.double(.01),
0390 
0391     WhichThreshold= cms.string('High'),
0392     
0393     CondObj_fillId = cms.string('onlyProfile'), 
0394     CondObj_name   = cms.string('highthreshold'),  
0395 
0396     FillSummaryAtLayerLevel= cms.bool(True),
0397     FillSummaryProfileAtLayerLevel=cms.bool(True),
0398     FillCumulativeSummaryAtLayerLevel = cms.bool(True),
0399 
0400     Profile_description = cms.string('Profile_HighThresholdFromCondDB'),
0401     Profile_xTitle      = cms.string('Strip Number'),
0402     Profile_yTitle      = cms.string('High Threshold from CondDB(ADC)'),
0403     
0404     SummaryOfProfile_description = cms.string('ProfileSummary_HighThresholdFromCondDB'),
0405     SummaryOfProfile_xTitle      = cms.string('Strip Number'),
0406     SummaryOfProfile_yTitle      = cms.string('High Threshold from CondDB(ADC)'),   
0407     SummaryOfProfile_NchY        = cms.int32(100),
0408     SummaryOfProfile_LowY        = cms.double(0),
0409     SummaryOfProfile_HighY       = cms.double(10),
0410     
0411     Summary_description   = cms.string('Summary_HighThresholdFromCondDB'),
0412     Summary_xTitle        = cms.string('detId'),
0413     Summary_yTitle        = cms.string('High Threshold from CondDB(ADC)'),
0414     Summary_NchY          = cms.int32(100),
0415     Summary_LowY          = cms.double(0),
0416     Summary_HighY         = cms.double(10)
0417     )
0418                                   
0419 )