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 }
HLT_2018_cff.maxProblematicHcalCells
maxProblematicHcalCells
Definition: HLT_2018_cff.py:7361
AnomalousTower::maxRecoveredHcalCells
const unsigned maxRecoveredHcalCells
Definition: AnomalousTower.h:22
input
static const std::string input
Definition: EdmProvDump.cc:48
CaloTower.h
HLT_2018_cff.maxRecoveredEcalCells
maxRecoveredEcalCells
Definition: HLT_2018_cff.py:7316
hgcalTowerProducer_cfi.tower
tower
Definition: hgcalTowerProducer_cfi.py:3
AnomalousTower::maxBadEcalCells
const unsigned maxBadEcalCells
Definition: AnomalousTower.h:18
HLT_2018_cff.maxBadEcalCells
maxBadEcalCells
Definition: HLT_2018_cff.py:7336
HLT_2018_cff.maxRecoveredHcalCells
maxRecoveredHcalCells
Definition: HLT_2018_cff.py:7309
AnomalousTower::operator()
virtual bool operator()(const reco::Candidate &input) const
Definition: AnomalousTower.cc:15
HLT_2018_cff.maxBadHcalCells
maxBadHcalCells
Definition: HLT_2018_cff.py:7308
AnomalousTower::maxProblematicEcalCells
const unsigned maxProblematicEcalCells
Definition: AnomalousTower.h:20
AnomalousTower::maxRecoveredEcalCells
const unsigned maxRecoveredEcalCells
Definition: AnomalousTower.h:19
AnomalousTower.h
edm::ParameterSet
Definition: ParameterSet.h:36
HLT_2018_cff.maxProblematicEcalCells
maxProblematicEcalCells
Definition: HLT_2018_cff.py:7379
AnomalousTower::maxBadHcalCells
const unsigned maxBadHcalCells
Definition: AnomalousTower.h:21
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:23
reco::Candidate
Definition: Candidate.h:27
ParameterSet.h