Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:54:34

0001 #include "DataFormats/Provenance/interface/SubProcessParentageHelper.h"
0002 
0003 #include "DataFormats/Provenance/interface/BranchDescription.h"
0004 #include "DataFormats/Provenance/interface/ProductRegistry.h"
0005 #include "FWCore/Utilities/interface/BranchType.h"
0006 
0007 namespace edm {
0008 
0009   void SubProcessParentageHelper::update(SubProcessParentageHelper const& parentSubProcessParentageHelper,
0010                                          ProductRegistry const& parentProductRegistry) {
0011     *this = parentSubProcessParentageHelper;
0012 
0013     for (auto const& prod : parentProductRegistry.productList()) {
0014       BranchDescription const& desc = prod.second;
0015       if (desc.produced() && desc.branchType() == InEvent && !desc.isAlias()) {
0016         producedProducts_.push_back(desc.branchID());
0017       }
0018     }
0019   }
0020 }  // namespace edm