85 virtual void beginJob(
void)
override;
88 virtual void endJob(
void)
override;
113 #include <boost/foreach.hpp>
114 #include <boost/range.hpp>
115 #include <boost/algorithm/string.hpp>
130 typedef std::vector<edm::ParameterSet> VPSet;
138 produces<std::vector<edm::ErrorSummaryEntry> >();
157 entry.second.done =
false;
164 for(
auto const& entry : errorSummary ) {
166 typedef boost::split_iterator<std::string::const_iterator>
splitter;
167 for (splitter
i = boost::make_split_iterator(entry.category, boost::first_finder(
"|", boost::is_equal()));
173 category.assign(
i->begin(),
i->end());
182 std::auto_ptr<std::vector<edm::ErrorSummaryEntry> >
errors(
new std::vector<edm::ErrorSummaryEntry>());
184 errors->swap(errorSummary);
210 if (not result.second)
212 return result.first->second;
218 CategoryMap::iterator
i =
m_data.find(category);
227 std::stringstream
out;
228 out <<
"Log-Report ---------- HLTLogMonitorFilter Summary ------------\n"
229 <<
"Log-Report Threshold Prescale Issued Accepted Rejected Category\n";
233 << std::setw(10) << entry.second.threshold <<
' '
234 << std::setw(10) << entry.second.prescale <<
' '
235 << std::setw(10) << entry.second.counter <<
' '
236 << std::setw(10) << entry.second.accepted <<
' '
237 << std::setw(10) << (entry.second.counter - entry.second.accepted) <<
' '
238 << std::left << entry.first <<
'\n';
T getParameter(std::string const &) const
CategoryEntry & getCategory(const std::string &category)
return the entry for requested category, if it exists, or create a new one with the default threshold...
CategoryEntry & addCategory(const std::string &category, uint32_t threshold)
create a new entry for the given category, with the given threshold 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)
bool knownCategory(const std::string &category)
check if the requested category has a valid entry
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
bool FreshErrorsExist(unsigned int iStreamID)
bool DisableLoggedErrorsSummary()
virtual void endJob(void) override
EDFilter endJob method.
std::map< std::string, CategoryEntry > CategoryMap
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
Container::value_type value_type
unsigned int value() const
unsigned long long uint64_t
CategoryEntry(uint32_t t=0)
StreamID streamID() const
std::vector< ErrorSummaryEntry > LoggedErrorsSummary(unsigned int iStreamID)
HLTLogMonitorFilter(const edm::ParameterSet &)
volatile std::atomic< bool > shutdown_flag false
virtual void beginJob(void) override
EDFilter beginJob method.
virtual bool filter(edm::Event &, const edm::EventSetup &) override
EDFilter accept method.
void summary(void)
summarize to LogInfo
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")