File indexing completed on 2024-04-06 12:11:10
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process('TEST')
0004
0005 import FWCore.ParameterSet.VarParsing as VarParsing
0006 options = VarParsing.VarParsing('analysis')
0007 options.setDefault('inputFiles', [
0008 'root://eoscms.cern.ch//eos/cms/store/group/dpg_trigger/comm_trigger/TriggerStudiesGroup/STORM/RAW/Run2022B_HLTPhysics0_run355558/cd851cf4-0fca-4d76-b80e-1d33e1371929.root',
0009 ])
0010 options.setDefault('maxEvents', 10)
0011 options.parseArguments()
0012
0013
0014 process.maxEvents.input = options.maxEvents
0015
0016
0017 process.options.wantSummary = False
0018 process.load('FWCore.MessageService.MessageLogger_cfi')
0019 process.MessageLogger.cerr.FwkReport.reportEvery = 100
0020 process.MessageLogger.cerr.enableStatistics = False
0021 process.MessageLogger.cerr.threshold = 'INFO'
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031 process.source = cms.Source('PoolSource',
0032 fileNames = cms.untracked.vstring(options.inputFiles)
0033 )
0034 print('process.source.fileNames =', process.source.fileNames)
0035
0036
0037
0038
0039 _siStripFEDs = [foo for foo in range(50, 489+1)]
0040
0041 from EventFilter.Utilities.EvFFEDSelector_cfi import EvFFEDSelector as _EvFFEDSelector
0042 process.rawDataSiStripV1 = _EvFFEDSelector.clone(
0043 inputTag = 'rawDataCollector',
0044 fedList = _siStripFEDs,
0045 )
0046
0047 from EventFilter.Utilities.EvFFEDExcluder_cfi import EvFFEDExcluder as _EvFFEDExcluder
0048 process.rawDataSiStripV2 = _EvFFEDExcluder.clone(
0049 src = 'rawDataCollector',
0050 fedsToExclude = [foo for foo in range(4096+1) if foo not in _siStripFEDs],
0051 )
0052
0053 process.rawDataSelectionPath = cms.Path(
0054 process.rawDataSiStripV1
0055 + process.rawDataSiStripV2
0056 )
0057
0058
0059
0060
0061 process.rawDataOutputModule = cms.OutputModule('PoolOutputModule',
0062 fileName = cms.untracked.string('file:tmp.root'),
0063 outputCommands = cms.untracked.vstring(
0064 'drop *',
0065 'keep FEDRawDataCollection_*_*_*',
0066 'keep edmTriggerResults_*_*_*',
0067 'keep triggerTriggerEvent_*_*_*',
0068 )
0069 )
0070
0071 process.outputEndPath = cms.EndPath( process.rawDataOutputModule )