Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST11")
0004 
0005 process.load("FWCore.MessageService.MessageLogger_cfi")
0006 process.MessageLogger.cerr.FwkReport.reportEvery = 1000
0007 process.MessageLogger.cerr.threshold = 'ERROR'
0008 
0009 process.maxEvents = cms.untracked.PSet(
0010     input = cms.untracked.int32(1)
0011 )
0012 
0013 process.source = cms.Source("PoolSource",
0014     fileNames = cms.untracked.vstring(
0015         # CAUTION if you recreate the PROD files then you must recreate BOTH
0016         # of these files otherwise you will get exceptions because the GUIDs
0017         # used to check the match of the event in the secondary files will
0018         # not be the same.
0019         'file:testRunMerge.root',
0020         'file:testRunMergeMERGE2.root'
0021     ),
0022     secondaryFileNames = cms.untracked.vstring(
0023         'file:testRunMerge0.root', 
0024         'file:testRunMerge1.root', 
0025         'file:testRunMerge2.root', 
0026         'file:testRunMerge3.root',
0027         'file:testRunMerge4.root',
0028         'file:testRunMerge5.root'
0029     )
0030     , duplicateCheckMode = cms.untracked.string('checkEachRealDataFile')
0031     , noEventSort = cms.untracked.bool(False)
0032 )
0033 
0034 process.testGetterOfProducts = cms.EDFilter("TestGetterOfProducts",
0035     processName = cms.string('PROD'),
0036     expectedInputTagLabels = cms.vstring('A','B','C','D','E','F', 'G', 'H', 'I', 'J', 'K', 'L',
0037                                          'aliasForThingToBeDropped2',
0038                                         'dependsOnThingToBeDropped1',
0039                                         'm1', 'm2', 'm3',
0040                                         'makeThingToBeDropped',
0041                                         'makeThingToBeDropped1',
0042                                         'thingWithMergeProducer',
0043                                         'tryNoPut'
0044                                         ),
0045     expectedLabelsAfterGet = cms.vstring('A','B','C','D','E','F', 'G', 'H', 'I', 'J', 'K', 'L',
0046                                          'aliasForThingToBeDropped2',
0047                                          'dependsOnThingToBeDropped1',
0048                                          'm1', 'm2', 'm3',
0049                                          'makeThingToBeDropped',
0050                                          'thingWithMergeProducer'
0051     )
0052 )
0053 
0054 process.testGetterOfProductsA = cms.EDAnalyzer("TestGetterOfProductsA",
0055     processName = cms.string('PROD'),
0056     branchType = cms.int32(0),
0057     expectedInputTagLabels = cms.vstring('A','B','C','D','E','F', 'G', 'H', 'I', 'J', 'K', 'L',
0058                                         'aliasForThingToBeDropped2',
0059                                         'dependsOnThingToBeDropped1',
0060                                         'm1', 'm2', 'm3',
0061                                         'makeThingToBeDropped',
0062                                         'makeThingToBeDropped1',
0063                                         'thingWithMergeProducer',
0064                                         'tryNoPut'
0065                                         ),
0066     expectedLabelsAfterGet = cms.vstring('A','B','C','D','E','F', 'G', 'H', 'I', 'J', 'K', 'L',
0067                                          'aliasForThingToBeDropped2',
0068                                          'dependsOnThingToBeDropped1',
0069                                          'm1', 'm2', 'm3',
0070                                          'makeThingToBeDropped',
0071                                          'thingWithMergeProducer'
0072     ),
0073     expectedNumberOfThingsWithLabelA = cms.uint32(1)
0074 )
0075 
0076 process.testGetterOfProductsALumi = cms.EDAnalyzer("TestGetterOfProductsA",
0077     processName = cms.string('PROD'),
0078     branchType = cms.int32(1),
0079     expectedInputTagLabels = cms.vstring('A','A','B','B','C','C','D','D','E','E','F','F', 'G','G', 'H','H', 'I','I', 'J','J', 'K','K', 'L','L',
0080                                         'aliasForThingToBeDropped2',
0081                                         'dependsOnThingToBeDropped1','dependsOnThingToBeDropped1',
0082                                         'm1','m1', 'm2','m2', 'm3','m3',
0083                                         'makeThingToBeDropped','makeThingToBeDropped',
0084                                         'makeThingToBeDropped1','makeThingToBeDropped1',
0085                                         'thingWithMergeProducer','thingWithMergeProducer',
0086                                         'tryNoPut','tryNoPut'
0087                                         ),
0088     expectedLabelsAfterGet = cms.vstring('A','A','B','B','C','C','D','D','E','E','F','F', 'G','G', 'H','H', 'I','I', 'J','J', 'K','K', 'L','L',
0089                                          'aliasForThingToBeDropped2',
0090                                          'dependsOnThingToBeDropped1','dependsOnThingToBeDropped1',
0091                                          'm1','m1', 'm2','m2', 'm3','m3',
0092                                          'makeThingToBeDropped','makeThingToBeDropped',
0093                                          'makeThingToBeDropped1','makeThingToBeDropped1',
0094                                          'thingWithMergeProducer','thingWithMergeProducer'
0095     ),
0096     expectedNumberOfThingsWithLabelA = cms.uint32(2)
0097 )
0098 
0099 process.testGetterOfProductsARun = cms.EDAnalyzer("TestGetterOfProductsA",
0100     processName = cms.string('PROD'),
0101     branchType = cms.int32(2),
0102     expectedInputTagLabels = cms.vstring('A','A','B','B','C','C','D','D','E','E','F','F', 'G','G', 'H','H', 'I','I', 'J','J', 'K','K', 'L','L',
0103                                         'aliasForThingToBeDropped2',
0104                                         'dependsOnThingToBeDropped1','dependsOnThingToBeDropped1',
0105                                         'm1','m1', 'm2','m2', 'm3','m3',
0106                                         'makeThingToBeDropped','makeThingToBeDropped',
0107                                         'makeThingToBeDropped1','makeThingToBeDropped1',
0108                                         'thingWithMergeProducer','thingWithMergeProducer',
0109                                         'tryNoPut','tryNoPut'
0110                                         ),
0111     expectedLabelsAfterGet = cms.vstring('A','A','B','B','C','C','D','D','E','E','F','F', 'G','G', 'H','H', 'I','I', 'J','J', 'K','K', 'L','L',
0112                                          'aliasForThingToBeDropped2',
0113                                          'dependsOnThingToBeDropped1','dependsOnThingToBeDropped1',
0114                                          'm1','m1', 'm2','m2', 'm3','m3',
0115                                          'makeThingToBeDropped','makeThingToBeDropped',
0116                                          'makeThingToBeDropped1','makeThingToBeDropped1',
0117                                          'thingWithMergeProducer','thingWithMergeProducer'
0118     ),
0119     expectedNumberOfThingsWithLabelA = cms.uint32(2)
0120 )
0121 
0122 process.path1 = cms.Path(process.testGetterOfProducts*process.testGetterOfProductsA*process.testGetterOfProductsALumi*process.testGetterOfProductsARun)