33 #include <unordered_set>
58 auto const&
ignore = iPSet.getUntrackedParameter<std::vector<std::string>>(
"excludeModules");
59 const std::unordered_set<std::string> excludedModules(
ignore.begin(),
ignore.end());
61 auto const& includeM = iPSet.getUntrackedParameter<std::vector<std::string>>(
"includeModules");
62 const std::unordered_set<std::string> includeModules(includeM.begin(), includeM.end());
65 callWhenNewProductsRegistered(
66 [
this, endPathStatusType, pathStatusType, triggerResultsType, excludedModules, includeModules](
69 ((includeModules.empty()
or includeModules.end() != includeModules.find(iBD.
moduleLabel())) and
72 if (excludedModules.end() == excludedModules.find(iBD.
moduleLabel())) {
87 std::vector<edm::ErrorSummaryEntry>
summary;
88 summary.reserve(mlSummary.size());
89 for (
auto&
entry : mlSummary) {
110 desc.
addUntracked<std::vector<std::string>>(
"excludeModules", std::vector<std::string>{})
111 ->setComment(
"List of module labels to exclude from consumes.");
112 desc.
addUntracked<std::vector<std::string>>(
"includeModules", std::vector<std::string>{})
113 ->setComment(
"List of the only module labels to include in consumes. The empty list will include all.");
114 descriptions.
add(
"logErrorHarvester", desc);
static void fillDescriptions(ConfigurationDescriptions &descriptions)
BranchType const & branchType() const
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventIDconst &, edm::Timestampconst & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
bool EnableLoggedErrorsSummary()
#define DEFINE_FWK_MODULE(type)
std::string const & processName() const
bool FreshErrorsExist(unsigned int iStreamID)
bool DisableLoggedErrorsSummary()
std::string const & moduleLabel() const
std::string const & productInstanceName() const
TypeID unwrappedTypeID() const
EDPutTokenT< std::vector< ErrorSummaryEntry > > token_
unsigned int value() const
OrphanHandle< PROD > emplace(EDPutTokenT< PROD > token, Args &&...args)
puts a new product
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< messagelogger::ErrorSummaryEntry > LoggedErrorsSummary(unsigned int iStreamID)
void produce(StreamID, Event &, EventSetup const &) const override
LogErrorHarvester(ParameterSet const &)