Skip to content

Commit

Permalink
Merge pull request cms-sw#930 from Dr15Jones/backportEDAliasRefFix
Browse files Browse the repository at this point in the history
Backport Fix for EDAlias and failing edm::Refs
  • Loading branch information
nclopezo committed Oct 9, 2013
2 parents 06527a7 + 3fe58d6 commit 7bc75f4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
5 changes: 0 additions & 5 deletions FWCore/Framework/interface/OutputModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,6 @@ namespace edm {
return droppedBranchIDToKeptBranchID_;
}

std::map<BranchID::value_type, BranchID::value_type> const& keptBranchIDToDroppedBranchID() {
return keptBranchIDToDroppedBranchID_;
}

private:

int maxEvents_;
Expand Down Expand Up @@ -161,7 +157,6 @@ namespace edm {
// needed because of possible EDAliases.
// filled in only if key and value are different.
std::map<BranchID::value_type, BranchID::value_type> droppedBranchIDToKeptBranchID_;
std::map<BranchID::value_type, BranchID::value_type> keptBranchIDToDroppedBranchID_;
std::unique_ptr<BranchIDLists> branchIDLists_;
BranchIDLists const* origBranchIDLists_;

Expand Down
7 changes: 0 additions & 7 deletions FWCore/Framework/src/OutputModule.cc
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ namespace edm {
selectors_(),
selector_config_id_(),
droppedBranchIDToKeptBranchID_(),
keptBranchIDToDroppedBranchID_(),
branchIDLists_(new BranchIDLists),
origBranchIDLists_(nullptr),
branchParents_(),
Expand Down Expand Up @@ -249,7 +248,6 @@ namespace edm {
if(keptBranchID != branchID) {
// An EDAlias branch was persisted.
droppedBranchIDToKeptBranchID_.insert(std::make_pair(branchID.id(), keptBranchID.id()));
keptBranchIDToDroppedBranchID_.insert(std::make_pair(keptBranchID.id(), branchID.id()));
}
}
}
Expand Down Expand Up @@ -454,11 +452,6 @@ namespace edm {
// Check for branches dropped while an EDAlias was kept.
for(BranchIDList& branchIDList : *branchIDLists_) {
for(BranchID::value_type& branchID : branchIDList) {
// Replace BranchID of each kept alias branch with zero, so only the product ID of the original branch will be accessible.
std::map<BranchID::value_type, BranchID::value_type>::const_iterator kiter = keptBranchIDToDroppedBranchID_.find(branchID);
if(kiter != keptBranchIDToDroppedBranchID_.end()) {
branchID = 0;
}
// Replace BranchID of each dropped branch with that of the kept alias, so the alias branch will have the product ID of the original branch.
std::map<BranchID::value_type, BranchID::value_type>::const_iterator iter = droppedBranchIDToKeptBranchID_.find(branchID);
if(iter != droppedBranchIDToKeptBranchID_.end()) {
Expand Down

0 comments on commit 7bc75f4

Please sign in to comment.