#include <Work/HLTLogMonitorFilter/src/HLTLogMonitorFilter.cc>
Classes | |
struct | CategoryEntry |
Public Types | |
typedef std::map< std::string, CategoryEntry > | CategoryMap |
Public Types inherited from edm::EDFilter | |
typedef EDFilter | ModuleType |
Public Types inherited from edm::ProducerBase | |
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >> |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Public Member Functions | |
CategoryEntry & | addCategory (const std::string &category, uint32_t threshold) |
create a new entry for the given category, with the given threshold value More... | |
void | beginJob () override |
EDFilter beginJob method. More... | |
void | endJob () override |
EDFilter endJob method. More... | |
bool | filter (edm::Event &, const edm::EventSetup &) override |
EDFilter accept method. More... | |
CategoryEntry & | getCategory (const std::string &category) |
return the entry for requested category, if it exists, or create a new one with the default threshold value More... | |
HLTLogMonitorFilter (const edm::ParameterSet &) | |
bool | knownCategory (const std::string &category) |
check if the requested category has a valid entry More... | |
void | summary () |
summarize to LogInfo More... | |
~HLTLogMonitorFilter () override | |
Public Member Functions inherited from edm::EDFilter | |
EDFilter () | |
SerialTaskQueue * | globalLuminosityBlocksQueue () |
SerialTaskQueue * | globalRunsQueue () |
ModuleDescription const & | moduleDescription () const |
~EDFilter () override | |
Public Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
ProducerBase () | |
std::vector< edm::ProductResolverIndex > const & | putTokenIndexToProductResolverIndex () const |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
void | resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel) |
~ProducerBase () noexcept(false) override | |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
void | convertCurrentProcessAlias (std::string const &processName) |
Convert "@currentProcess" in InputTag process names to the actual current process name. More... | |
EDConsumerBase () | |
EDConsumerBase (EDConsumerBase const &)=delete | |
EDConsumerBase (EDConsumerBase &&)=default | |
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
virtual | ~EDConsumerBase () noexcept(false) |
Public Attributes | |
CategoryMap | m_data |
uint32_t | m_prescale |
Additional Inherited Members | |
Static Public Member Functions inherited from edm::EDFilter | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
static bool | wantsGlobalLuminosityBlocks () |
static bool | wantsGlobalRuns () |
static bool | wantsStreamLuminosityBlocks () |
static bool | wantsStreamRuns () |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Description: Accept events if any LogError or LogWarning was raised
Implementation: <Notes on="" implementation>="">
Definition at line 37 of file HLTLogMonitorFilter.cc.
typedef std::map<std::string, CategoryEntry> HLTLogMonitorFilter::CategoryMap |
Definition at line 77 of file HLTLogMonitorFilter.cc.
|
explicit |
Definition at line 123 of file HLTLogMonitorFilter.cc.
References addCategory(), myMessageLogger_cff::categories, edm::ParameterSet::getParameter(), m_prescale, dataset::name, AlCaHLTBitMon_QueryRunRegistry::string, electronIdCutBased_cfi::threshold, HistogramManager_cfi::VPSet(), and ~HLTLogMonitorFilter().
|
overridedefault |
Referenced by HLTLogMonitorFilter().
HLTLogMonitorFilter::CategoryEntry & HLTLogMonitorFilter::addCategory | ( | const std::string & | category, |
uint32_t | threshold | ||
) |
create a new entry for the given category, with the given threshold value
Definition at line 204 of file HLTLogMonitorFilter.cc.
References taus_updatedMVAIds_cff::category, Exception, m_data, and mps_fire::result.
Referenced by HLTLogMonitorFilter().
|
overridevirtual |
EDFilter beginJob method.
Reimplemented from edm::EDFilter.
Definition at line 189 of file HLTLogMonitorFilter.cc.
References edm::EnableLoggedErrorsSummary().
|
overridevirtual |
EDFilter endJob method.
Reimplemented from edm::EDFilter.
Definition at line 193 of file HLTLogMonitorFilter.cc.
References edm::DisableLoggedErrorsSummary(), and summary().
|
override |
EDFilter accept method.
Definition at line 147 of file HLTLogMonitorFilter.cc.
References accept(), HLTLogMonitorFilter::CategoryEntry::accept(), taus_updatedMVAIds_cff::category, mps_splice::entry, benchmark_cfg::errors, edm::FreshErrorsExist(), getCategory(), mps_fire::i, edm::LoggedErrorsSummary(), m_data, eostools::move(), confdb::splitter(), edm::Event::streamID(), AlCaHLTBitMon_QueryRunRegistry::string, and edm::StreamID::value().
HLTLogMonitorFilter::CategoryEntry & HLTLogMonitorFilter::getCategory | ( | const std::string & | category | ) |
return the entry for requested category, if it exists, or create a new one with the default threshold value
Definition at line 213 of file HLTLogMonitorFilter.cc.
References mps_fire::i, m_data, and m_prescale.
Referenced by filter().
bool HLTLogMonitorFilter::knownCategory | ( | const std::string & | category | ) |
check if the requested category has a valid entry
Definition at line 199 of file HLTLogMonitorFilter.cc.
References m_data.
void HLTLogMonitorFilter::summary | ( | ) |
summarize to LogInfo
Definition at line 223 of file HLTLogMonitorFilter.cc.
References DEFINE_FWK_MODULE, mps_splice::entry, m_data, and MillePedeFileConverter_cfg::out.
Referenced by endJob().
CategoryMap HLTLogMonitorFilter::m_data |
Definition at line 105 of file HLTLogMonitorFilter.cc.
Referenced by addCategory(), filter(), getCategory(), knownCategory(), and summary().
uint32_t HLTLogMonitorFilter::m_prescale |
Definition at line 104 of file HLTLogMonitorFilter.cc.
Referenced by getCategory(), and HLTLogMonitorFilter().