Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("PROD1")
0004 
0005 process.Tracer = cms.Service('Tracer',
0006                              dumpContextForLabels = cms.untracked.vstring('intProducerA', 'a1'),
0007                              dumpNonModuleContext = cms.untracked.bool(True)
0008 )
0009 
0010 process.MessageLogger = cms.Service("MessageLogger",
0011     cout = cms.untracked.PSet(
0012         Tracer = cms.untracked.PSet(
0013             limit = cms.untracked.int32(100000000)
0014         ),
0015         default = cms.untracked.PSet(
0016             limit = cms.untracked.int32(0)
0017         ),
0018         enable = cms.untracked.bool(True)
0019     )
0020 )
0021 
0022 process.options = cms.untracked.PSet(
0023     numberOfStreams = cms.untracked.uint32(1),
0024     numberOfConcurrentRuns = cms.untracked.uint32(1),
0025     numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(1)
0026 )
0027 
0028 process.source = cms.Source("IntSource")
0029 process.maxEvents = cms.untracked.PSet(
0030     input = cms.untracked.int32(3)
0031 )
0032 
0033 process.out = cms.OutputModule("PoolOutputModule",
0034     fileName = cms.untracked.string('testGetBy1.root'),
0035     outputCommands = cms.untracked.vstring(
0036         'keep *', 
0037         'drop *_intProducerA_*_*'
0038     )
0039 )
0040 
0041 process.a1 = cms.EDAnalyzer("TestFindProduct",
0042   inputTags = cms.untracked.VInputTag( cms.InputTag("source") ),
0043   expectedSum = cms.untracked.int32(530021),
0044   inputTagsNotFound = cms.untracked.VInputTag(
0045     cms.InputTag("source", processName=cms.InputTag.skipCurrentProcess()),
0046     cms.InputTag("intProducer", processName=cms.InputTag.skipCurrentProcess()),
0047     cms.InputTag("intProducerU", processName=cms.InputTag.skipCurrentProcess())
0048   ),
0049   inputTagsBeginProcessBlock = cms.untracked.VInputTag(
0050     cms.InputTag("intProducerBeginProcessBlock"),
0051   ),
0052   inputTagsEndProcessBlock = cms.untracked.VInputTag(
0053     cms.InputTag("intProducerEndProcessBlock"),
0054   ),
0055   inputTagsEndProcessBlock2 = cms.untracked.VInputTag(
0056     cms.InputTag("intProducerEndProcessBlock", "two"),
0057   ),
0058   inputTagsEndProcessBlock3 = cms.untracked.VInputTag(
0059     cms.InputTag("intProducerEndProcessBlock", "three"),
0060   ),
0061   inputTagsEndProcessBlock4 = cms.untracked.VInputTag(
0062     cms.InputTag("intProducerEndProcessBlock", "four"),
0063   ),
0064   testGetterOfProducts = cms.untracked.bool(True)
0065 )
0066 
0067 process.a2 = cms.EDAnalyzer("TestFindProduct",
0068   inputTags = cms.untracked.VInputTag( cms.InputTag("intProducerA") ),
0069   expectedSum = cms.untracked.int32(300)
0070 )
0071 
0072 process.a3 = cms.EDAnalyzer("TestFindProduct",
0073   inputTags = cms.untracked.VInputTag( cms.InputTag("aliasForInt") ),
0074   expectedSum = cms.untracked.int32(300)
0075 )
0076 
0077 process.intProducer = cms.EDProducer("IntProducer", ivalue = cms.int32(1))
0078 
0079 process.intProducerU = cms.EDProducer("IntProducer", ivalue = cms.int32(10))
0080 
0081 process.intProducerA = cms.EDProducer("IntProducer", ivalue = cms.int32(100))
0082 
0083 process.aliasForInt = cms.EDAlias(
0084   intProducerA  = cms.VPSet(
0085     cms.PSet(type = cms.string('edmtestIntProduct')
0086     )
0087   )
0088 )
0089 
0090 process.intVectorProducer = cms.EDProducer("IntVectorProducer",
0091   count = cms.int32(9),
0092   ivalue = cms.int32(11)
0093 )
0094 
0095 process.intProducerB = cms.EDProducer("IntProducer", ivalue = cms.int32(1000))
0096 
0097 process.intProducerBeginProcessBlock = cms.EDProducer("IntProducerBeginProcessBlock", ivalue = cms.int32(10000))
0098 
0099 process.intProducerEndProcessBlock = cms.EDProducer("IntProducerEndProcessBlock", ivalue = cms.int32(100000))
0100 
0101 process.t = cms.Task(process.intProducerU,
0102                      process.intProducerA,
0103                      process.intProducerB,
0104                      process.intVectorProducer,
0105                      process.intProducerBeginProcessBlock,
0106                      process.intProducerEndProcessBlock
0107 )
0108 
0109 process.p = cms.Path(process.intProducer * process.a1 * process.a2 * process.a3, process.t)
0110 
0111 process.e = cms.EndPath(process.out)
0112 
0113 copyProcess = cms.Process("COPY")
0114 process.addSubProcess(cms.SubProcess(copyProcess,
0115     outputCommands = cms.untracked.vstring(
0116         "keep *", 
0117         "drop *_intProducerA_*_*"
0118     )
0119 ))