Public Member Functions | |
LogErrorHarvester (ParameterSet const &) | |
~LogErrorHarvester () | |
Static Public Member Functions | |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
Private Member Functions | |
virtual void | beginJob () |
virtual void | endJob () |
virtual void | produce (Event &, EventSetup const &) |
Definition at line 35 of file LogErrorHarvester.cc.
LogErrorHarvester::LogErrorHarvester | ( | ParameterSet const & | ) | [explicit] |
Definition at line 47 of file LogErrorHarvester.cc.
{ produces<std::vector<ErrorSummaryEntry> >(); }
LogErrorHarvester::~LogErrorHarvester | ( | ) |
Definition at line 51 of file LogErrorHarvester.cc.
{ }
void LogErrorHarvester::beginJob | ( | void | ) | [private, virtual] |
Reimplemented from edm::EDProducer.
Definition at line 67 of file LogErrorHarvester.cc.
References edm::EnableLoggedErrorsSummary().
{ EnableLoggedErrorsSummary(); }
void LogErrorHarvester::endJob | ( | void | ) | [private, virtual] |
Reimplemented from edm::EDProducer.
Definition at line 73 of file LogErrorHarvester.cc.
References edm::DisableLoggedErrorsSummary().
{ DisableLoggedErrorsSummary(); }
void LogErrorHarvester::fillDescriptions | ( | ConfigurationDescriptions & | descriptions | ) | [static] |
Reimplemented from edm::EDProducer.
Definition at line 80 of file LogErrorHarvester.cc.
References edm::ConfigurationDescriptions::add().
{ ParameterSetDescription desc; descriptions.add("logErrorHarvester", desc); }
void LogErrorHarvester::produce | ( | Event & | iEvent, |
EventSetup const & | |||
) | [private, virtual] |
Implements edm::EDProducer.
Definition at line 55 of file LogErrorHarvester.cc.
References benchmark_cfg::errors, edm::FreshErrorsExist(), edm::LoggedErrorsSummary(), and edm::Event::put().
{ if(!FreshErrorsExist()) { std::auto_ptr<std::vector<ErrorSummaryEntry> > errors(new std::vector<ErrorSummaryEntry>()); iEvent.put(errors); } else { std::auto_ptr<std::vector<ErrorSummaryEntry> > errors(new std::vector<ErrorSummaryEntry>(LoggedErrorsSummary())); iEvent.put(errors); } }