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

Constructor & Destructor Documentation

PFRecHitQTestHGCalThresholdSNR::PFRecHitQTestHGCalThresholdSNR ( )
inline

Definition at line 875 of file PFRecHitQTests.h.

875  :
876  thresholdSNR_(0.)
877  {
878  }
PFRecHitQTestHGCalThresholdSNR::PFRecHitQTestHGCalThresholdSNR ( const edm::ParameterSet iConfig)
inline

Definition at line 880 of file PFRecHitQTests.h.

880  :
881  PFRecHitQTestBase(iConfig), thresholdSNR_(iConfig.getParameter<double>("thresholdSNR"))
882  {
883  }
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 885 of file PFRecHitQTests.h.

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

Implements PFRecHitQTestBase.

Definition at line 889 of file PFRecHitQTests.h.

References Exception.

890  {
891  throw cms::Exception("WrongDetector")
892  << "PFRecHitQTestHGCalThresholdSNR only works for HGCAL!";
893  return false;
894  }
bool PFRecHitQTestHGCalThresholdSNR::test ( reco::PFRecHit hit,
const HBHERecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 895 of file PFRecHitQTests.h.

References Exception.

896  {
897  throw cms::Exception("WrongDetector")
898  << "PFRecHitQTestHGCalThresholdSNR only works for HGCAL!";
899  return false;
900  }
bool PFRecHitQTestHGCalThresholdSNR::test ( reco::PFRecHit hit,
const HFRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 902 of file PFRecHitQTests.h.

References Exception.

903  {
904  throw cms::Exception("WrongDetector")
905  << "PFRecHitQTestHGCalThresholdSNR only works for HGCAL!";
906  return false;
907  }
bool PFRecHitQTestHGCalThresholdSNR::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 908 of file PFRecHitQTests.h.

References Exception.

909  {
910  throw cms::Exception("WrongDetector")
911  << "PFRecHitQTestHGCalThresholdSNR only works for HGCAL!";
912  return false;
913  }
bool PFRecHitQTestHGCalThresholdSNR::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 915 of file PFRecHitQTests.h.

References Exception.

916  {
917  throw cms::Exception("WrongDetector")
918  << "PFRecHitQTestHGCalThresholdSNR only works for HGCAL!";
919  return false;
920  }
bool PFRecHitQTestHGCalThresholdSNR::test ( reco::PFRecHit hit,
const HGCRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 922 of file PFRecHitQTests.h.

References HGCRecHit::signalOverSigmaNoise().

923  {
924  return rh.signalOverSigmaNoise() >= thresholdSNR_;
925  }
float signalOverSigmaNoise() const
Definition: HGCRecHit.cc:68

Member Data Documentation

const double PFRecHitQTestHGCalThresholdSNR::thresholdSNR_
protected

Definition at line 928 of file PFRecHitQTests.h.