Working with the ErrorSummary

Error Harvesting Objects

Each non-fatal warning or error message issued via the logging mechanism can be stored at an per event basis. In the standard reconstruction this happens via the logErrorHarvester module. It stores a vector of edm::ErrorSummaryEntry objects. The most important members defined for that class are severity (whether that is an info, warning or error), module (which module issued that message?) and category (which category gave the developer to that message?).

Analyzing errors

There are two modules to use the ErrorSummaryEntry objects. The logErrorFilter and the ErrorSummaryFilter.

LogErrorFilter

The logErrorFilter gets used for selecting events which have at least one warning or error. An example config describes the possible parameters:
logErrorFilter = cms.EDFilter("LogErrorFilter",
                              harvesterTag = cms.InputTag('logErrorHarvester'),
                              atLeastOneError = cms.bool(True),
                              atLeastOneWarning = cms.bool(True),
                              avoidCategories = cms.vstring()
                              )

ErrorSummaryFilter

The ErrorSummaryFilter can be used to do a more detailed rejection of events based on the errors that happened in previous steps. An example is given below:
errorSummaryFilter = cms.EDFilter("ErrorSummaryFilter",
                                  src = cms.InputTag("logErrorHarvester"), 
                                  severity = cms.string("warning"),
                                  modules = cms.vstring("muons"),
                                  avoidCategories = cms.vstring()
                                 )
With this setting every event where the muons module issued a warning or an error, gets rejected. The parameter avoidCategories allows to ignore certain categories. Per default it should be kept blank.

Example configuration

The tag CMS.PhysicsTools/UtilAlgos V07-06-02-05 contains a file CMS.PhysicsTools/UtilAlgos/test/select_error_events_cfg.py which serves as example configuration for selecting events with errors.

-- BenediktHegner - 11-May-2010

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2010-05-17 - BenediktHegner
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    CMSPublic All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback