CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
edm::ExceptionToActionTable Class Reference

#include <ExceptionActions.h>

Public Types

typedef std::map< std::string, exception_actions::ActionCodesActionMap
 

Public Member Functions

void add (const std::string &category, exception_actions::ActionCodes code)
 
 ExceptionToActionTable ()
 
 ExceptionToActionTable (const ParameterSet &)
 
exception_actions::ActionCodes find (const std::string &category) const
 
 ~ExceptionToActionTable ()
 

Private Member Functions

void addDefaults ()
 

Private Attributes

ActionMap map_
 

Detailed Description

Definition at line 16 of file ExceptionActions.h.

Member Typedef Documentation

◆ ActionMap

Definition at line 18 of file ExceptionActions.h.

Constructor & Destructor Documentation

◆ ExceptionToActionTable() [1/2]

edm::ExceptionToActionTable::ExceptionToActionTable ( )

Definition at line 31 of file ExceptionActions.cc.

31 : map_() { addDefaults(); }

References addDefaults().

◆ ExceptionToActionTable() [2/2]

edm::ExceptionToActionTable::ExceptionToActionTable ( const ParameterSet pset)
explicit

◆ ~ExceptionToActionTable()

edm::ExceptionToActionTable::~ExceptionToActionTable ( )

Definition at line 79 of file ExceptionActions.cc.

79 {}

Member Function Documentation

◆ add()

void edm::ExceptionToActionTable::add ( const std::string &  category,
exception_actions::ActionCodes  code 
)

Definition at line 81 of file ExceptionActions.cc.

81  {
82  map_[category] = code;
83  }

References taus_updatedMVAIds_cff::category, and map_.

Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().

◆ addDefaults()

void edm::ExceptionToActionTable::addDefaults ( )
private

Definition at line 66 of file ExceptionActions.cc.

66  {
67  // populate defaults that are not 'Rethrow'
68  // (There are none as of CMSSW_3_4_X.)
69  // 'Rethrow' is the default default.
70  if (2 <= debugit()) {
71  ActionMap::const_iterator ib(map_.begin()), ie(map_.end());
72  for (; ib != ie; ++ib) {
73  std::cerr << ib->first << ',' << ib->second << '\n';
74  }
75  std::cerr << std::endl;
76  }
77  }

References beam_dqm_sourceclient-live_cfg::cerr, edm::debugit, cuy::ib, and map_.

Referenced by ExceptionToActionTable().

◆ find()

exception_actions::ActionCodes edm::ExceptionToActionTable::find ( const std::string &  category) const

Member Data Documentation

◆ map_

ActionMap edm::ExceptionToActionTable::map_
private

Definition at line 29 of file ExceptionActions.h.

Referenced by add(), addDefaults(), ExceptionToActionTable(), and find().

taus_updatedMVAIds_cff.category
category
Definition: taus_updatedMVAIds_cff.py:30
mps_fire.i
i
Definition: mps_fire.py:355
edm::exception_actions::Rethrow
Definition: ExceptionActions.h:11
edm::ExceptionToActionTable::map_
ActionMap map_
Definition: ExceptionActions.h:29
edm::debugit
debugvalue debugit
Definition: DebugMacros.cc:10
edm::exception_actions::FailPath
Definition: ExceptionActions.h:11
edm::exception_actions::SkipEvent
Definition: ExceptionActions.h:11
edm::ExceptionToActionTable::addDefaults
void addDefaults()
Definition: ExceptionActions.cc:66
beam_dqm_sourceclient-live_cfg.cerr
cerr
Definition: beam_dqm_sourceclient-live_cfg.py:17
cuy.ib
ib
Definition: cuy.py:662
edm::exception_actions::IgnoreCompletely
Definition: ExceptionActions.h:11
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27