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, edm::ConsumesCollector &cc)
 
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, edm::ConsumesCollector &cc)
 
virtual ~PFRecHitQTestBase ()=default
 

Protected Attributes

const double thresholdSNR_
 

Detailed Description

Definition at line 713 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

◆ PFRecHitQTestHGCalThresholdSNR() [1/2]

PFRecHitQTestHGCalThresholdSNR::PFRecHitQTestHGCalThresholdSNR ( )
inline

Definition at line 715 of file PFRecHitQTests.h.

715 : thresholdSNR_(0.) {}

◆ PFRecHitQTestHGCalThresholdSNR() [2/2]

PFRecHitQTestHGCalThresholdSNR::PFRecHitQTestHGCalThresholdSNR ( const edm::ParameterSet iConfig,
edm::ConsumesCollector cc 
)
inline

Definition at line 717 of file PFRecHitQTests.h.

718  : PFRecHitQTestBase(iConfig, cc), thresholdSNR_(iConfig.getParameter<double>("thresholdSNR")) {}
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
uint32_t cc[maxCellsPerHit]
Definition: gpuFishbone.h:49
PFRecHitQTestBase()=default

Member Function Documentation

◆ beginEvent()

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

Implements PFRecHitQTestBase.

Definition at line 720 of file PFRecHitQTests.h.

720 {}

◆ test() [1/6]

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

Implements PFRecHitQTestBase.

Definition at line 722 of file PFRecHitQTests.h.

References Exception.

722  {
723  throw cms::Exception("WrongDetector") << "PFRecHitQTestHGCalThresholdSNR only works for HGCAL!";
724  return false;
725  }

◆ test() [2/6]

bool PFRecHitQTestHGCalThresholdSNR::test ( reco::PFRecHit hit,
const HBHERecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 726 of file PFRecHitQTests.h.

References Exception.

726  {
727  throw cms::Exception("WrongDetector") << "PFRecHitQTestHGCalThresholdSNR only works for HGCAL!";
728  return false;
729  }

◆ test() [3/6]

bool PFRecHitQTestHGCalThresholdSNR::test ( reco::PFRecHit hit,
const HFRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 731 of file PFRecHitQTests.h.

References Exception.

731  {
732  throw cms::Exception("WrongDetector") << "PFRecHitQTestHGCalThresholdSNR only works for HGCAL!";
733  return false;
734  }

◆ test() [4/6]

bool PFRecHitQTestHGCalThresholdSNR::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 735 of file PFRecHitQTests.h.

References Exception.

735  {
736  throw cms::Exception("WrongDetector") << "PFRecHitQTestHGCalThresholdSNR only works for HGCAL!";
737  return false;
738  }

◆ test() [5/6]

bool PFRecHitQTestHGCalThresholdSNR::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 740 of file PFRecHitQTests.h.

References Exception.

740  {
741  throw cms::Exception("WrongDetector") << "PFRecHitQTestHGCalThresholdSNR only works for HGCAL!";
742  return false;
743  }

◆ test() [6/6]

bool PFRecHitQTestHGCalThresholdSNR::test ( reco::PFRecHit hit,
const HGCRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 745 of file PFRecHitQTests.h.

References HGCRecHit::signalOverSigmaNoise(), and thresholdSNR_.

745  {
746  return rh.signalOverSigmaNoise() >= thresholdSNR_;
747  }
float signalOverSigmaNoise() const
Definition: HGCRecHit.cc:72

Member Data Documentation

◆ thresholdSNR_

const double PFRecHitQTestHGCalThresholdSNR::thresholdSNR_
protected

Definition at line 750 of file PFRecHitQTests.h.

Referenced by test().