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 
16  const CaloTower* tower = dynamic_cast<const CaloTower*>(&input);
17  if (tower)
18  return tower->numBadEcalCells() > maxBadEcalCells || tower->numRecoveredEcalCells() > maxRecoveredEcalCells ||
19  tower->numProblematicEcalCells() > maxProblematicEcalCells || tower->numBadHcalCells() > maxBadHcalCells ||
20  tower->numRecoveredHcalCells() > maxRecoveredHcalCells ||
21  tower->numProblematicHcalCells() > maxProblematicHcalCells;
22  else
23  return false;
24 }
#define init_param(type, varname)
virtual bool operator()(const reco::Candidate &input) const
const unsigned maxBadEcalCells
const unsigned maxRecoveredEcalCells
static std::string const input
Definition: EdmProvDump.cc:47
const unsigned maxProblematicEcalCells
AnomalousTower()=delete
const unsigned maxBadHcalCells
const unsigned maxProblematicHcalCells
const unsigned maxRecoveredHcalCells