CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/DPGAnalysis/Skims/python/skim_noscrape_cfg.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 process = cms.Process("SKIM")
00004 process.load("FWCore.MessageLogger.MessageLogger_cfi")
00005 
00006 
00007 process.skimming = cms.EDFilter("FilterOutScraping",
00008                                 applyfilter = cms.untracked.bool(True),
00009                                 debugOn = cms.untracked.bool(True),
00010                                 numtrack = cms.untracked.uint32(10),
00011                                 thresh = cms.untracked.double(0.2)
00012                                 )
00013 
00014 
00015 process.configurationMetadata = cms.untracked.PSet(
00016     version = cms.untracked.string('$Revision: 1.1 $'),
00017     name = cms.untracked.string('$Source: /local/reps/CMSSW/CMSSW/DPGAnalysis/Skims/python/skim_noscrape_cfg.py,v $'),
00018     annotation = cms.untracked.string('NoScrape skim')
00019 )
00020 
00021 process.maxEvents = cms.untracked.PSet(
00022     input = cms.untracked.int32(1000)
00023 )
00024 
00025 process.out = cms.OutputModule("PoolOutputModule",
00026     fileName = cms.untracked.string('mytest_noscraping.root'),
00027     outputCommands = cms.untracked.vstring('keep *','drop *_MEtoEDMConverter_*_*'),
00028     dataset = cms.untracked.PSet(
00029               dataTier = cms.untracked.string('RECO'),
00030               filterName = cms.untracked.string('FilterOutScraping')),
00031     SelectEvents = cms.untracked.PSet(
00032         SelectEvents = cms.vstring('p')
00033     )
00034 )
00035 
00036 process.p = cms.Path(process.skimming)
00037 process.e = cms.EndPath(process.out)
00038 
00039 myfilelist = cms.untracked.vstring()
00040 
00041 #myfilelist.extend( ['file:evenmorefile1.root','file:evenmorefile2.root'] )
00042 #process.source = cms.Source("PoolSource",
00043 #    debugVerbosity = cms.untracked.uint32(0),
00044 #    debugFlag = cms.untracked.bool(False),
00045 #    fileNames = myfilelist
00046 #))
00047 myfilelist.extend( [
00048 '/store/caf/user/azzi/BSC_activity_2.root'
00049 ] )
00050 process.source = cms.Source('PoolSource',
00051     debugVerbosity = cms.untracked.uint32(0),
00052     debugFlag = cms.untracked.bool(False),
00053     fileNames = myfilelist )
00054