Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:28:32

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST2")
0004 
0005 process.options = cms.untracked.PSet(
0006   fileMode = cms.untracked.string('NOMERGE')
0007 )
0008 
0009 process.source = cms.Source("PoolSource",
0010     fileNames = cms.untracked.vstring(
0011         'file:testDropOnInput1_1.root',
0012         'file:testDropOnInput1_2.root'
0013     ),
0014     inputCommands = cms.untracked.vstring(
0015         'keep *',
0016         'drop *_prod1_*_*'
0017     ),
0018     dropDescendantsOfDroppedBranches = cms.untracked.bool(True)
0019 )
0020 
0021 process.prodD = cms.EDProducer("AddIntsProducer",
0022     labels = cms.VInputTag("prodC"),
0023     onlyGetOnEvent = cms.untracked.uint32(1)
0024 )
0025 
0026 process.prodE = cms.EDProducer("AddIntsProducer",
0027     labels = cms.VInputTag("prodD"),
0028     onlyGetOnEvent = cms.untracked.uint32(2)
0029 )
0030 
0031 process.K103 = cms.EDProducer("AddIntsProducer",
0032     labels = cms.VInputTag("A101")
0033 )
0034 
0035 process.K203 = cms.EDProducer("AddIntsProducer",
0036     labels = cms.VInputTag("K201")
0037 )
0038 
0039 process.out = cms.OutputModule("PoolOutputModule",
0040     fileName = cms.untracked.string('testDropOnInput2.root')
0041 )
0042 
0043 process.a1 = cms.EDAnalyzer("TestFindProduct",
0044   inputTags = cms.untracked.VInputTag(
0045     cms.InputTag("prodA"),
0046     cms.InputTag("prodB"),
0047     cms.InputTag("prodC")
0048   ),
0049   inputTagsNotFound = cms.untracked.VInputTag(
0050     cms.InputTag("prod1"),
0051     cms.InputTag("prod2"),
0052     cms.InputTag("prod3")
0053   )
0054 )
0055 
0056 process.path = cms.Path(process.prodD + process.prodE + process.a1)
0057 process.path4 = cms.Path(process.K103 + process.K203)
0058 
0059 process.endpath = cms.EndPath(process.out)