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

Constructor & Destructor Documentation

PFRecHitQTestHGCalThresholdSNR::PFRecHitQTestHGCalThresholdSNR ( )
inline

Definition at line 806 of file PFRecHitQTests.h.

806  :
807  thresholdSNR_(0.)
808  {
809  }
PFRecHitQTestHGCalThresholdSNR::PFRecHitQTestHGCalThresholdSNR ( const edm::ParameterSet iConfig)
inline

Definition at line 811 of file PFRecHitQTests.h.

811  :
812  PFRecHitQTestBase(iConfig), thresholdSNR_(iConfig.getParameter<double>("thresholdSNR"))
813  {
814  }
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 816 of file PFRecHitQTests.h.

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

Implements PFRecHitQTestBase.

Definition at line 820 of file PFRecHitQTests.h.

References Exception.

821  {
822  throw cms::Exception("WrongDetector")
823  << "PFRecHitQTestHGCalThresholdSNR only works for HGCAL!";
824  return false;
825  }
bool PFRecHitQTestHGCalThresholdSNR::test ( reco::PFRecHit hit,
const HBHERecHit 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 HFRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 833 of file PFRecHitQTests.h.

References Exception.

834  {
835  throw cms::Exception("WrongDetector")
836  << "PFRecHitQTestHGCalThresholdSNR only works for HGCAL!";
837  return false;
838  }
bool PFRecHitQTestHGCalThresholdSNR::test ( reco::PFRecHit hit,
const HORecHit 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 CaloTower rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 846 of file PFRecHitQTests.h.

References Exception.

847  {
848  throw cms::Exception("WrongDetector")
849  << "PFRecHitQTestHGCalThresholdSNR only works for HGCAL!";
850  return false;
851  }
bool PFRecHitQTestHGCalThresholdSNR::test ( reco::PFRecHit hit,
const HGCRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 853 of file PFRecHitQTests.h.

References HGCRecHit::signalOverSigmaNoise().

854  {
855  return rh.signalOverSigmaNoise() >= thresholdSNR_;
856  }
float signalOverSigmaNoise() const
Definition: HGCRecHit.cc:68

Member Data Documentation

const double PFRecHitQTestHGCalThresholdSNR::thresholdSNR_
protected

Definition at line 859 of file PFRecHitQTests.h.