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),
9  init_param(unsigned, maxRecoveredEcalCells),
10  init_param(unsigned, maxProblematicEcalCells),
11  init_param(unsigned, maxBadHcalCells),
12  init_param(unsigned, maxRecoveredHcalCells),
13  init_param(unsigned, maxProblematicHcalCells)
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:164
#define init_param(type, varname)
unsigned int numRecoveredHcalCells() const
Definition: CaloTower.h:168
unsigned int numBadHcalCells() const
Definition: CaloTower.h:167
const unsigned maxBadEcalCells
const unsigned maxRecoveredEcalCells
static std::string const input
Definition: EdmProvDump.cc:44
unsigned int numBadEcalCells() const
Definition: CaloTower.h:163
const unsigned maxProblematicEcalCells
const unsigned maxBadHcalCells
virtual bool operator()(const reco::Candidate &input) const
unsigned int numProblematicEcalCells() const
Definition: CaloTower.h:165
unsigned int numProblematicHcalCells() const
Definition: CaloTower.h:169
const unsigned maxProblematicHcalCells
const unsigned maxRecoveredHcalCells