CMS 3D CMS Logo

skim_noscrape_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process("SKIM")
4 process.load("FWCore.MessageLogger.MessageLogger_cfi")
5 
6 
7 process.skimming = cms.EDFilter("FilterOutScraping",
8  applyfilter = cms.untracked.bool(True),
9  debugOn = cms.untracked.bool(True),
10  numtrack = cms.untracked.uint32(10),
11  thresh = cms.untracked.double(0.2)
12  )
13 
14 
15 process.configurationMetadata = cms.untracked.PSet(
16  version = cms.untracked.string('$Revision: 1.1 $'),
17  name = cms.untracked.string('$Source: /cvs_server/repositories/CMSSW/CMSSW/DPGAnalysis/Skims/python/skim_noscrape_cfg.py,v $'),
18  annotation = cms.untracked.string('NoScrape skim')
19 )
20 
21 process.maxEvents = cms.untracked.PSet(
22  input = cms.untracked.int32(1000)
23 )
24 
25 process.out = cms.OutputModule("PoolOutputModule",
26  fileName = cms.untracked.string('mytest_noscraping.root'),
27  outputCommands = cms.untracked.vstring('keep *','drop *_MEtoEDMConverter_*_*'),
28  dataset = cms.untracked.PSet(
29  dataTier = cms.untracked.string('RECO'),
30  filterName = cms.untracked.string('FilterOutScraping')),
31  SelectEvents = cms.untracked.PSet(
32  SelectEvents = cms.vstring('p')
33  )
34 )
35 
36 process.p = cms.Path(process.skimming)
37 process.e = cms.EndPath(process.out)
38 
39 myfilelist = cms.untracked.vstring()
40 
41 #myfilelist.extend( ['file:evenmorefile1.root','file:evenmorefile2.root'] )
42 #process.source = cms.Source("PoolSource",
43 # debugVerbosity = cms.untracked.uint32(0),
44 # debugFlag = cms.untracked.bool(False),
45 # fileNames = myfilelist
46 #))
47 myfilelist.extend( [
48 '/store/caf/user/azzi/BSC_activity_2.root'
49 ] )
50 process.source = cms.Source('PoolSource',
51  debugVerbosity = cms.untracked.uint32(0),
52  debugFlag = cms.untracked.bool(False),
53  fileNames = myfilelist )
54