CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
PFRecHitQTestDBSeedingThreshold Class Reference

#include <PFRecHitQTests.h>

Inheritance diagram for PFRecHitQTestDBSeedingThreshold:
PFRecHitQTestBase

Public Member Functions

void beginEvent (const edm::Event &event, const edm::EventSetup &iSetup) override
 
 PFRecHitQTestDBSeedingThreshold (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 Member Functions

bool pass (const reco::PFRecHit &hit)
 

Protected Attributes

bool applySelectionsToAllCrystals_
 
edm::ESHandle< EcalPFSeedingThresholdsths_
 

Detailed Description

Definition at line 711 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

PFRecHitQTestDBSeedingThreshold::PFRecHitQTestDBSeedingThreshold ( const edm::ParameterSet iConfig)
inline

Definition at line 713 of file PFRecHitQTests.h.

714  : PFRecHitQTestBase(iConfig),
715  applySelectionsToAllCrystals_(iConfig.getParameter<bool>("applySelectionsToAllCrystals")) {}
T getParameter(std::string const &) const
PFRecHitQTestBase()=default

Member Function Documentation

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

Implements PFRecHitQTestBase.

Definition at line 717 of file PFRecHitQTests.h.

References edm::EventSetup::get().

717  {
718  iSetup.get<EcalPFSeedingThresholdsRcd>().get(ths_);
719  }
T get() const
Definition: EventSetup.h:71
edm::ESHandle< EcalPFSeedingThresholds > ths_
bool PFRecHitQTestDBSeedingThreshold::pass ( const reco::PFRecHit hit)
inlineprotected

Definition at line 739 of file PFRecHitQTests.h.

References reco::PFRecHit::detId(), reco::PFRecHit::energy(), and electronIdCutBased_cfi::threshold.

739  {
740  float threshold = (*ths_)[hit.detId()];
741  return (hit.energy() > threshold);
742  }
unsigned detId() const
rechit detId
Definition: PFRecHit.h:93
float energy() const
rechit energy
Definition: PFRecHit.h:99
bool PFRecHitQTestDBSeedingThreshold::test ( reco::PFRecHit hit,
const EcalRecHit rh,
bool &  clean,
bool  fullReadOut 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 721 of file PFRecHitQTests.h.

References or, and PFRecHitQTestThreshold::pass().

721  {
723  return pass(hit);
724  return fullReadOut or pass(hit);
725  }
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
bool pass(const reco::PFRecHit &hit)
bool PFRecHitQTestDBSeedingThreshold::test ( reco::PFRecHit hit,
const HBHERecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 726 of file PFRecHitQTests.h.

References PFRecHitQTestThreshold::pass().

726 { return pass(hit); }
bool pass(const reco::PFRecHit &hit)
bool PFRecHitQTestDBSeedingThreshold::test ( reco::PFRecHit hit,
const HFRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 728 of file PFRecHitQTests.h.

References PFRecHitQTestThreshold::pass().

728 { return pass(hit); }
bool pass(const reco::PFRecHit &hit)
bool PFRecHitQTestDBSeedingThreshold::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 729 of file PFRecHitQTests.h.

References PFRecHitQTestThreshold::pass().

729 { return pass(hit); }
bool pass(const reco::PFRecHit &hit)
bool PFRecHitQTestDBSeedingThreshold::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 731 of file PFRecHitQTests.h.

References PFRecHitQTestThreshold::pass().

731 { return pass(hit); }
bool pass(const reco::PFRecHit &hit)
bool PFRecHitQTestDBSeedingThreshold::test ( reco::PFRecHit hit,
const HGCRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 733 of file PFRecHitQTests.h.

References PFRecHitQTestThreshold::pass().

733 { return pass(hit); }
bool pass(const reco::PFRecHit &hit)

Member Data Documentation

bool PFRecHitQTestDBSeedingThreshold::applySelectionsToAllCrystals_
protected

Definition at line 736 of file PFRecHitQTests.h.

edm::ESHandle<EcalPFSeedingThresholds> PFRecHitQTestDBSeedingThreshold::ths_
protected

Definition at line 737 of file PFRecHitQTests.h.