Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #test configuration for the spy data unpacking code
0002 
0003 import FWCore.ParameterSet.Config as cms
0004 from Configuration.AlCa.GlobalTag import GlobalTag
0005 
0006 process = cms.Process('SPYPROD')
0007 
0008 # ---- Input data ----
0009 # See https://twiki.cern.ch/twiki/bin/viewauth/CMS/FEDSpyChannelData for more spy data.
0010 process.source = cms.Source(
0011     'PoolSource',
0012     fileNames = cms.untracked.vstring(
0013         # Spy data (raw) in edm format, as converted from .dat
0014 #'file:/eos/cms/store/group/dpg_tracker_strip/tracker/Online/store/streamer/SiStripSpy/Commissioning11/234824/USC.00234824.0001.A.storageManager.00.0026.RUN00234874.root',
0015 #'file:/eos/cms/store/group/dpg_tracker_strip/tracker/Online/store/streamer/SiStripSpy/Commissioning11/234824/USC.00234824.0001.A.storageManager.00.0027.RUN00234874.root',
0016 #'file:/eos/cms/store/group/dpg_tracker_strip/tracker/Online/store/streamer/SiStripSpy/Commissioning11/234824/USC.00234824.0001.A.storageManager.00.0028.RUN00234874.root',
0017 #'file:/eos/cms/store/group/dpg_tracker_strip/tracker/Online/store/streamer/SiStripSpy/Commissioning11/234824/USC.00234824.0001.A.storageManager.00.0029.RUN00234874.root',
0018 #'file:/eos/cms/store/group/dpg_tracker_strip/tracker/Online/store/streamer/SiStripSpy/Commissioning11/234824/USC.00234824.0001.A.storageManager.00.0030.RUN00234874.root',
0019 #'file:/eos/cms/store/group/dpg_tracker_strip/tracker/Online/store/streamer/SiStripSpy/Commissioning11/234824/USC.00234824.0001.A.storageManager.00.0031.RUN00234874.root',
0020 #'file:/eos/cms/store/group/dpg_tracker_strip/tracker/Online/store/streamer/SiStripSpy/Commissioning11/234824/USC.00234824.0001.A.storageManager.00.0032.RUN00234874.root',
0021 #'file:/eos/cms/store/group/dpg_tracker_strip/tracker/Online/store/streamer/SiStripSpy/Commissioning11/234824/USC.00234824.0001.A.storageManager.00.0033.RUN00234874.root',
0022 #'file:/eos/cms/store/group/dpg_tracker_strip/tracker/Online/store/streamer/SiStripSpy/Commissioning11/234824/USC.00234824.0001.A.storageManager.00.0034.RUN00234874.root',
0023 'file:/eos/cms/store/group/dpg_tracker_strip/tracker/Online/store/streamer/SiStripSpy/Commissioning11/298270/USC.00298270.0001.A.storageManager.00.0000.RUN00298269.root',
0024 #'file:/eos/cms/store/group/dpg_tracker_strip/tracker/Online/store/streamer/SiStripSpy/Commissioning11/298270/USC.00298270.0001.A.storageManager.00.0001.RUN00298269.root',
0025 #'file:/eos/cms/store/group/dpg_tracker_strip/tracker/Online/store/streamer/SiStripSpy/Commissioning11/298270/USC.00298270.0001.A.storageManager.00.0002.RUN00298269.root',
0026 #'file:/eos/cms/store/group/dpg_tracker_strip/tracker/Online/store/streamer/SiStripSpy/Commissioning11/298270/USC.00298270.0001.A.storageManager.00.0003.RUN00298269.root',
0027 #'file:/eos/cms/store/group/dpg_tracker_strip/tracker/Online/store/streamer/SiStripSpy/Commissioning11/298270/USC.00298270.0001.A.storageManager.00.0004.RUN00298269.root',
0028 #'file:/eos/cms/store/group/dpg_tracker_strip/tracker/Online/store/streamer/SiStripSpy/Commissioning11/298270/USC.00298270.0001.A.storageManager.00.0005.RUN00298269.root',
0029 #'file:/eos/cms/store/group/dpg_tracker_strip/tracker/Online/store/streamer/SiStripSpy/Commissioning11/298270/USC.00298270.0001.A.storageManager.00.0006.RUN00298269.root',
0030 #'file:/eos/cms/store/group/dpg_tracker_strip/tracker/Online/store/streamer/SiStripSpy/Commissioning11/298270/USC.00298270.0001.A.storageManager.00.0007.RUN00298269.root',
0031         )
0032     )
0033 
0034 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0035 
0036 # --- Message Logging ---
0037 #process.Tracer = cms.Service('Tracer',indentation = cms.untracked.string('$$'))
0038 process.load('DQM.SiStripCommon.MessageLogger_cfi')
0039 #process.MessageLogger.debugModules = cms.untracked.vstring('')
0040 #process.MessageLogger.suppressInfo = cms.untracked.vstring('')
0041 #process.MessageLogger.suppressWarning = cms.untracked.vstring('')
0042 #process.MessageLogger.suppressDebug = cms.untracked.vstring('')
0043 
0044 
0045 # --- Conditions data ---
0046 # Find the appropriate Global Tags at
0047 # https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions
0048 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0049 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_data', '')
0050 process.load("Configuration.Geometry.GeometryRecoDB_cff")
0051 
0052 # --- The unpacking configuration ---
0053 process.load('DQM.SiStripMonitorHardware.SiStripSpyUnpacker_cfi')
0054 process.load('DQM.SiStripMonitorHardware.SiStripSpyDigiConverter_cfi')
0055 
0056 ## * Scope digi settings
0057 process.SiStripSpyUnpacker.FEDIDs = cms.vuint32()                   #use a subset of FEDs or leave empty for all.
0058 #process.SiStripSpy.FEDIDs = cms.vuint32(50, 187, 260, 356) #one from each partition
0059 process.SiStripSpyUnpacker.InputProductLabel = cms.InputTag('rawDataCollector')
0060 process.SiStripSpyUnpacker.AllowIncompleteEvents = True
0061 process.SiStripSpyUnpacker.StoreCounters = True
0062 process.SiStripSpyUnpacker.StoreScopeRawDigis = cms.bool(True)      # Note - needs to be True for use in other modules.
0063 ## * Module digi settings
0064 process.SiStripSpyDigiConverter.InputProductLabel = cms.InputTag('SiStripSpyUnpacker','ScopeRawDigis')
0065 process.SiStripSpyDigiConverter.StorePayloadDigis = True
0066 process.SiStripSpyDigiConverter.StoreReorderedDigis = True
0067 process.SiStripSpyDigiConverter.StoreModuleDigis = True
0068 process.SiStripSpyDigiConverter.StoreAPVAddress = True
0069 process.SiStripSpyDigiConverter.MinDigiRange = 100
0070 process.SiStripSpyDigiConverter.MaxDigiRange = 1024
0071 process.SiStripSpyDigiConverter.MinZeroLight = 0
0072 process.SiStripSpyDigiConverter.MaxZeroLight = 1024
0073 process.SiStripSpyDigiConverter.MinTickHeight = 0
0074 process.SiStripSpyDigiConverter.MaxTickHeight = 1024
0075 process.SiStripSpyDigiConverter.ExpectedPositionOfFirstHeaderBit = 6
0076 process.SiStripSpyDigiConverter.DiscardDigisWithWrongAPVAddress = False
0077 
0078 # --- Define the path ---
0079 process.p = cms.Path(
0080     process.SiStripSpyUnpacker
0081     *process.SiStripSpyDigiConverter
0082     )
0083 
0084 
0085 # --- What to output ---
0086 process.output = cms.OutputModule(
0087     "PoolOutputModule",
0088     fileName = cms.untracked.string("SpyRawToDigis298270_TEST.root"),
0089     outputCommands = cms.untracked.vstring(
0090        'keep *',
0091        #'drop *',
0092        #'drop *_source_*_*',
0093        #'drop *_TriggerResults__SPYUNPACKTEST',
0094        #'drop *_*_ScopeRawDigis_*',
0095        #'drop *_*_Payload_*',
0096        #'drop *_*_Reordered_*',
0097        #'drop *_*_VirginRaw_*'
0098        #'drop *_*_TotalEventCount_*',
0099        #'drop *_*_L1ACount_*',
0100        #'drop *_*_APVAddress_*',
0101        )
0102     )
0103 
0104 process.e = cms.EndPath( process.output )