CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/DPGAnalysis/Skims/python/pick_events.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 process = cms.Process("SKIMb")
00004 
00005 process.load("FWCore.MessageLogger.MessageLogger_cfi")
00006 process.load("CondCore.DBCommon.CondDBSetup_cfi")
00007 
00008 process.source = cms.Source("PoolSource",
00009     fileNames = cms.untracked.vstring(
00010 #              '/store/data/Commissioning09/Cosmics/RAW/v1/000/079/153/025F7681-391A-DE11-9556-0016177CA7A0.root'
00011               '/store/data/Commissioning08/Cosmics/RAW-RECO/CRAFT_ALL_V9_SuperPointing_225-v3/0005/B8FB3273-5DFF-DD11-BEAB-00304875A7B5.root',
00012               '/store/data/Commissioning08/Cosmics/RAW-RECO/CRAFT_ALL_V9_SuperPointing_225-v3/0005/C0E4F880-5CFF-DD11-B561-0030487624FD.root',
00013               '/store/data/Commissioning08/Cosmics/RAW-RECO/CRAFT_ALL_V9_SuperPointing_225-v3/0005/EAA9AE47-5FFF-DD11-A966-001A92810ADE.root'
00014       )
00015 )
00016 process.maxEvents = cms.untracked.PSet(
00017     input = cms.untracked.int32(-1)
00018 )
00019 
00020 process.load("Configuration.EventContent.EventContentCosmics_cff")
00021 
00022 
00023 
00024 
00025 #--------------------------------------------------
00026 #   Pick a range of events
00027 #     (includes the first and last ones specified)
00028 #--------------------------------------------------
00029 process.pickEvents = cms.EDFilter(
00030     "PickEvents",
00031     RunEventList = cms.untracked.string("listrunev")
00032     )
00033 
00034 process.PickEventsPath  = cms.Path( process.pickEvents )
00035 
00036 process.out = cms.OutputModule("PoolOutputModule",
00037            outputCommands = cms.untracked.vstring('keep *','drop *_MEtoEDMConverter_*_*'),
00038            SelectEvents = cms.untracked.PSet(
00039                           SelectEvents = cms.vstring('PickEventsPath')
00040                           ),
00041            dataset = cms.untracked.PSet(
00042                      dataTier = cms.untracked.string('RAW-RECO'),
00043                      filterName = cms.untracked.string('PickEvents')),
00044   
00045           fileName = cms.untracked.string("PickEvents.root"),
00046 )
00047 process.this_is_the_end = cms.EndPath(process.out)