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 38 of file LogErrorHarvester.cc.


Constructor & Destructor Documentation

LogErrorHarvester::LogErrorHarvester ( ParameterSet const &  iConfig) [explicit]

Definition at line 50 of file LogErrorHarvester.cc.

                                                                  {
     produces<std::vector<ErrorSummaryEntry> >();
  }
LogErrorHarvester::~LogErrorHarvester ( )

Definition at line 54 of file LogErrorHarvester.cc.

{ }

Member Function Documentation

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

Reimplemented from edm::EDProducer.

Definition at line 69 of file LogErrorHarvester.cc.

References edm::EnableLoggedErrorsSummary().

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

Reimplemented from edm::EDProducer.

Definition at line 75 of file LogErrorHarvester.cc.

References edm::DisableLoggedErrorsSummary().

void LogErrorHarvester::fillDescriptions ( ConfigurationDescriptions descriptions) [static]

Reimplemented from edm::EDProducer.

Definition at line 82 of file LogErrorHarvester.cc.

References edm::ConfigurationDescriptions::add().

                                                                             {
    ParameterSetDescription desc;
    descriptions.add("logErrorHarvester", desc);
  }
void LogErrorHarvester::produce ( Event iEvent,
EventSetup const &  iSetup 
) [private, virtual]

Implements edm::EDProducer.

Definition at line 57 of file LogErrorHarvester.cc.

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