-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix esConsumes() for an EDModule that consumes EDProduct with @curren…
…tProcess
- Loading branch information
Showing
5 changed files
with
75 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
FWCore/Integration/test/EventSetupTestCurrentProcess_cfg.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
process = cms.Process("TEST") | ||
|
||
process.load("FWCore.Framework.test.cmsExceptionsFatal_cff") | ||
|
||
process.maxEvents = cms.untracked.PSet( | ||
input = cms.untracked.int32(3) | ||
) | ||
|
||
process.source = cms.Source("EmptySource", | ||
numberEventsInRun = cms.untracked.uint32(3) | ||
) | ||
|
||
process.WhatsItESProducer = cms.ESProducer("WhatsItESProducer") | ||
|
||
process.DoodadESSource = cms.ESSource("DoodadESSource") | ||
|
||
process.emptyESSourceK = cms.ESSource("EmptyESSource", | ||
recordName = cms.string("ESTestRecordK"), | ||
firstValid = cms.vuint32(1,2,3), | ||
iovIsRunNotTime = cms.bool(True) | ||
) | ||
|
||
process.testDataProxyProviderJ = cms.ESProducer("ESTestDataProxyProviderJ", | ||
expectedCacheIds = cms.untracked.vuint32(2, 3, 4) | ||
) | ||
|
||
process.intProducer = cms.EDProducer("IntProducer", ivalue = cms.int32(1)) | ||
|
||
process.esAnalyzerL1 = cms.EDAnalyzer("ESTestAnalyzerL", | ||
src = cms.InputTag("intProducer") | ||
) | ||
process.esAnalyzerL2 = cms.EDAnalyzer("ESTestAnalyzerL", | ||
src = cms.InputTag("intProducer", "", cms.InputTag.currentProcess()) | ||
) | ||
|
||
process.p = cms.Path( | ||
process.intProducer+ | ||
process.esAnalyzerL1+ | ||
process.esAnalyzerL2 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters