CMS 3D CMS Logo

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 ()=delete
 

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() [1/2]

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

Definition at line 7 of file AnomalousTower.cc.

◆ ~AnomalousTower()

virtual AnomalousTower::~AnomalousTower ( )
inlinevirtual

Definition at line 10 of file AnomalousTower.h.

10 {}

◆ AnomalousTower() [2/2]

AnomalousTower::AnomalousTower ( )
privatedelete

Member Function Documentation

◆ operator()()

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

Definition at line 15 of file AnomalousTower.cc.

15  {
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 }

References input, maxBadEcalCells, maxBadHcalCells, maxProblematicEcalCells, maxProblematicHcalCells, maxRecoveredEcalCells, maxRecoveredHcalCells, and hgcalTowerProducer_cfi::tower.

Member Data Documentation

◆ maxBadEcalCells

const unsigned AnomalousTower::maxBadEcalCells
private

Definition at line 18 of file AnomalousTower.h.

Referenced by operator()().

◆ maxBadHcalCells

const unsigned AnomalousTower::maxBadHcalCells
private

Definition at line 21 of file AnomalousTower.h.

Referenced by operator()().

◆ maxProblematicEcalCells

const unsigned AnomalousTower::maxProblematicEcalCells
private

Definition at line 20 of file AnomalousTower.h.

Referenced by operator()().

◆ maxProblematicHcalCells

const unsigned AnomalousTower::maxProblematicHcalCells
private

Definition at line 23 of file AnomalousTower.h.

Referenced by operator()().

◆ maxRecoveredEcalCells

const unsigned AnomalousTower::maxRecoveredEcalCells
private

Definition at line 19 of file AnomalousTower.h.

Referenced by operator()().

◆ maxRecoveredHcalCells

const unsigned AnomalousTower::maxRecoveredHcalCells
private

Definition at line 22 of file AnomalousTower.h.

Referenced by operator()().

AnomalousTower::maxRecoveredHcalCells
const unsigned maxRecoveredHcalCells
Definition: AnomalousTower.h:22
input
static const std::string input
Definition: EdmProvDump.cc:48
hgcalTowerProducer_cfi.tower
tower
Definition: hgcalTowerProducer_cfi.py:4
AnomalousTower::maxBadEcalCells
const unsigned maxBadEcalCells
Definition: AnomalousTower.h:18
AnomalousTower::maxProblematicEcalCells
const unsigned maxProblematicEcalCells
Definition: AnomalousTower.h:20
AnomalousTower::maxRecoveredEcalCells
const unsigned maxRecoveredEcalCells
Definition: AnomalousTower.h:19
AnomalousTower::maxBadHcalCells
const unsigned maxBadHcalCells
Definition: AnomalousTower.h:21
CaloTower
Definition: CaloTower.h:26
init_param
#define init_param(type, varname)
Definition: AnomalousTower.cc:5
AnomalousTower::maxProblematicHcalCells
const unsigned maxProblematicHcalCells
Definition: AnomalousTower.h:23