Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST3")
0004 
0005 process.options = cms.untracked.PSet(
0006     numberOfStreams = cms.untracked.uint32(1)
0007 )
0008 
0009 process.maxEvents = cms.untracked.PSet(
0010     input = cms.untracked.int32(3)
0011 )
0012 
0013 process.source = cms.Source("PoolSource",
0014   fileNames = cms.untracked.vstring('file:testThinningTest2.root')
0015   #secondaryFileNames = cms.untracked.vstring('file:testSeriesOfProcessesPROD1.root')
0016 )
0017 
0018 process.WhatsItESProducer = cms.ESProducer("WhatsItESProducer")
0019 
0020 process.DoodadESSource = cms.ESSource("DoodadESSource")
0021 
0022 process.thinningThingProducerE2 = cms.EDProducer("ThinningThingProducer",
0023     inputTag = cms.InputTag('thinningThingProducerD2alias'),
0024     trackTag = cms.InputTag('trackOfThingsProducerE2'),
0025     offsetToThinnedKey = cms.uint32(10),
0026     expectedCollectionSize = cms.uint32(9)
0027 )
0028 
0029 process.thinningThingProducerE2alias = cms.EDAlias(
0030   thinningThingProducerE2 = cms.VPSet(
0031     cms.PSet(type = cms.string('edmtestThings'))
0032   )
0033 )
0034 
0035 process.thinningThingProducerF2 = cms.EDProducer("ThinningThingProducer",
0036     inputTag = cms.InputTag('thinningThingProducerD2alias'),
0037     trackTag = cms.InputTag('trackOfThingsProducerF2'),
0038     offsetToThinnedKey = cms.uint32(10),
0039     expectedCollectionSize = cms.uint32(9)
0040 )
0041 
0042 process.thinningThingProducerF2alias = cms.EDAlias(
0043   thinningThingProducerF2 = cms.VPSet(
0044     cms.PSet(type = cms.string('edmtestThings'))
0045   )
0046 )
0047 
0048 process.testA = cms.EDAnalyzer("ThinningTestAnalyzer",
0049     parentTag = cms.InputTag('thingProducer', '', 'PROD'),
0050     thinnedTag = cms.InputTag('thinningThingProducerA'),
0051     associationTag = cms.InputTag('thinningThingProducerA'),
0052     trackTag = cms.InputTag('trackOfThingsProducerA'),
0053     parentWasDropped = cms.bool(True),
0054     expectedThinnedContent = cms.vint32(0, 1, 2, 3, 4, 5, 6, 7, 8),
0055     expectedIndexesIntoParent = cms.vuint32(0, 1, 2, 3, 4, 5, 6, 7, 8),
0056     expectedValues = cms.vint32(0, 1, 2, 3, 4, 5, 6, 7, 8)
0057 )
0058 
0059 process.testB = cms.EDAnalyzer("ThinningTestAnalyzer",
0060     parentTag = cms.InputTag('thinningThingProducerA'),
0061     thinnedTag = cms.InputTag('thinningThingProducerB'),
0062     associationTag = cms.InputTag('thinningThingProducerB'),
0063     trackTag = cms.InputTag('trackOfThingsProducerB'),
0064     expectedParentContent = cms.vint32( 0,  1,  2,  3,  4,  5,  6,  7,  8),
0065     expectedThinnedContent = cms.vint32(0, 1, 2, 3),
0066     expectedIndexesIntoParent = cms.vuint32(0, 1, 2, 3),
0067     expectedValues = cms.vint32(0, 1, 2, 3)
0068 )
0069 
0070 process.testC = cms.EDAnalyzer("ThinningTestAnalyzer",
0071     parentTag = cms.InputTag('thinningThingProducerA'),
0072     thinnedTag = cms.InputTag('thinningThingProducerC'),
0073     associationTag = cms.InputTag('thinningThingProducerC'),
0074     trackTag = cms.InputTag('trackOfThingsProducerC'),
0075     expectedParentContent = cms.vint32( 0,  1,  2,  3,  4,  5,  6,  7,  8),
0076     expectedThinnedContent = cms.vint32(4, 5, 6, 7),
0077     expectedIndexesIntoParent = cms.vuint32(4, 5, 6, 7),
0078     expectedValues = cms.vint32(4, 5, 6, 7)
0079 )
0080 
0081 process.testD = cms.EDAnalyzer("ThinningTestAnalyzer",
0082     parentTag = cms.InputTag('thingProducer', '', 'PROD'),
0083     thinnedTag = cms.InputTag('thinningThingProducerD', '', 'PROD'),
0084     associationTag = cms.InputTag('thinningThingProducerD', '', 'PROD'),
0085     trackTag = cms.InputTag('trackOfThingsProducerD'),
0086     parentWasDropped = cms.bool(True),
0087     thinnedWasDropped = cms.bool(True),
0088     expectedIndexesIntoParent = cms.vuint32(10, 11, 12, 13, 14, 15, 16, 17, 18),
0089     expectedValues = cms.vint32(10, 11, 12, 13, 14, 15, 16, 17, -1)
0090 )
0091 
0092 process.testDPlus = cms.EDAnalyzer("ThinningTestAnalyzer",
0093     parentTag = cms.InputTag('thingProducer'),
0094     thinnedTag = cms.InputTag('thinningThingProducerD', '', 'PROD'),
0095     associationTag = cms.InputTag('thinningThingProducerD', '', 'PROD'),
0096     trackTag = cms.InputTag('trackOfThingsProducerDPlus'),
0097     parentWasDropped = cms.bool(True),
0098     thinnedWasDropped = cms.bool(True),
0099     expectedIndexesIntoParent = cms.vuint32(10, 11, 12, 13, 14, 15, 16, 17, 18),
0100     expectedValues = cms.vint32(10, 11, 12, 13, 14, 15, 16, 17, -1, 21)
0101 )
0102 
0103 process.testE = cms.EDAnalyzer("ThinningTestAnalyzer",
0104     parentTag = cms.InputTag('thinningThingProducerD', '', 'PROD'),
0105     thinnedTag = cms.InputTag('thinningThingProducerE'),
0106     associationTag = cms.InputTag('thinningThingProducerE'),
0107     trackTag = cms.InputTag('trackOfThingsProducerE'),
0108     parentWasDropped = cms.bool(True),
0109     expectedThinnedContent = cms.vint32(10, 11, 12, 13, 14),
0110     expectedIndexesIntoParent = cms.vuint32(0, 1, 2, 3, 4),
0111     expectedValues = cms.vint32(10, 11, 12, 13, 14)
0112 )
0113 
0114 process.testF = cms.EDAnalyzer("ThinningTestAnalyzer",
0115     parentTag = cms.InputTag('thinningThingProducerD', '', 'PROD'),
0116     thinnedTag = cms.InputTag('thinningThingProducerF'),
0117     associationTag = cms.InputTag('thinningThingProducerF'),
0118     trackTag = cms.InputTag('trackOfThingsProducerF'),
0119     parentWasDropped = cms.bool(True),
0120     expectedThinnedContent = cms.vint32(14, 15, 16, 17),
0121     expectedIndexesIntoParent = cms.vuint32(4, 5, 6, 7),
0122     expectedValues = cms.vint32(14, 15, 16, 17)
0123 )
0124 
0125 process.testG = cms.EDAnalyzer("ThinningTestAnalyzer",
0126     parentTag = cms.InputTag('thingProducer', '', 'PROD'),
0127     thinnedTag = cms.InputTag('thinningThingProducerG'),
0128     associationTag = cms.InputTag('thinningThingProducerG'),
0129     trackTag = cms.InputTag('trackOfThingsProducerG'),
0130     parentWasDropped = cms.bool(True),
0131     expectedThinnedContent = cms.vint32(20, 21, 22, 23, 24, 25, 26, 27, 28),
0132     expectedIndexesIntoParent = cms.vuint32(20, 21, 22, 23, 24, 25, 26, 27, 28),
0133     expectedValues = cms.vint32(20, 21, 22, 23, 24, 25, 26, 27, 28)
0134 )
0135 
0136 process.testH = cms.EDAnalyzer("ThinningTestAnalyzer",
0137     parentTag = cms.InputTag('thinningThingProducerG'),
0138     thinnedTag = cms.InputTag('thinningThingProducerH'),
0139     associationTag = cms.InputTag('thinningThingProducerH'),
0140     trackTag = cms.InputTag('trackOfThingsProducerH'),
0141     thinnedWasDropped = cms.bool(True),
0142     expectedParentContent = cms.vint32( 20,  21,  22,  23,  24,  25,  26,  27,  28),
0143     associationShouldBeDropped = cms.bool(True),
0144     expectedValues = cms.vint32(20, 21, 22, 23)
0145 )
0146 
0147 process.testI = cms.EDAnalyzer("ThinningTestAnalyzer",
0148     parentTag = cms.InputTag('thinningThingProducerG'),
0149     thinnedTag = cms.InputTag('thinningThingProducerI'),
0150     associationTag = cms.InputTag('thinningThingProducerI'),
0151     trackTag = cms.InputTag('trackOfThingsProducerI'),
0152     thinnedWasDropped = cms.bool(True),
0153     associationShouldBeDropped = cms.bool(True),
0154     expectedParentContent = cms.vint32( 20,  21,  22,  23,  24,  25,  26,  27,  28),
0155     expectedValues = cms.vint32(24, 25, 26, 27)
0156 )
0157 
0158 process.testJ = cms.EDAnalyzer("ThinningTestAnalyzer",
0159     parentTag = cms.InputTag('thingProducer', '', 'PROD'),
0160     thinnedTag = cms.InputTag('thinningThingProducerJ'),
0161     associationTag = cms.InputTag('thinningThingProducerJ'),
0162     trackTag = cms.InputTag('trackOfThingsProducerJ'),
0163     parentWasDropped = cms.bool(True),
0164     thinnedWasDropped = cms.bool(True),
0165     associationShouldBeDropped = cms.bool(True),
0166     expectedValues = cms.vint32(-1, -1, -1, -1, -1, -1, -1, -1, -1)
0167 )
0168 
0169 process.testK = cms.EDAnalyzer("ThinningTestAnalyzer",
0170     parentTag = cms.InputTag('thinningThingProducerJ'),
0171     thinnedTag = cms.InputTag('thinningThingProducerK'),
0172     associationTag = cms.InputTag('thinningThingProducerK'),
0173     trackTag = cms.InputTag('trackOfThingsProducerK'),
0174     parentWasDropped = cms.bool(True),
0175     thinnedWasDropped = cms.bool(True),
0176     associationShouldBeDropped = cms.bool(True),
0177     expectedValues = cms.vint32(-1, -1, -1, -1)
0178 )
0179 
0180 process.testL = cms.EDAnalyzer("ThinningTestAnalyzer",
0181     parentTag = cms.InputTag('thinningThingProducerJ'),
0182     thinnedTag = cms.InputTag('thinningThingProducerL'),
0183     associationTag = cms.InputTag('thinningThingProducerL'),
0184     trackTag = cms.InputTag('trackOfThingsProducerL'),
0185     parentWasDropped = cms.bool(True),
0186     thinnedWasDropped = cms.bool(True),
0187     associationShouldBeDropped = cms.bool(True),
0188     expectedValues = cms.vint32(-1, -1, -1, -1)
0189 )
0190 
0191 process.testM = cms.EDAnalyzer("ThinningTestAnalyzer",
0192     parentTag = cms.InputTag('thingProducer', '', 'PROD'),
0193     thinnedTag = cms.InputTag('thinningThingProducerM'),
0194     associationTag = cms.InputTag('thinningThingProducerM'),
0195     trackTag = cms.InputTag('trackOfThingsProducerM'),
0196     parentWasDropped = cms.bool(True),
0197     thinnedWasDropped = cms.bool(True),
0198     expectedIndexesIntoParent = cms.vuint32(40, 41, 42, 43, 44, 45, 46, 47, 48),
0199     expectedValues = cms.vint32(-1, -1, -1, -1, 44, 45, 46, 47, -1)
0200 )
0201 
0202 process.testN = cms.EDAnalyzer("ThinningTestAnalyzer",
0203     parentTag = cms.InputTag('thinningThingProducerM'),
0204     thinnedTag = cms.InputTag('thinningThingProducerN'),
0205     associationTag = cms.InputTag('thinningThingProducerN'),
0206     trackTag = cms.InputTag('trackOfThingsProducerN'),
0207     parentWasDropped = cms.bool(True),
0208     thinnedWasDropped = cms.bool(True),
0209     associationShouldBeDropped = cms.bool(True),
0210     expectedValues = cms.vint32(-1, -1, -1, -1)
0211 )
0212 
0213 process.testO = cms.EDAnalyzer("ThinningTestAnalyzer",
0214     parentTag = cms.InputTag('thinningThingProducerM'),
0215     thinnedTag = cms.InputTag('aliasO'),
0216     associationTag = cms.InputTag('thinningThingProducerO'),
0217     trackTag = cms.InputTag('trackOfThingsProducerO'),
0218     parentWasDropped = cms.bool(True),
0219     thinnedIsAlias = cms.bool(True),
0220     expectedThinnedContent = cms.vint32(44, 45, 46, 47),
0221     expectedIndexesIntoParent = cms.vuint32(4, 5, 6, 7),
0222     expectedValues = cms.vint32(44, 45, 46, 47)
0223 )
0224 
0225 process.out = cms.OutputModule("PoolOutputModule",
0226     fileName = cms.untracked.string('testThinningTest3.root'),
0227     outputCommands = cms.untracked.vstring(
0228         'keep *',
0229         'drop *_thingProducer2alias_*_*',
0230         'drop *_thinningThingProducerD2alias_*_*',
0231         'drop *_thinningThingProducerE2_*_*',
0232         'drop *_thinningThingProducerF2_*_*',
0233         'drop *_thinningThingProducerA_*_*',
0234         'drop *_thinningThingProducerB_*_*',
0235         'drop *_thinningThingProducerC_*_*',
0236         'drop *_thinningThingProducerE_*_*',
0237         'drop *_thinningThingProducerF_*_*',
0238         'drop *_thinningThingProducerG_*_*',
0239         'drop *_thinningThingProducerO_*_*'
0240     )
0241 )
0242 
0243 process.outSlim = cms.OutputModule("PoolOutputModule",
0244     fileName = cms.untracked.string('testThinningTest3Slimming.root'),
0245     outputCommands = cms.untracked.vstring(
0246         'keep *',
0247         'drop *_thingProducer2alias_*_*',
0248         'drop *_aliasO_*_*',
0249         'drop *_thinningThingProducer*_*_*',
0250     )
0251 )
0252 
0253 process.p = cms.Path(process.thinningThingProducerE2 *
0254                      process.thinningThingProducerF2 *
0255                      process.testA *
0256                      process.testB *
0257                      process.testC *
0258                      process.testD *
0259                      process.testDPlus *
0260                      process.testE *
0261                      process.testF *
0262                      process.testG *
0263                      process.testH *
0264                      process.testI *
0265                      process.testJ *
0266                      process.testK *
0267                      process.testL *
0268                      process.testM *
0269                      process.testN *
0270                      process.testO
0271 )
0272 
0273 process.endPath = cms.EndPath(process.out*process.outSlim)