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 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 HORecHit &rh, bool &clean) override
 
bool test (reco::PFRecHit &hit, const CaloTower &rh, bool &clean) override
 
bool test (reco::PFRecHit &hit, const HGCRecHit &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::PFRecHitQTestHGCalThresholdSNR ( )
inline

Definition at line 671 of file PFRecHitQTests.h.

671 : thresholdSNR_(0.) {}
PFRecHitQTestHGCalThresholdSNR::PFRecHitQTestHGCalThresholdSNR ( const edm::ParameterSet iConfig)
inline

Definition at line 673 of file PFRecHitQTests.h.

674  : PFRecHitQTestBase(iConfig), thresholdSNR_(iConfig.getParameter<double>("thresholdSNR")) {}
T getParameter(std::string const &) const
PFRecHitQTestBase()=default

Member Function Documentation

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

Implements PFRecHitQTestBase.

Definition at line 676 of file PFRecHitQTests.h.

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

Implements PFRecHitQTestBase.

Definition at line 678 of file PFRecHitQTests.h.

References Exception.

678  {
679  throw cms::Exception("WrongDetector") << "PFRecHitQTestHGCalThresholdSNR only works for HGCAL!";
680  return false;
681  }
bool PFRecHitQTestHGCalThresholdSNR::test ( reco::PFRecHit hit,
const HBHERecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 682 of file PFRecHitQTests.h.

References Exception.

682  {
683  throw cms::Exception("WrongDetector") << "PFRecHitQTestHGCalThresholdSNR only works for HGCAL!";
684  return false;
685  }
bool PFRecHitQTestHGCalThresholdSNR::test ( reco::PFRecHit hit,
const HFRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 687 of file PFRecHitQTests.h.

References Exception.

687  {
688  throw cms::Exception("WrongDetector") << "PFRecHitQTestHGCalThresholdSNR only works for HGCAL!";
689  return false;
690  }
bool PFRecHitQTestHGCalThresholdSNR::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 691 of file PFRecHitQTests.h.

References Exception.

691  {
692  throw cms::Exception("WrongDetector") << "PFRecHitQTestHGCalThresholdSNR only works for HGCAL!";
693  return false;
694  }
bool PFRecHitQTestHGCalThresholdSNR::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 696 of file PFRecHitQTests.h.

References Exception.

696  {
697  throw cms::Exception("WrongDetector") << "PFRecHitQTestHGCalThresholdSNR only works for HGCAL!";
698  return false;
699  }
bool PFRecHitQTestHGCalThresholdSNR::test ( reco::PFRecHit hit,
const HGCRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 701 of file PFRecHitQTests.h.

References HGCRecHit::signalOverSigmaNoise().

701  {
702  return rh.signalOverSigmaNoise() >= thresholdSNR_;
703  }
float signalOverSigmaNoise() const
Definition: HGCRecHit.cc:69

Member Data Documentation

const double PFRecHitQTestHGCalThresholdSNR::thresholdSNR_
protected

Definition at line 706 of file PFRecHitQTests.h.