CMS 3D CMS Logo

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

#include <PFRecHitQTests.h>

Inheritance diagram for PFRecHitQTestDBThreshold:
PFRecHitQTestBase

Public Member Functions

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

Private Attributes

edm::ESGetToken< EcalPFRecHitThresholds, EcalPFRecHitThresholdsRcdthreshToken_
 

Detailed Description

Definition at line 51 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

◆ PFRecHitQTestDBThreshold() [1/2]

PFRecHitQTestDBThreshold::PFRecHitQTestDBThreshold ( )
inline

Definition at line 53 of file PFRecHitQTests.h.

53 {}

◆ PFRecHitQTestDBThreshold() [2/2]

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

Definition at line 55 of file PFRecHitQTests.h.

56  : PFRecHitQTestBase(iConfig, cc),
57  applySelectionsToAllCrystals_(iConfig.getParameter<bool>("applySelectionsToAllCrystals")),
58  threshToken_(cc.esConsumes()) {}
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
uint32_t cc[maxCellsPerHit]
Definition: gpuFishbone.h:49
PFRecHitQTestBase()=default
edm::ESGetToken< EcalPFRecHitThresholds, EcalPFRecHitThresholdsRcd > threshToken_

Member Function Documentation

◆ beginEvent()

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

Implements PFRecHitQTestBase.

Definition at line 60 of file PFRecHitQTests.h.

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

60  {
61  ths_ = iSetup.getHandle(threshToken_);
62  }
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:130
edm::ESHandle< EcalPFRecHitThresholds > ths_
edm::ESGetToken< EcalPFRecHitThresholds, EcalPFRecHitThresholdsRcd > threshToken_

◆ pass()

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

Definition at line 82 of file PFRecHitQTests.h.

References DiMuonV_cfg::threshold.

Referenced by test().

82  {
83  float threshold = (*ths_)[hit.detId()];
84  return hit.energy() > threshold;
85  }

◆ test() [1/6]

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

Implements PFRecHitQTestBase.

Definition at line 64 of file PFRecHitQTests.h.

References applySelectionsToAllCrystals_, or, and pass().

64  {
66  return pass(hit);
67  return fullReadOut or pass(hit);
68  }
bool pass(const reco::PFRecHit &hit)
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

◆ test() [2/6]

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

Implements PFRecHitQTestBase.

Definition at line 69 of file PFRecHitQTests.h.

References pass().

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

◆ test() [3/6]

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

Implements PFRecHitQTestBase.

Definition at line 71 of file PFRecHitQTests.h.

References pass().

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

◆ test() [4/6]

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

Implements PFRecHitQTestBase.

Definition at line 72 of file PFRecHitQTests.h.

References pass().

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

◆ test() [5/6]

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

Implements PFRecHitQTestBase.

Definition at line 74 of file PFRecHitQTests.h.

References pass().

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

◆ test() [6/6]

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

Implements PFRecHitQTestBase.

Definition at line 76 of file PFRecHitQTests.h.

References pass().

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

Member Data Documentation

◆ applySelectionsToAllCrystals_

bool PFRecHitQTestDBThreshold::applySelectionsToAllCrystals_
protected

Definition at line 79 of file PFRecHitQTests.h.

Referenced by test().

◆ threshToken_

edm::ESGetToken<EcalPFRecHitThresholds, EcalPFRecHitThresholdsRcd> PFRecHitQTestDBThreshold::threshToken_
private

Definition at line 88 of file PFRecHitQTests.h.

Referenced by beginEvent().

◆ ths_

edm::ESHandle<EcalPFRecHitThresholds> PFRecHitQTestDBThreshold::ths_
protected

Definition at line 80 of file PFRecHitQTests.h.

Referenced by beginEvent().