CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Protected 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)
 
bool test (reco::PFRecHit &hit, const CaloTower &rh, bool &clean) override
 
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 HGCRecHit &rh, bool &clean) override
 
bool test (reco::PFRecHit &hit, const HORecHit &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_
 
const edm::EventSetupeventSetup_
 

Detailed Description

Definition at line 48 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

◆ PFRecHitQTestDBThreshold() [1/2]

PFRecHitQTestDBThreshold::PFRecHitQTestDBThreshold ( )
inline

Definition at line 50 of file PFRecHitQTests.h.

50 : eventSetup_(nullptr) {}

◆ PFRecHitQTestDBThreshold() [2/2]

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

Definition at line 52 of file PFRecHitQTests.h.

53  : PFRecHitQTestBase(iConfig),
54  applySelectionsToAllCrystals_(iConfig.getParameter<bool>("applySelectionsToAllCrystals")),
55  eventSetup_(nullptr) {}

Member Function Documentation

◆ beginEvent()

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

Implements PFRecHitQTestBase.

Definition at line 57 of file PFRecHitQTests.h.

57 { eventSetup_ = &iSetup; }

References eventSetup_.

◆ pass()

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

Definition at line 77 of file PFRecHitQTests.h.

77  {
79  (*eventSetup_).get<EcalPFRecHitThresholdsRcd>().get(ths);
80 
81  float threshold = (*ths)[hit.detId()];
82  return hit.energy() > threshold;
83  }

References get, and remoteMonitoring_LED_IterMethod_cfg::threshold.

Referenced by test().

◆ test() [1/6]

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

Implements PFRecHitQTestBase.

Definition at line 69 of file PFRecHitQTests.h.

69 { return pass(hit); }

References pass().

◆ test() [2/6]

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

Implements PFRecHitQTestBase.

Definition at line 59 of file PFRecHitQTests.h.

59  {
61  return pass(hit);
62  return fullReadOut or pass(hit);
63  }

References applySelectionsToAllCrystals_, or, and pass().

◆ test() [3/6]

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

Implements PFRecHitQTestBase.

Definition at line 64 of file PFRecHitQTests.h.

64 { return pass(hit); }

References pass().

◆ test() [4/6]

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

Implements PFRecHitQTestBase.

Definition at line 66 of file PFRecHitQTests.h.

66 { return pass(hit); }

References pass().

◆ test() [5/6]

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

Implements PFRecHitQTestBase.

Definition at line 71 of file PFRecHitQTests.h.

71 { return pass(hit); }

References pass().

◆ test() [6/6]

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

Implements PFRecHitQTestBase.

Definition at line 67 of file PFRecHitQTests.h.

67 { return pass(hit); }

References pass().

Member Data Documentation

◆ applySelectionsToAllCrystals_

bool PFRecHitQTestDBThreshold::applySelectionsToAllCrystals_
protected

Definition at line 74 of file PFRecHitQTests.h.

Referenced by test().

◆ eventSetup_

const edm::EventSetup* PFRecHitQTestDBThreshold::eventSetup_
protected

Definition at line 75 of file PFRecHitQTests.h.

Referenced by beginEvent().

EcalPFRecHitThresholdsRcd
Definition: EcalPFRecHitThresholdsRcd.h:5
PFRecHitQTestDBThreshold::pass
bool pass(const reco::PFRecHit &hit)
Definition: PFRecHitQTests.h:77
edm::ESHandle
Definition: DTSurvey.h:22
PFRecHitQTestDBThreshold::eventSetup_
const edm::EventSetup * eventSetup_
Definition: PFRecHitQTests.h:75
PFRecHitQTestDBThreshold::applySelectionsToAllCrystals_
bool applySelectionsToAllCrystals_
Definition: PFRecHitQTests.h:74
PFRecHitQTestBase::PFRecHitQTestBase
PFRecHitQTestBase()=default
get
#define get
or
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
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
remoteMonitoring_LED_IterMethod_cfg.threshold
threshold
Definition: remoteMonitoring_LED_IterMethod_cfg.py:426
hit
Definition: SiStripHitEffFromCalibTree.cc:88