CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | 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

Public Member Functions

 LogErrorHarvester (ParameterSet const &)
 
 ~LogErrorHarvester ()
 
- Public Member Functions inherited from edm::EDProducer
 EDProducer ()
 
virtual ~EDProducer ()
 
- Public Member Functions inherited from edm::ProducerBase
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
boost::function< void(const
BranchDescription &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 

Static Public Member Functions

static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::EDProducer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 

Private Member Functions

virtual void beginJob ()
 
virtual void endJob ()
 
virtual void produce (Event &, EventSetup const &)
 

Additional Inherited Members

- Public Types inherited from edm::EDProducer
typedef EDProducer ModuleType
 
typedef WorkerT< EDProducerWorkerType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Protected Member Functions inherited from edm::EDProducer
CurrentProcessingContext const * currentContext () const
 
- Protected Member Functions inherited from edm::ProducerBase
template<class TProducer , class TMethod >
void callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod)
 

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.

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

Definition at line 54 of file LogErrorHarvester.cc.

54 { }

Member Function Documentation

void LogErrorHarvester::beginJob ( void  )
privatevirtual

Reimplemented from edm::EDProducer.

Definition at line 69 of file LogErrorHarvester.cc.

References edm::EnableLoggedErrorsSummary().

69  {
71  }
bool EnableLoggedErrorsSummary()
void LogErrorHarvester::endJob ( void  )
privatevirtual

Reimplemented from edm::EDProducer.

Definition at line 75 of file LogErrorHarvester.cc.

References edm::DisableLoggedErrorsSummary().

75  {
77  }
bool DisableLoggedErrorsSummary()
void LogErrorHarvester::fillDescriptions ( ConfigurationDescriptions descriptions)
static

Definition at line 82 of file LogErrorHarvester.cc.

References edm::ConfigurationDescriptions::add().

82  {
84  descriptions.add("logErrorHarvester", desc);
85  }
void LogErrorHarvester::produce ( Event iEvent,
EventSetup const &  iSetup 
)
privatevirtual

Implements edm::EDProducer.

Definition at line 57 of file LogErrorHarvester.cc.

References ExpressReco_HICollisions_FallBack::errors, edm::FreshErrorsExist(), edm::LoggedErrorsSummary(), and edm::Event::put().

57  {
58  if (!FreshErrorsExist()) {
59  std::auto_ptr<std::vector<ErrorSummaryEntry> > errors(new std::vector<ErrorSummaryEntry>());
60  iEvent.put(errors);
61  } else {
62  std::auto_ptr<std::vector<ErrorSummaryEntry> > errors(new std::vector<ErrorSummaryEntry>(LoggedErrorsSummary()));
63  iEvent.put(errors);
64  }
65  }
std::vector< ErrorSummaryEntry > LoggedErrorsSummary()
bool FreshErrorsExist()