CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
AnomalousTower Class Reference

#include <AnomalousTower.h>

Public Member Functions

 AnomalousTower (const edm::ParameterSet &)
 
 AnomalousTower ()=delete
 
virtual bool operator() (const reco::Candidate &input) const
 
virtual ~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() [1/2]

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),
#define init_param(type, varname)
const unsigned maxBadEcalCells
const unsigned maxRecoveredEcalCells
const unsigned maxProblematicEcalCells
const unsigned maxBadHcalCells
const unsigned maxProblematicHcalCells
const unsigned maxRecoveredHcalCells

◆ AnomalousTower() [2/2]

AnomalousTower::AnomalousTower ( )
delete

◆ ~AnomalousTower()

virtual AnomalousTower::~AnomalousTower ( )
inlinevirtual

Definition at line 11 of file AnomalousTower.h.

11 {}

Member Function Documentation

◆ operator()()

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

Definition at line 15 of file AnomalousTower.cc.

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

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 }
const unsigned maxBadEcalCells
const unsigned maxRecoveredEcalCells
static std::string const input
Definition: EdmProvDump.cc:50
const unsigned maxProblematicEcalCells
const unsigned maxBadHcalCells
const unsigned maxProblematicHcalCells
const unsigned maxRecoveredHcalCells

Member Data Documentation

◆ maxBadEcalCells

const unsigned AnomalousTower::maxBadEcalCells
private

Definition at line 17 of file AnomalousTower.h.

Referenced by operator()().

◆ maxBadHcalCells

const unsigned AnomalousTower::maxBadHcalCells
private

Definition at line 20 of file AnomalousTower.h.

Referenced by operator()().

◆ maxProblematicEcalCells

const unsigned AnomalousTower::maxProblematicEcalCells
private

Definition at line 19 of file AnomalousTower.h.

Referenced by operator()().

◆ maxProblematicHcalCells

const unsigned AnomalousTower::maxProblematicHcalCells
private

Definition at line 22 of file AnomalousTower.h.

Referenced by operator()().

◆ maxRecoveredEcalCells

const unsigned AnomalousTower::maxRecoveredEcalCells
private

Definition at line 18 of file AnomalousTower.h.

Referenced by operator()().

◆ maxRecoveredHcalCells

const unsigned AnomalousTower::maxRecoveredHcalCells
private

Definition at line 21 of file AnomalousTower.h.

Referenced by operator()().