File indexing completed on 2025-04-30 22:24:07
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #include "FWCore/Framework/interface/ESTagGetter.h"
0017 #include "FWCore/Framework/interface/ComponentDescription.h"
0018
0019 using namespace edm;
0020
0021
0022
0023
0024 ESResolverIndex ESTagGetter::operator()(std::string_view iModuleLabel, std::string_view iProductLabel) const {
0025 for (auto const& item : lookup_) {
0026 if (item.productLabel_ == iProductLabel) {
0027 if (iModuleLabel.empty() or iModuleLabel == item.moduleLabel_) {
0028 return item.index_;
0029 }
0030 return ESResolverIndex::moduleLabelDoesNotMatch();
0031 }
0032 }
0033 return ESResolverIndex::noResolverConfigured();
0034 }