Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:09:16

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("SKIMb")
0004 
0005 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0006 process.load("CondCore.DBCommon.CondDBSetup_cfi")
0007 
0008 process.source = cms.Source("PoolSource",
0009     fileNames = cms.untracked.vstring(
0010 #              '/store/data/Commissioning09/Cosmics/RAW/v1/000/079/153/025F7681-391A-DE11-9556-0016177CA7A0.root'
0011               '/store/data/Commissioning08/Cosmics/RAW-RECO/CRAFT_ALL_V9_SuperPointing_225-v3/0005/B8FB3273-5DFF-DD11-BEAB-00304875A7B5.root',
0012               '/store/data/Commissioning08/Cosmics/RAW-RECO/CRAFT_ALL_V9_SuperPointing_225-v3/0005/C0E4F880-5CFF-DD11-B561-0030487624FD.root',
0013               '/store/data/Commissioning08/Cosmics/RAW-RECO/CRAFT_ALL_V9_SuperPointing_225-v3/0005/EAA9AE47-5FFF-DD11-A966-001A92810ADE.root'
0014       )
0015 )
0016 process.maxEvents = cms.untracked.PSet(
0017     input = cms.untracked.int32(-1)
0018 )
0019 
0020 process.load("Configuration.EventContent.EventContentCosmics_cff")
0021 
0022 
0023 #--------------------------------------------------
0024 #   Pick a range of events
0025 #     (includes the first and last ones specified)
0026 #--------------------------------------------------
0027 process.pickEvents = cms.EDFilter(
0028     "PickEvents",
0029 
0030     # the original format to input run/event -based selection is described in :
0031     # DPGAnalysis/Skims/data/listrunev
0032     # and kept as default, for historical reasons
0033     RunEventList = cms.untracked.string("DPGAnalysis/Skims/data/listrunev"),
0034 
0035     # run/lumiSection @json -based input of selection can be toggled (but not used in THIS example)
0036     IsRunLsBased  = cms.bool(False),
0037 
0038     # json is not used in this example -> list of LS left empty
0039     LuminositySectionsBlockRange = cms.untracked.VLuminosityBlockRange( () )
0040 
0041     )
0042 
0043 process.PickEventsPath  = cms.Path( process.pickEvents )
0044 
0045 process.out = cms.OutputModule("PoolOutputModule",
0046            outputCommands = cms.untracked.vstring('keep *','drop *_MEtoEDMConverter_*_*'),
0047            SelectEvents = cms.untracked.PSet(
0048                           SelectEvents = cms.vstring('PickEventsPath')
0049                           ),
0050            dataset = cms.untracked.PSet(
0051              dataTier = cms.untracked.string('RAW-RECO'),
0052                      filterName = cms.untracked.string('PickEvents')),
0053   
0054           fileName = cms.untracked.string("PickEvents.root"),
0055 )
0056 process.this_is_the_end = cms.EndPath(process.out)