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.source = cms.Source("PoolSource",
0006     fileNames = cms.untracked.vstring(
0007         'file:testDropOnInput1_1.root',
0008         'file:testDropOnInput1_2.root'
0009     ),
0010     inputCommands = cms.untracked.vstring(
0011         'keep *',
0012         'drop *_prod1_*_*'
0013     ),
0014     dropDescendantsOfDroppedBranches = cms.untracked.bool(False)
0015 )
0016 
0017 process.prodD = cms.EDProducer("AddIntsProducer",
0018     labels = cms.VInputTag("prodC"),
0019     onlyGetOnEvent = cms.untracked.uint32(1)
0020 )
0021 
0022 process.prodE = cms.EDProducer("AddIntsProducer",
0023     labels = cms.VInputTag("prodD"),
0024     onlyGetOnEvent = cms.untracked.uint32(2)
0025 )
0026 
0027 process.K1 = cms.EDProducer("AddIntsProducer",
0028     labels = cms.VInputTag()
0029 )
0030 
0031 process.K2 = cms.EDProducer("AddIntsProducer",
0032     labels = cms.VInputTag()
0033 )
0034 
0035 process.NK1 = cms.EDProducer("AddIntsProducer",
0036     labels = cms.VInputTag("K1", "K2")
0037 )
0038 
0039 process.NK2 = cms.EDProducer("AddIntsProducer",
0040     labels = cms.VInputTag("NK1")
0041 )
0042 
0043 process.NK3 = cms.EDProducer("AddIntsProducer",
0044     labels = cms.VInputTag("NK2")
0045 )
0046 
0047 process.K3 = cms.EDProducer("AddIntsProducer",
0048     labels = cms.VInputTag()
0049 )
0050 
0051 process.K4 = cms.EDProducer("AddIntsProducer",
0052     labels = cms.VInputTag()
0053 )
0054 
0055 process.NK4 = cms.EDProducer("AddIntsProducer",
0056     labels = cms.VInputTag("K3", "K4")
0057 )
0058 
0059 process.NK5 = cms.EDProducer("AddIntsProducer",
0060     labels = cms.VInputTag("NK4")
0061 )
0062 
0063 process.K5 = cms.EDProducer("AddIntsProducer",
0064     labels = cms.VInputTag("NK5")
0065 )
0066 
0067 process.NK6 = cms.EDProducer("AddIntsProducer",
0068     labels = cms.VInputTag("K4")
0069 )
0070 
0071 process.NK7 = cms.EDProducer("AddIntsProducer",
0072     labels = cms.VInputTag("NK6")
0073 )
0074 
0075 process.NK8 = cms.EDProducer("AddIntsProducer",
0076     labels = cms.VInputTag("NK6")
0077 )
0078 
0079 process.K103 = cms.EDProducer("AddIntsProducer",
0080     labels = cms.VInputTag("A101")
0081 )
0082 
0083 process.K203 = cms.EDProducer("AddIntsProducer",
0084     labels = cms.VInputTag("K201")
0085 )
0086 
0087 process.out = cms.OutputModule("PoolOutputModule",
0088     fileName = cms.untracked.string('testDropOnInput3.root'),
0089     outputCommands = cms.untracked.vstring(
0090         'keep *', 
0091         'drop *_NK*_*_*'
0092     )
0093 )
0094 
0095 process.a1 = cms.EDAnalyzer("TestFindProduct",
0096   inputTags = cms.untracked.VInputTag(
0097       cms.InputTag("prod3"),
0098       cms.InputTag("prodA"),
0099       cms.InputTag("prodB"),
0100       cms.InputTag("prodC"),
0101       cms.InputTag("prodD"),
0102       cms.InputTag("prodE")
0103   ),
0104   inputTagsNotFound = cms.untracked.VInputTag(
0105       cms.InputTag("prod1"),
0106       cms.InputTag("prod2")
0107   )
0108 )
0109 
0110 process.test1 = cms.EDAnalyzer("TestParentage",
0111                                inputTag = cms.InputTag("A101"),
0112                                expectedAncestors = cms.vstring("K100")
0113 )
0114 
0115 process.test2 = cms.EDAnalyzer("TestParentage",
0116                                inputTag = cms.InputTag("K100"),
0117                                expectedAncestors = cms.vstring()
0118 )
0119 
0120 process.test3 = cms.EDAnalyzer("TestParentage",
0121                                inputTag = cms.InputTag("K102"),
0122                                expectedAncestors = cms.vstring("K100", "NK101")
0123 )
0124 
0125 process.test4 = cms.EDAnalyzer("TestParentage",
0126                                inputTag = cms.InputTag("K103"),
0127                                expectedAncestors = cms.vstring("K100", "NK101")
0128 )
0129 
0130 process.test5 = cms.EDAnalyzer("TestParentage",
0131                                inputTag = cms.InputTag("K104"),
0132                                expectedAncestors = cms.vstring("K100", "NK101")
0133 )
0134 
0135 process.path1 = cms.Path(process.prodD + process.prodE + process.a1)
0136 process.path2 = cms.Path(process.K1 + process.K2 + process.NK1 + process.NK2 + process.NK3)
0137 process.path3 = cms.Path(process.K3 + process.K4 + process.NK4 + process.NK5 +
0138                          process.K5 + process.NK6 + process.NK7 +
0139                          process.NK8)
0140 process.path4 = cms.Path(process.K103 + process.K203)
0141 
0142 process.endpath = cms.EndPath(process.out * process.test1 * process.test2 *
0143                               process.test3 * process.test4 * process.test5)