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 }
AnomalousTower::maxRecoveredHcalCells
const unsigned maxRecoveredHcalCells
Definition: AnomalousTower.h:21
input
static const std::string input
Definition: EdmProvDump.cc:48
CaloTower.h
HLT_FULL_cff.maxRecoveredHcalCells
maxRecoveredHcalCells
Definition: HLT_FULL_cff.py:8706
HLT_FULL_cff.maxRecoveredEcalCells
maxRecoveredEcalCells
Definition: HLT_FULL_cff.py:8705
hgcalTowerProducer_cfi.tower
tower
Definition: hgcalTowerProducer_cfi.py:4
HLT_FULL_cff.maxProblematicEcalCells
maxProblematicEcalCells
Definition: HLT_FULL_cff.py:8703
AnomalousTower::maxBadEcalCells
const unsigned maxBadEcalCells
Definition: AnomalousTower.h:17
AnomalousTower::operator()
virtual bool operator()(const reco::Candidate &input) const
Definition: AnomalousTower.cc:15
AnomalousTower::maxProblematicEcalCells
const unsigned maxProblematicEcalCells
Definition: AnomalousTower.h:19
AnomalousTower::maxRecoveredEcalCells
const unsigned maxRecoveredEcalCells
Definition: AnomalousTower.h:18
HLT_FULL_cff.maxProblematicHcalCells
maxProblematicHcalCells
Definition: HLT_FULL_cff.py:8704
AnomalousTower.h
edm::ParameterSet
Definition: ParameterSet.h:47
AnomalousTower::maxBadHcalCells
const unsigned maxBadHcalCells
Definition: AnomalousTower.h:20
CaloTower
Definition: CaloTower.h:26
AnomalousTower::AnomalousTower
AnomalousTower()=delete
init_param
#define init_param(type, varname)
Definition: AnomalousTower.cc:5
AnomalousTower::maxProblematicHcalCells
const unsigned maxProblematicHcalCells
Definition: AnomalousTower.h:22
reco::Candidate
Definition: Candidate.h:27
HLT_FULL_cff.maxBadHcalCells
maxBadHcalCells
Definition: HLT_FULL_cff.py:8702
HLT_FULL_cff.maxBadEcalCells
maxBadEcalCells
Definition: HLT_FULL_cff.py:8701
ParameterSet.h