CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
AnomalousTower Class Reference

#include <AnomalousTower.h>

Public Member Functions

 AnomalousTower (const edm::ParameterSet &)
 
virtual bool operator() (const reco::Candidate &input) const
 
virtual ~AnomalousTower ()
 

Private Member Functions

 AnomalousTower ()
 

Private Attributes

const unsigned maxBadEcalCells
 
const unsigned maxBadHcalCells
 
const unsigned maxProblematicEcalCells
 
const unsigned maxProblematicHcalCells
 
const unsigned maxRecoveredEcalCells
 
const unsigned maxRecoveredHcalCells
 

Detailed Description

Definition at line 7 of file AnomalousTower.h.

Constructor & Destructor Documentation

AnomalousTower::AnomalousTower ( const edm::ParameterSet ps)
explicit

Definition at line 7 of file AnomalousTower.cc.

8  : init_param(unsigned, maxBadEcalCells),
11  init_param(unsigned, maxBadHcalCells),
14 {
15 }
#define init_param(type, varname)
const unsigned maxBadEcalCells
const unsigned maxRecoveredEcalCells
const unsigned maxProblematicEcalCells
const unsigned maxBadHcalCells
const unsigned maxProblematicHcalCells
const unsigned maxRecoveredHcalCells
virtual AnomalousTower::~AnomalousTower ( )
inlinevirtual

Definition at line 11 of file AnomalousTower.h.

11 {}
AnomalousTower::AnomalousTower ( )
private

Member Function Documentation

bool AnomalousTower::operator() ( const reco::Candidate input) const
virtual

Definition at line 17 of file AnomalousTower.cc.

References input, maxBadEcalCells, maxBadHcalCells, maxProblematicEcalCells, maxProblematicHcalCells, maxRecoveredEcalCells, maxRecoveredHcalCells, CaloTower::numBadEcalCells(), CaloTower::numBadHcalCells(), CaloTower::numProblematicEcalCells(), CaloTower::numProblematicHcalCells(), CaloTower::numRecoveredEcalCells(), and CaloTower::numRecoveredHcalCells().

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:181
unsigned int numRecoveredHcalCells() const
Definition: CaloTower.h:185
unsigned int numBadHcalCells() const
Definition: CaloTower.h:184
const unsigned maxBadEcalCells
const unsigned maxRecoveredEcalCells
static std::string const input
Definition: EdmProvDump.cc:44
unsigned int numBadEcalCells() const
Definition: CaloTower.h:180
const unsigned maxProblematicEcalCells
const unsigned maxBadHcalCells
unsigned int numProblematicEcalCells() const
Definition: CaloTower.h:182
unsigned int numProblematicHcalCells() const
Definition: CaloTower.h:186
const unsigned maxProblematicHcalCells
const unsigned maxRecoveredHcalCells

Member Data Documentation

const unsigned AnomalousTower::maxBadEcalCells
private

Definition at line 19 of file AnomalousTower.h.

Referenced by operator()().

const unsigned AnomalousTower::maxBadHcalCells
private

Definition at line 22 of file AnomalousTower.h.

Referenced by operator()().

const unsigned AnomalousTower::maxProblematicEcalCells
private

Definition at line 21 of file AnomalousTower.h.

Referenced by operator()().

const unsigned AnomalousTower::maxProblematicHcalCells
private

Definition at line 24 of file AnomalousTower.h.

Referenced by operator()().

const unsigned AnomalousTower::maxRecoveredEcalCells
private

Definition at line 20 of file AnomalousTower.h.

Referenced by operator()().

const unsigned AnomalousTower::maxRecoveredHcalCells
private

Definition at line 23 of file AnomalousTower.h.

Referenced by operator()().