CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Private Member Functions

edm::LogErrorHarvester Class Reference

Inheritance diagram for edm::LogErrorHarvester:
edm::EDProducer edm::ProducerBase edm::ProductRegistryHelper

List of all members.

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 &)

Detailed Description

Definition at line 35 of file LogErrorHarvester.cc.


Constructor & Destructor Documentation

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.

                                        {
  }

Member Function Documentation

void LogErrorHarvester::beginJob ( void  ) [private, virtual]

Reimplemented from edm::EDProducer.

Definition at line 67 of file LogErrorHarvester.cc.

References edm::EnableLoggedErrorsSummary().

void LogErrorHarvester::endJob ( void  ) [private, virtual]

Reimplemented from edm::EDProducer.

Definition at line 73 of file LogErrorHarvester.cc.

References edm::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);
    }
  }