CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
pick_events.py
Go to the documentation of this file.
2 
3 process = cms.Process("SKIMb")
4 
5 process.load("FWCore.MessageLogger.MessageLogger_cfi")
6 process.load("CondCore.DBCommon.CondDBSetup_cfi")
7 
8 process.source = cms.Source("PoolSource",
9  fileNames = cms.untracked.vstring(
10 # '/store/data/Commissioning09/Cosmics/RAW/v1/000/079/153/025F7681-391A-DE11-9556-0016177CA7A0.root'
11  '/store/data/Commissioning08/Cosmics/RAW-RECO/CRAFT_ALL_V9_SuperPointing_225-v3/0005/B8FB3273-5DFF-DD11-BEAB-00304875A7B5.root',
12  '/store/data/Commissioning08/Cosmics/RAW-RECO/CRAFT_ALL_V9_SuperPointing_225-v3/0005/C0E4F880-5CFF-DD11-B561-0030487624FD.root',
13  '/store/data/Commissioning08/Cosmics/RAW-RECO/CRAFT_ALL_V9_SuperPointing_225-v3/0005/EAA9AE47-5FFF-DD11-A966-001A92810ADE.root'
14  )
15 )
16 process.maxEvents = cms.untracked.PSet(
17  input = cms.untracked.int32(-1)
18 )
19 
20 process.load("Configuration.EventContent.EventContentCosmics_cff")
21 
22 
23 
24 
25 #--------------------------------------------------
26 # Pick a range of events
27 # (includes the first and last ones specified)
28 #--------------------------------------------------
29 process.pickEvents = cms.EDFilter(
30  "PickEvents",
31  RunEventList = cms.untracked.string("listrunev")
32  )
33 
34 process.PickEventsPath = cms.Path( process.pickEvents )
35 
36 process.out = cms.OutputModule("PoolOutputModule",
37  outputCommands = cms.untracked.vstring('keep *','drop *_MEtoEDMConverter_*_*'),
38  SelectEvents = cms.untracked.PSet(
39  SelectEvents = cms.vstring('PickEventsPath')
40  ),
41  dataset = cms.untracked.PSet(
42  dataTier = cms.untracked.string('RAW-RECO'),
43  filterName = cms.untracked.string('PickEvents')),
44 
45  fileName = cms.untracked.string("PickEvents.root"),
46 )
47 process.this_is_the_end = cms.EndPath(process.out)