LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
art::ProdToProdMapBuilder Class Reference

#include "ProdToProdMapBuilder.h"

Public Types

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

Public Member Functions

void prepareTranslationTables (ProductIDTransMap &transMap)
 
void populateRemapper (PtrRemapper &mapper, Event &e) const
 

Private Attributes

ProductIDTransMap productIDTransMap_ {}
 

Detailed Description

Definition at line 19 of file ProdToProdMapBuilder.h.

Member Typedef Documentation

Member Function Documentation

void art::ProdToProdMapBuilder::populateRemapper ( PtrRemapper mapper,
Event e 
) const

Definition at line 24 of file ProdToProdMapBuilder.cc.

References art::PtrRemapper::event_, art::PtrRemapper::prodTransMap_, and productIDTransMap_.

Referenced by art::MixHelper::mixAndPut().

25 {
26  mapper.event_.reset(&e);
27  mapper.prodTransMap_ = productIDTransMap_;
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 }
ProductIDTransMap productIDTransMap_
Float_t e
Definition: plot.C:34
void art::ProdToProdMapBuilder::prepareTranslationTables ( ProductIDTransMap transMap)

Definition at line 12 of file ProdToProdMapBuilder.cc.

References art::errors::DataCorruption, and productIDTransMap_.

Referenced by art::MixHelper::openAndReadMetaData_().

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 }
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 27 of file ProdToProdMapBuilder.h.

Referenced by populateRemapper(), and prepareTranslationTables().


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