LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
ProdToProdMapBuilder.cc
Go to the documentation of this file.
2 
7 
8 #include <iomanip>
9 #include <iostream>
10 
11 void
13 {
14  if (productIDTransMap_.empty()) {
15  transMap.swap(productIDTransMap_);
16  } else if (productIDTransMap_ != transMap) {
18  << "Secondary input file "
19  " has ProductIDs inconsistent with previous files.\n";
20  }
21 }
22 
23 void
25 {
26  mapper.event_.reset(&e);
28 #if ART_DEBUG_PTRREMAPPER
29  for (auto const& pr : mapper.prodTransMap_) {
30  std::cerr << "ProdTransMap_t: "
31  << "(" << pr.first << ") -> (" << pr.second << ").\n";
32  }
33 #endif
34 }
std::map< ProductID, ProductID > ProductIDTransMap
ProductIDTransMap productIDTransMap_
cet::exempt_ptr< Event const > event_
Definition: PtrRemapper.h:330
void prepareTranslationTables(ProductIDTransMap &transMap)
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
Float_t e
Definition: plot.C:34
ProdTransMap_t prodTransMap_
Definition: PtrRemapper.h:329
void populateRemapper(PtrRemapper &mapper, Event &e) const