CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
PFRecHitQTestHGCalThresholdSNR Class Reference

#include <PFRecHitQTests.h>

Inheritance diagram for PFRecHitQTestHGCalThresholdSNR:
PFRecHitQTestBase

Public Member Functions

void beginEvent (const edm::Event &event, const edm::EventSetup &iSetup) override
 
 PFRecHitQTestHGCalThresholdSNR ()
 
 PFRecHitQTestHGCalThresholdSNR (const edm::ParameterSet &iConfig)
 
bool test (reco::PFRecHit &hit, const CaloTower &rh, bool &clean) override
 
bool test (reco::PFRecHit &hit, const EcalRecHit &rh, bool &clean, bool fullReadOut) override
 
bool test (reco::PFRecHit &hit, const HBHERecHit &rh, bool &clean) override
 
bool test (reco::PFRecHit &hit, const HFRecHit &rh, bool &clean) override
 
bool test (reco::PFRecHit &hit, const HGCRecHit &rh, bool &clean) override
 
bool test (reco::PFRecHit &hit, const HORecHit &rh, bool &clean) override
 
- Public Member Functions inherited from PFRecHitQTestBase
 PFRecHitQTestBase ()=default
 
 PFRecHitQTestBase (const edm::ParameterSet &iConfig)
 
virtual ~PFRecHitQTestBase ()=default
 

Protected Attributes

const double thresholdSNR_
 

Detailed Description

Definition at line 669 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

◆ PFRecHitQTestHGCalThresholdSNR() [1/2]

PFRecHitQTestHGCalThresholdSNR::PFRecHitQTestHGCalThresholdSNR ( )
inline

Definition at line 671 of file PFRecHitQTests.h.

671 : thresholdSNR_(0.) {}

◆ PFRecHitQTestHGCalThresholdSNR() [2/2]

PFRecHitQTestHGCalThresholdSNR::PFRecHitQTestHGCalThresholdSNR ( const edm::ParameterSet iConfig)
inline

Definition at line 673 of file PFRecHitQTests.h.

674  : PFRecHitQTestBase(iConfig), thresholdSNR_(iConfig.getParameter<double>("thresholdSNR")) {}

Member Function Documentation

◆ beginEvent()

void PFRecHitQTestHGCalThresholdSNR::beginEvent ( const edm::Event event,
const edm::EventSetup iSetup 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 676 of file PFRecHitQTests.h.

676 {}

◆ test() [1/6]

bool PFRecHitQTestHGCalThresholdSNR::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 696 of file PFRecHitQTests.h.

696  {
697  throw cms::Exception("WrongDetector") << "PFRecHitQTestHGCalThresholdSNR only works for HGCAL!";
698  return false;
699  }

References Exception.

◆ test() [2/6]

bool PFRecHitQTestHGCalThresholdSNR::test ( reco::PFRecHit hit,
const EcalRecHit rh,
bool &  clean,
bool  fullReadOut 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 678 of file PFRecHitQTests.h.

678  {
679  throw cms::Exception("WrongDetector") << "PFRecHitQTestHGCalThresholdSNR only works for HGCAL!";
680  return false;
681  }

References Exception.

◆ test() [3/6]

bool PFRecHitQTestHGCalThresholdSNR::test ( reco::PFRecHit hit,
const HBHERecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 682 of file PFRecHitQTests.h.

682  {
683  throw cms::Exception("WrongDetector") << "PFRecHitQTestHGCalThresholdSNR only works for HGCAL!";
684  return false;
685  }

References Exception.

◆ test() [4/6]

bool PFRecHitQTestHGCalThresholdSNR::test ( reco::PFRecHit hit,
const HFRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 687 of file PFRecHitQTests.h.

687  {
688  throw cms::Exception("WrongDetector") << "PFRecHitQTestHGCalThresholdSNR only works for HGCAL!";
689  return false;
690  }

References Exception.

◆ test() [5/6]

bool PFRecHitQTestHGCalThresholdSNR::test ( reco::PFRecHit hit,
const HGCRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 701 of file PFRecHitQTests.h.

701  {
702  return rh.signalOverSigmaNoise() >= thresholdSNR_;
703  }

References HGCRecHit::signalOverSigmaNoise(), and thresholdSNR_.

◆ test() [6/6]

bool PFRecHitQTestHGCalThresholdSNR::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 691 of file PFRecHitQTests.h.

691  {
692  throw cms::Exception("WrongDetector") << "PFRecHitQTestHGCalThresholdSNR only works for HGCAL!";
693  return false;
694  }

References Exception.

Member Data Documentation

◆ thresholdSNR_

const double PFRecHitQTestHGCalThresholdSNR::thresholdSNR_
protected

Definition at line 706 of file PFRecHitQTests.h.

Referenced by test().

PFRecHitQTestBase::PFRecHitQTestBase
PFRecHitQTestBase()=default
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
PFRecHitQTestHGCalThresholdSNR::thresholdSNR_
const double thresholdSNR_
Definition: PFRecHitQTests.h:706
Exception
Definition: hltDiff.cc:246
HGCRecHit::signalOverSigmaNoise
float signalOverSigmaNoise() const
Definition: HGCRecHit.cc:71