Public Types | Public Member Functions | Private Attributes | List of all members
art::ProdToProdMapBuilder Class Reference

#include <ProdToProdMapBuilder.h>

Public Types

using ProductIDTransMap = std::map< ProductID, ProductID >
 

Public Member Functions

void prepareTranslationTables (ProductIDTransMap &transMap)
 
PtrRemapper getRemapper (Event const &e) const
 

Private Attributes

ProductIDTransMap productIDTransMap_ {}
 

Detailed Description

Definition at line 14 of file ProdToProdMapBuilder.h.

Member Typedef Documentation

Definition at line 16 of file ProdToProdMapBuilder.h.

Member Function Documentation

art::PtrRemapper art::ProdToProdMapBuilder::getRemapper ( Event const &  e) const

Definition at line 19 of file ProdToProdMapBuilder.cc.

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.
25  result.prodTransMap_ = productIDTransMap_;
26  return result;
27 }
static QCString result
ProductIDTransMap productIDTransMap_
const double e
constexpr exempt_ptr< E > make_exempt_ptr(E *) noexcept
void art::ProdToProdMapBuilder::prepareTranslationTables ( ProductIDTransMap transMap)

Definition at line 7 of file ProdToProdMapBuilder.cc.

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 }
ProductIDTransMap productIDTransMap_
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66

Member Data Documentation

ProductIDTransMap art::ProdToProdMapBuilder::productIDTransMap_ {}
private

Definition at line 22 of file ProdToProdMapBuilder.h.


The documentation for this class was generated from the following files: