Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-04-01 23:53:47

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("SiStripCondVisualizer")
0004 
0005 process.load("FWCore.MessageService.MessageLogger_cfi")
0006 process.MessageLogger.cerr.enable = False
0007 process.MessageLogger.SiStripCondVisualizer=dict()  
0008 process.MessageLogger.cout = cms.untracked.PSet(
0009     enable = cms.untracked.bool(True),
0010     threshold = cms.untracked.string("INFO"),
0011     default   = cms.untracked.PSet(limit = cms.untracked.int32(0)),                       
0012     FwkReport = cms.untracked.PSet(limit = cms.untracked.int32(-1),
0013                                    reportEvery = cms.untracked.int32(1000)
0014                                    ),                                                      
0015     SiStripCondVisualizer = cms.untracked.PSet( limit = cms.untracked.int32(-1)),
0016     enableStatistics = cms.untracked.bool(True)
0017     )
0018 
0019 
0020 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(-1))
0021 
0022 process.source = cms.Source("EmptyIOVSource",
0023                             firstValue = cms.uint64(306054),  
0024                             lastValue = cms.uint64(306054),   
0025                             timetype = cms.string('runnumber'),
0026                             interval = cms.uint64(1)
0027                             )
0028 
0029 process.load('Configuration.StandardSequences.GeometryRecoDB_cff') 
0030 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0031 from Configuration.AlCa.GlobalTag import GlobalTag
0032 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run3_data', '')
0033 
0034 # quality producer needed for the bad components dumping
0035 from CalibTracker.SiStripESProducers.SiStripQualityESProducer_cfi import*
0036 siStripQualityESProducer.ListOfRecordToMerge = cms.VPSet(
0037     # cms.PSet(record = cms.string("SiStripDetVOffRcd"), tag = cms.string('')),  # DCS information
0038     cms.PSet(record = cms.string('SiStripDetCablingRcd'), tag = cms.string('')), # Use Detector cabling information to exclude detectors not connected
0039     cms.PSet(record = cms.string('SiStripBadChannelRcd'), tag = cms.string('')), # Online Bad components
0040     cms.PSet(record = cms.string('SiStripBadFiberRcd'), tag = cms.string('')),   # Bad Channel list from the selected IOV as done at PCL
0041     cms.PSet(record = cms.string('RunInfoRcd'), tag = cms.string(''))            # List of FEDs exluded during data taking
0042 )
0043 
0044 siStripQualityESProducer.ReduceGranularity = cms.bool(False)
0045 siStripQualityESProducer.ThresholdForReducedGranularity = cms.double(0.3)
0046 siStripQualityESProducer.appendToDataLabel = 'MergedBadComponent'
0047 siStripQualityESProducer.PrintDebugOutput = cms.bool(True)
0048 
0049 process.TFileService = cms.Service("TFileService",
0050                                    fileName = cms.string("conditionsDump.root"))
0051 
0052 from CondTools.SiStrip.siStripCondVisualizer_cfi import siStripCondVisualizer
0053 process.condVisualizer = siStripCondVisualizer.clone(doNoise = True,
0054                                                      doPeds = True,
0055                                                      doG1 = True,
0056                                                      doG2 = True,
0057                                                      doBadComps = True,
0058                                                      # example of configuration of DetId selector
0059                                                      # selections=cms.VPSet(
0060                                                      #     cms.PSet(detSelection = cms.uint32(30),detLabel = cms.string("TIB"),selection=cms.untracked.vstring("0x1e000000-0x16000000")),      # TIB
0061                                                      #     cms.PSet(detSelection = cms.uint32(41),detLabel = cms.string("TIDMinus"),selection=cms.untracked.vstring("0x1e006000-0x18002000")), # TID minus
0062                                                      #     cms.PSet(detSelection = cms.uint32(42),detLabel = cms.string("TIDPlus"),selection=cms.untracked.vstring("0x1e006000-0x18004000")),  # TID plus
0063                                                      #     cms.PSet(detSelection = cms.uint32(50),detLabel = cms.string("TOB"),selection=cms.untracked.vstring("0x1e000000-0x1a000000")),      # TOB
0064                                                      #     cms.PSet(detSelection = cms.uint32(61),detLabel = cms.string("TECMinus"),selection=cms.untracked.vstring("0x1e0c0000-0x1c040000")), # TEC minus
0065                                                      #     cms.PSet(detSelection = cms.uint32(62),detLabel = cms.string("TECPlus"),selection=cms.untracked.vstring("0x1e0c0000-0x1c080000"))   # TEC plus
0066                                                      # )
0067                                                     )
0068 process.p = cms.Path(process.condVisualizer)