CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
StreamedProducts.cc
Go to the documentation of this file.
4 
5 namespace edm {
7  BranchDescription const& desc,
8  bool present,
9  std::vector<BranchID> const* parents) :
10  prod_(prod), desc_(&desc), present_(present), parents_(parents) {
11  if (present_ && prod == nullptr) {
12  std::string branchName = desc.branchName();
13  if(branchName.empty()) {
14  BranchDescription localCopy(desc);
15  localCopy.initBranchName();
16  branchName = localCopy.branchName();
17  }
18  throw edm::Exception(edm::errors::LogicError, "StreamedProduct::StreamedProduct\n")
19  << "A product with a status of 'present' is not actually present.\n"
20  << "The branch name is " << branchName << "\n"
21  << "Contact a framework developer.\n";
22  }
23  }
24 
25  void
27  for(BranchDescription& desc : descs_) {
28  desc.init();
29  }
30  }
31 }
32 
std::string const & branchName() const
TPRegexp parents
Definition: eve_filter.cc:21