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

Constructor & Destructor Documentation

LogErrorHarvester::LogErrorHarvester ( ParameterSet const &  )
explicit

Definition at line 47 of file LogErrorHarvester.cc.

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

Definition at line 51 of file LogErrorHarvester.cc.

51  {
52  }

Member Function Documentation

void LogErrorHarvester::beginJob ( void  )
privatevirtual

Reimplemented from edm::EDProducer.

Definition at line 67 of file LogErrorHarvester.cc.

References edm::EnableLoggedErrorsSummary().

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

Reimplemented from edm::EDProducer.

Definition at line 73 of file LogErrorHarvester.cc.

References edm::DisableLoggedErrorsSummary().

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

Definition at line 80 of file LogErrorHarvester.cc.

References edm::ConfigurationDescriptions::add().

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

Implements edm::EDProducer.

Definition at line 55 of file LogErrorHarvester.cc.

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

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