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 796 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

PFRecHitQTestHGCalThresholdSNR::PFRecHitQTestHGCalThresholdSNR ( )
inline

Definition at line 799 of file PFRecHitQTests.h.

799  :
800  thresholdSNR_(0.)
801  {
802  }
PFRecHitQTestHGCalThresholdSNR::PFRecHitQTestHGCalThresholdSNR ( const edm::ParameterSet iConfig)
inline

Definition at line 804 of file PFRecHitQTests.h.

804  :
805  PFRecHitQTestBase(iConfig), thresholdSNR_(iConfig.getParameter<double>("thresholdSNR"))
806  {
807  }
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 809 of file PFRecHitQTests.h.

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

Implements PFRecHitQTestBase.

Definition at line 813 of file PFRecHitQTests.h.

References Exception.

814  {
815  throw cms::Exception("WrongDetector")
816  << "PFRecHitQTestHGCalThresholdSNR only works for HGCAL!";
817  return false;
818  }
bool PFRecHitQTestHGCalThresholdSNR::test ( reco::PFRecHit hit,
const HBHERecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 819 of file PFRecHitQTests.h.

References Exception.

820  {
821  throw cms::Exception("WrongDetector")
822  << "PFRecHitQTestHGCalThresholdSNR only works for HGCAL!";
823  return false;
824  }
bool PFRecHitQTestHGCalThresholdSNR::test ( reco::PFRecHit hit,
const HFRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 826 of file PFRecHitQTests.h.

References Exception.

827  {
828  throw cms::Exception("WrongDetector")
829  << "PFRecHitQTestHGCalThresholdSNR only works for HGCAL!";
830  return false;
831  }
bool PFRecHitQTestHGCalThresholdSNR::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 832 of file PFRecHitQTests.h.

References Exception.

833  {
834  throw cms::Exception("WrongDetector")
835  << "PFRecHitQTestHGCalThresholdSNR only works for HGCAL!";
836  return false;
837  }
bool PFRecHitQTestHGCalThresholdSNR::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 839 of file PFRecHitQTests.h.

References Exception.

840  {
841  throw cms::Exception("WrongDetector")
842  << "PFRecHitQTestHGCalThresholdSNR only works for HGCAL!";
843  return false;
844  }
bool PFRecHitQTestHGCalThresholdSNR::test ( reco::PFRecHit hit,
const HGCRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 846 of file PFRecHitQTests.h.

References HGCRecHit::signalOverSigmaNoise().

847  {
848  return rh.signalOverSigmaNoise() >= thresholdSNR_;
849  }
float signalOverSigmaNoise() const
Definition: HGCRecHit.cc:68

Member Data Documentation

const double PFRecHitQTestHGCalThresholdSNR::thresholdSNR_
protected

Definition at line 852 of file PFRecHitQTests.h.