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 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_
 
const edm::EventSetupeventSetup_
 

Detailed Description

Definition at line 67 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

PFRecHitQTestDBThreshold::PFRecHitQTestDBThreshold ( )
inline

Definition at line 69 of file PFRecHitQTests.h.

69  :eventSetup_(nullptr){
70  }
const edm::EventSetup * eventSetup_
PFRecHitQTestDBThreshold::PFRecHitQTestDBThreshold ( const edm::ParameterSet iConfig)
inline

Definition at line 72 of file PFRecHitQTests.h.

72  :
73  PFRecHitQTestBase(iConfig),
74  applySelectionsToAllCrystals_(iConfig.getParameter<bool>("applySelectionsToAllCrystals")),
75  eventSetup_(nullptr){
76  }
T getParameter(std::string const &) const
PFRecHitQTestBase()=default
const edm::EventSetup * eventSetup_

Member Function Documentation

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

Implements PFRecHitQTestBase.

Definition at line 78 of file PFRecHitQTests.h.

78  {
79  eventSetup_=&iSetup;
80  }
const edm::EventSetup * eventSetup_
bool PFRecHitQTestDBThreshold::pass ( const reco::PFRecHit hit)
inlineprotected

Definition at line 111 of file PFRecHitQTests.h.

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

111  {
112 
114  (*eventSetup_).get<EcalPFRecHitThresholdsRcd>().get(ths);
115 
116  float threshold = (*ths)[hit.detId()];
117  if (hit.energy()>threshold) return true;
118 
119  return false;
120  }
unsigned detId() const
rechit detId
Definition: PFRecHit.h:108
float energy() const
rechit energy
Definition: PFRecHit.h:114
bool PFRecHitQTestDBThreshold::test ( reco::PFRecHit hit,
const EcalRecHit rh,
bool &  clean,
bool  fullReadOut 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 82 of file PFRecHitQTests.h.

References or, and PFRecHitQTestThreshold::pass().

82  {
83  if (applySelectionsToAllCrystals_) return pass(hit);
84  return fullReadOut or pass(hit);
85  }
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
bool PFRecHitQTestDBThreshold::test ( reco::PFRecHit hit,
const HBHERecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 86 of file PFRecHitQTests.h.

References PFRecHitQTestThreshold::pass().

86  {
87  return pass(hit);
88  }
bool pass(const reco::PFRecHit &hit)
bool PFRecHitQTestDBThreshold::test ( reco::PFRecHit hit,
const HFRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 90 of file PFRecHitQTests.h.

References PFRecHitQTestThreshold::pass().

90  {
91  return pass(hit);
92  }
bool pass(const reco::PFRecHit &hit)
bool PFRecHitQTestDBThreshold::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 93 of file PFRecHitQTests.h.

References PFRecHitQTestThreshold::pass().

93  {
94  return pass(hit);
95  }
bool pass(const reco::PFRecHit &hit)
bool PFRecHitQTestDBThreshold::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 97 of file PFRecHitQTests.h.

References PFRecHitQTestThreshold::pass().

97  {
98  return pass(hit);
99  }
bool pass(const reco::PFRecHit &hit)
bool PFRecHitQTestDBThreshold::test ( reco::PFRecHit hit,
const HGCRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 101 of file PFRecHitQTests.h.

References PFRecHitQTestThreshold::pass().

101  {
102  return pass(hit);
103  }
bool pass(const reco::PFRecHit &hit)

Member Data Documentation

bool PFRecHitQTestDBThreshold::applySelectionsToAllCrystals_
protected

Definition at line 107 of file PFRecHitQTests.h.

const edm::EventSetup* PFRecHitQTestDBThreshold::eventSetup_
protected

Definition at line 108 of file PFRecHitQTests.h.