forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request cms-sw#901 from Dr15Jones/productIDBug
Framework buggix -- Fixed bug between edm::Refs and EDAlias
- Loading branch information
Showing
15 changed files
with
133 additions
and
68 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
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
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
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 was deleted.
Oops, something went wrong.
43 changes: 43 additions & 0 deletions
43
IOPool/Input/test/PoolAliasTestStep1_DifferentOrder_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,43 @@ | ||
# The following comments couldn't be translated into the new config version: | ||
|
||
# Configuration file for PrePoolInputTest | ||
|
||
import FWCore.ParameterSet.Config as cms | ||
|
||
process = cms.Process("TESTPROD") | ||
process.load("FWCore.Framework.test.cmsExceptionsFatal_cff") | ||
|
||
process.maxEvents = cms.untracked.PSet( | ||
input = cms.untracked.int32(11) | ||
) | ||
process.Thing = cms.EDProducer("ThingProducer") | ||
|
||
process.output = cms.OutputModule("PoolOutputModule", | ||
outputCommands = cms.untracked.vstring("keep *", "drop *_Thing_*_TESTPROD"), | ||
fileName = cms.untracked.string('aliastest_step1_diffOrder.root') | ||
) | ||
|
||
process.source = cms.Source("EmptySource", | ||
firstLuminosityBlock = cms.untracked.uint32(6), | ||
numberEventsInLuminosityBlock = cms.untracked.uint32(3), | ||
firstRun = cms.untracked.uint32(561), | ||
numberEventsInRun = cms.untracked.uint32(7) | ||
) | ||
|
||
process.OtherThing = cms.EDProducer("OtherThingProducer", | ||
thingTag = cms.InputTag("ZThing") | ||
) | ||
|
||
#This changes the order of the original and alias branch names and branchIDs | ||
process.ZThing = cms.EDAlias( | ||
Thing = cms.VPSet( | ||
cms.PSet(type = cms.string('edmtestThings'), | ||
fromProductInstance = cms.string('*'), | ||
toProductInstance = cms.string('*')) | ||
) | ||
) | ||
|
||
|
||
process.p = cms.Path(process.Thing*process.OtherThing) | ||
process.ep = cms.EndPath(process.output) | ||
|
31 changes: 31 additions & 0 deletions
31
IOPool/Input/test/PoolAliasTestStep2_DifferentOrder_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,31 @@ | ||
# The following comments couldn't be translated into the new config version: | ||
|
||
# Configuration file for PoolInputTest | ||
|
||
import FWCore.ParameterSet.Config as cms | ||
|
||
process = cms.Process("TESTANALYSIS") | ||
process.load("FWCore.Framework.test.cmsExceptionsFatal_cff") | ||
|
||
process.maxEvents = cms.untracked.PSet( | ||
input = cms.untracked.int32(-1) | ||
) | ||
|
||
process.Analysis = cms.EDAnalyzer("OtherThingAnalyzer") | ||
|
||
process.source = cms.Source("PoolSource", | ||
setRunNumber = cms.untracked.uint32(621), | ||
fileNames = cms.untracked.vstring('file:aliastest_step1_diffOrder.root') | ||
) | ||
|
||
process.p = cms.Path(process.Analysis) | ||
|
||
#Also test creating a Ref from the alias branch | ||
process.OtherThing2 = cms.EDProducer("OtherThingProducer", | ||
thingTag = cms.InputTag("ZThing") | ||
) | ||
|
||
process.Analysis2 = cms.EDAnalyzer("OtherThingAnalyzer", | ||
other=cms.untracked.InputTag("OtherThing2","testUserTag")) | ||
|
||
process.p2 = cms.Path(process.OtherThing2+process.Analysis2) |
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