CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Private 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, 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 Member Functions

bool pass (const reco::PFRecHit &hit)
 

Protected Attributes

bool applySelectionsToAllCrystals_
 
edm::ESHandle< EcalPFSeedingThresholdsths_
 

Private Attributes

edm::ESGetToken< EcalPFSeedingThresholds, EcalPFSeedingThresholdsRcdthreshToken_
 

Detailed Description

Definition at line 733 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

◆ PFRecHitQTestDBSeedingThreshold()

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

Definition at line 735 of file PFRecHitQTests.h.

736  : PFRecHitQTestBase(iConfig, cc),
737  applySelectionsToAllCrystals_(iConfig.getParameter<bool>("applySelectionsToAllCrystals")),
738  threshToken_(cc.esConsumes()) {}
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
edm::ESGetToken< EcalPFSeedingThresholds, EcalPFSeedingThresholdsRcd > threshToken_
uint32_t cc[maxCellsPerHit]
Definition: gpuFishbone.h:49
PFRecHitQTestBase()=default

Member Function Documentation

◆ beginEvent()

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

Implements PFRecHitQTestBase.

Definition at line 740 of file PFRecHitQTests.h.

References edm::EventSetup::getHandle(), threshToken_, and ths_.

740  {
741  ths_ = iSetup.getHandle(threshToken_);
742  }
edm::ESGetToken< EcalPFSeedingThresholds, EcalPFSeedingThresholdsRcd > threshToken_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:130
edm::ESHandle< EcalPFSeedingThresholds > ths_

◆ pass()

bool PFRecHitQTestDBSeedingThreshold::pass ( const reco::PFRecHit hit)
inlineprotected

Definition at line 762 of file PFRecHitQTests.h.

References remoteMonitoring_LASER_era2018_cfg::threshold.

Referenced by test().

762  {
763  float threshold = (*ths_)[hit.detId()];
764  return (hit.energy() > threshold);
765  }

◆ test() [1/6]

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

Implements PFRecHitQTestBase.

Definition at line 744 of file PFRecHitQTests.h.

References applySelectionsToAllCrystals_, or, and pass().

744  {
746  return pass(hit);
747  return fullReadOut or pass(hit);
748  }
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)

◆ test() [2/6]

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

Implements PFRecHitQTestBase.

Definition at line 749 of file PFRecHitQTests.h.

References pass().

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

◆ test() [3/6]

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

Implements PFRecHitQTestBase.

Definition at line 751 of file PFRecHitQTests.h.

References pass().

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

◆ test() [4/6]

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

Implements PFRecHitQTestBase.

Definition at line 752 of file PFRecHitQTests.h.

References pass().

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

◆ test() [5/6]

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

Implements PFRecHitQTestBase.

Definition at line 754 of file PFRecHitQTests.h.

References pass().

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

◆ test() [6/6]

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

Implements PFRecHitQTestBase.

Definition at line 756 of file PFRecHitQTests.h.

References pass().

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

Member Data Documentation

◆ applySelectionsToAllCrystals_

bool PFRecHitQTestDBSeedingThreshold::applySelectionsToAllCrystals_
protected

Definition at line 759 of file PFRecHitQTests.h.

Referenced by test().

◆ threshToken_

edm::ESGetToken<EcalPFSeedingThresholds, EcalPFSeedingThresholdsRcd> PFRecHitQTestDBSeedingThreshold::threshToken_
private

Definition at line 768 of file PFRecHitQTests.h.

Referenced by beginEvent().

◆ ths_

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

Definition at line 760 of file PFRecHitQTests.h.

Referenced by beginEvent().