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("TEST3")
0004 
0005 process.source = cms.Source("PoolSource",
0006     fileNames = cms.untracked.vstring(
0007         'file:testDropOnInput3.root'
0008     ),
0009     inputCommands = cms.untracked.vstring(
0010         'keep *',
0011         'drop *_prodA_*_*',
0012         'drop *_K100_*_*',
0013         'drop *_K200_*_*'
0014     ),
0015     dropDescendantsOfDroppedBranches = cms.untracked.bool(True)
0016 )
0017 
0018 process.a1 = cms.EDAnalyzer("TestFindProduct",
0019   inputTags = cms.untracked.VInputTag(
0020     cms.InputTag("prod3")
0021   ),
0022 
0023   inputTagsNotFound = cms.untracked.VInputTag(
0024     cms.InputTag("prod1"),
0025     cms.InputTag("prod2"),
0026     cms.InputTag("prodA"),
0027     cms.InputTag("prodB"),
0028     cms.InputTag("prodC"),
0029     cms.InputTag("prodD"),
0030     cms.InputTag("prodE"),
0031     cms.InputTag("K100"),
0032     cms.InputTag("NK101"),
0033     cms.InputTag("A101"),
0034     cms.InputTag("K102"),
0035     cms.InputTag("K103"),
0036     cms.InputTag("K104"),
0037     cms.InputTag("K200"),
0038     cms.InputTag("K201"),
0039     cms.InputTag("A201"),
0040     cms.InputTag("K202"),
0041     cms.InputTag("K203"),
0042     cms.InputTag("K204")
0043   )
0044 )
0045 
0046 process.test1 = cms.EDAnalyzer("TestParentage",
0047                                inputTag = cms.InputTag("K5"),
0048                                expectedAncestors = cms.vstring("K3", "K4", "NK4", "NK5")
0049 )
0050 
0051 process.test2 = cms.EDAnalyzer("TestParentage",
0052                                inputTag = cms.InputTag("prod3"),
0053                                # prod1 gets converted to an empty string in the TestParentage module
0054                                # because drop on input removes it from the ProductRegistry
0055                                # completely, but its BranchID still appears in the Parentage.
0056                                expectedAncestors = cms.vstring("prod2", ""),
0057                                callGetProvenance = cms.untracked.bool(False)
0058 )
0059 
0060 process.path = cms.Path(process.a1 * process.test1 * process.test2)