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

Constructor & Destructor Documentation

PFRecHitQTestHGCalThresholdSNR::PFRecHitQTestHGCalThresholdSNR ( )
inline

Definition at line 804 of file PFRecHitQTests.h.

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

Definition at line 809 of file PFRecHitQTests.h.

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

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

Implements PFRecHitQTestBase.

Definition at line 818 of file PFRecHitQTests.h.

References Exception.

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

Implements PFRecHitQTestBase.

Definition at line 824 of file PFRecHitQTests.h.

References Exception.

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

Implements PFRecHitQTestBase.

Definition at line 831 of file PFRecHitQTests.h.

References Exception.

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

Implements PFRecHitQTestBase.

Definition at line 837 of file PFRecHitQTests.h.

References Exception.

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

Implements PFRecHitQTestBase.

Definition at line 844 of file PFRecHitQTests.h.

References Exception.

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

Implements PFRecHitQTestBase.

Definition at line 851 of file PFRecHitQTests.h.

References HGCRecHit::signalOverSigmaNoise().

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

Member Data Documentation

const double PFRecHitQTestHGCalThresholdSNR::thresholdSNR_
protected

Definition at line 857 of file PFRecHitQTests.h.