Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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