Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 from Configuration.AlCa.GlobalTag import GlobalTag
0003 
0004 process = cms.Process('SPYDQM')
0005 
0006 #source of normal event data
0007 process.source = cms.Source(
0008     'PoolSource',
0009     fileNames = cms.untracked.vstring(
0010        'file:/eos/cms/store/user/jblee/SpyFEDemulated234824.root',
0011        )
0012     )
0013 
0014 process.maxEvents = cms.untracked.PSet(
0015   input = cms.untracked.int32(-1)
0016   )
0017 
0018 # --- Message Logging ---
0019 #process.Tracer = cms.Service('Tracer',indentation = cms.untracked.string('$$'))
0020 process.load('DQM.SiStripCommon.MessageLogger_cfi')
0021 process.MessageLogger.debugModules = cms.untracked.vstring('SiStripSpyMonitor')
0022 process.MessageLogger.suppressInfo = cms.untracked.vstring('SiStripSpyDigiConverter')
0023 process.MessageLogger.suppressWarning = cms.untracked.vstring('SiStripSpyDigiConverter')
0024 #process.MessageLogger.suppressDebug = cms.untracked.vstring('*')
0025 
0026 
0027 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0028 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_data', '')
0029 process.load("Configuration.Geometry.GeometryRecoDB_cff")
0030 
0031 
0032 process.load('DQM.SiStripMonitorHardware.SiStripSpyUnpacker_cfi')
0033 process.load('DQM.SiStripMonitorHardware.SiStripSpyDigiConverter_cfi')
0034 process.SiStripSpyUnpacker.InputProductLabel = cms.InputTag('source')
0035 process.SiStripSpyUnpacker.StoreScopeRawDigis = cms.bool(True)
0036 
0037 process.SiStripSpyDigiConverter.InputProductLabel = cms.InputTag('SiStripSpyUnpacker','ScopeRawDigis')
0038 process.SiStripSpyDigiConverter.StoreVirginRawDigis = cms.bool(True)
0039 process.SiStripSpyDigiConverter.MinDigiRange = 100
0040 process.SiStripSpyDigiConverter.MaxDigiRange = 1024
0041 process.SiStripSpyDigiConverter.MinZeroLight = 0
0042 process.SiStripSpyDigiConverter.MaxZeroLight = 1024
0043 process.SiStripSpyDigiConverter.MinTickHeight = 0
0044 process.SiStripSpyDigiConverter.MaxTickHeight = 1024
0045 process.SiStripSpyDigiConverter.ExpectedPositionOfFirstHeaderBit = 6
0046 process.SiStripSpyDigiConverter.DiscardDigisWithWrongAPVAddress = False
0047 
0048 
0049 # ---- FED Emulation ----
0050 process.load('DQM.SiStripMonitorHardware.SiStripFEDEmulator_cfi')
0051 process.SiStripFEDEmulator.SpyVirginRawDigisTag = cms.InputTag('SiStripSpyDigiConverter','SpyVirginRaw')
0052 process.SiStripFEDEmulator.ByModule = cms.bool(True) #use the digis stored by module (i.e. detId)
0053 
0054 
0055 process.load('DQM.SiStripMonitorHardware.SiStripSpyEventSummaryProducer_cfi')
0056 process.SiStripSpyEventSummary.RawDataTag = cms.InputTag('rawDataCollector')
0057 process.load("DQM.SiStripCommissioningSources.CommissioningHistos_cfi")
0058 process.CommissioningHistos.CommissioningTask = 'PEDESTALS'  # <-- run type taken from even
0059 process.CommissioningHistos.InputModuleLabel = 'SiStripSpyDigiConverter'  # output label fr
0060 process.CommissioningHistos.SummaryInputModuleLabel = 'SiStripSpyEventSummary'
0061 
0062 # ---- DQM
0063 process.DQMStore = cms.Service("DQMStore")
0064 
0065 process.load('DQM.SiStripMonitorHardware.SiStripSpyMonitor_cfi')
0066 process.SiStripSpyMonitor.SpyScopeRawDigisTag = cms.untracked.InputTag('SiStripSpyUnpacker','ScopeRawDigis')
0067 process.SiStripSpyMonitor.SpyPedSubtrDigisTag = cms.untracked.InputTag('SiStripFEDEmulator','PedSubtrModuleDigis')
0068 process.SiStripSpyMonitor.SpyAPVeTag = cms.untracked.InputTag('SiStripSpyDigiConverter','APVAddress')
0069 process.SiStripSpyMonitor.FillWithLocalEventNumber = True
0070 process.SiStripSpyMonitor.WriteDQMStore = True
0071 process.SiStripSpyMonitor.DQMStoreFileName = "DQMStore.root"
0072 # process.SiStripSpyMonitor.OutputErrors = "NoData","MinZero","MaxSat","LowRange","HighRange","LowDAC","HighDAC","OOS","OtherPbs","APVError","APVAddressError","NegPeds"
0073 # process.SiStripSpyMonitor.OutputErrors = "MinZero","MaxSat","LowRange","HighRange","LowDAC","HighDAC","OOS","OtherPbs","APVError","APVAddressError","NegPeds"
0074 # process.SiStripSpyMonitor.WriteCabling = True
0075 
0076 process.p = cms.Path(
0077 #     process.SiStripSpyUnpacker
0078 #     *process.SiStripSpyDigiConverter
0079 #    process.SiStripFEDEmulator
0080     process.SiStripSpyMonitor
0081 #    *process.SiStripSpyEventSummary
0082 #     *process.CommissioningHistos
0083     )
0084