CMS 3D CMS Logo

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:197
#define init_param(type, varname)
unsigned int numRecoveredHcalCells() const
Definition: CaloTower.h:201
unsigned int numBadHcalCells() const
Definition: CaloTower.h:200
const unsigned maxBadEcalCells
const unsigned maxRecoveredEcalCells
static std::string const input
Definition: EdmProvDump.cc:44
unsigned int numBadEcalCells() const
Definition: CaloTower.h:196
const unsigned maxProblematicEcalCells
const unsigned maxBadHcalCells
virtual bool operator()(const reco::Candidate &input) const
unsigned int numProblematicEcalCells() const
Definition: CaloTower.h:198
unsigned int numProblematicHcalCells() const
Definition: CaloTower.h:202
const unsigned maxProblematicHcalCells
const unsigned maxRecoveredHcalCells