Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:06:47

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("SKIM")
0004 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0005 
0006 
0007 process.skimming = cms.EDFilter("FilterOutScraping",
0008                                 applyfilter = cms.untracked.bool(True),
0009                                 debugOn = cms.untracked.bool(True),
0010                                 numtrack = cms.untracked.uint32(10),
0011                                 thresh = cms.untracked.double(0.2)
0012                                 )
0013 
0014 
0015 process.configurationMetadata = cms.untracked.PSet(
0016     version = cms.untracked.string('$Revision: 1.1 $'),
0017     name = cms.untracked.string('$Source: /cvs_server/repositories/CMSSW/CMSSW/DPGAnalysis/Skims/python/skim_noscrape_cfg.py,v $'),
0018     annotation = cms.untracked.string('NoScrape skim')
0019 )
0020 
0021 process.maxEvents = cms.untracked.PSet(
0022     input = cms.untracked.int32(1000)
0023 )
0024 
0025 process.out = cms.OutputModule("PoolOutputModule",
0026     fileName = cms.untracked.string('mytest_noscraping.root'),
0027     outputCommands = cms.untracked.vstring('keep *','drop *_MEtoEDMConverter_*_*'),
0028     dataset = cms.untracked.PSet(
0029               dataTier = cms.untracked.string('RECO'),
0030               filterName = cms.untracked.string('FilterOutScraping')),
0031     SelectEvents = cms.untracked.PSet(
0032         SelectEvents = cms.vstring('p')
0033     )
0034 )
0035 
0036 process.p = cms.Path(process.skimming)
0037 process.e = cms.EndPath(process.out)
0038 
0039 myfilelist = cms.untracked.vstring()
0040 
0041 #myfilelist.extend( ['file:evenmorefile1.root','file:evenmorefile2.root'] )
0042 #process.source = cms.Source("PoolSource",
0043 #    debugVerbosity = cms.untracked.uint32(0),
0044 #    debugFlag = cms.untracked.bool(False),
0045 #    fileNames = myfilelist
0046 #))
0047 myfilelist.extend( [
0048 '/store/caf/user/azzi/BSC_activity_2.root'
0049 ] )
0050 process.source = cms.Source('PoolSource',
0051     debugVerbosity = cms.untracked.uint32(0),
0052     debugFlag = cms.untracked.bool(False),
0053     fileNames = myfilelist )
0054