LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
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 {
21  PtrRemapper result;
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 }
std::map< ProductID, ProductID > ProductIDTransMap
ProductIDTransMap productIDTransMap_
cet::exempt_ptr< Event const > event_
Definition: PtrRemapper.h:417
void prepareTranslationTables(ProductIDTransMap &transMap)
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
PtrRemapper getRemapper(Event const &e) const
Float_t e
Definition: plot.C:35
ProdTransMap_t prodTransMap_
Definition: PtrRemapper.h:416