CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
AnomalousTower.cc
Go to the documentation of this file.
4 
5 #define init_param(type, varname) varname (ps.getParameter< type >( #varname ))
6 
8  : init_param(unsigned, maxBadEcalCells),
11  init_param(unsigned, maxBadHcalCells),
14 {
15 }
16 
18 {
19  const CaloTower* tower = dynamic_cast<const CaloTower*>(&input);
20  if (tower)
21  return tower->numBadEcalCells() > maxBadEcalCells ||
24  tower->numBadHcalCells() > maxBadHcalCells ||
27  else
28  return false;
29 }
unsigned int numRecoveredEcalCells() const
Definition: CaloTower.h:181
#define init_param(type, varname)
unsigned int numRecoveredHcalCells() const
Definition: CaloTower.h:185
unsigned int numBadHcalCells() const
Definition: CaloTower.h:184
const unsigned maxBadEcalCells
const unsigned maxRecoveredEcalCells
static std::string const input
Definition: EdmProvDump.cc:43
unsigned int numBadEcalCells() const
Definition: CaloTower.h:180
const unsigned maxProblematicEcalCells
const unsigned maxBadHcalCells
virtual bool operator()(const reco::Candidate &input) const
unsigned int numProblematicEcalCells() const
Definition: CaloTower.h:182
unsigned int numProblematicHcalCells() const
Definition: CaloTower.h:186
const unsigned maxProblematicHcalCells
const unsigned maxRecoveredHcalCells