ProdToProdMapBuilder.cc
Go to the documentation of this file.
2 
4 #include "cetlib/exempt_ptr.h"
5 
6 void
8 {
9  if (productIDTransMap_.empty()) {
10  transMap.swap(productIDTransMap_);
11  } else if (productIDTransMap_ != transMap) {
12  throw Exception(errors::DataCorruption) << "Secondary input file has "
13  "ProductIDs inconsistent with "
14  "previous files.\n";
15  }
16 }
17 
20 {
22  result.event_ = cet::make_exempt_ptr(&e);
23  // Check translation map to see if output product IDs are supported
24  // for given event.
26  return result;
27 }
static QCString result
std::map< ProductID, ProductID > ProductIDTransMap
ProductIDTransMap productIDTransMap_
cet::exempt_ptr< Event const > event_
Definition: PtrRemapper.h:328
const double e
void prepareTranslationTables(ProductIDTransMap &transMap)
constexpr exempt_ptr< E > make_exempt_ptr(E *) noexcept
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
PtrRemapper getRemapper(Event const &e) const
ProdTransMap_t prodTransMap_
Definition: PtrRemapper.h:327