CMS 3D CMS Logo

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

#include <PFRecHitQTests.h>

Inheritance diagram for PFRecHitQTestHOThreshold:
PFRecHitQTestBase

Public Member Functions

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

const double threshold0_
 
const double threshold12_
 

Detailed Description

Definition at line 389 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

PFRecHitQTestHOThreshold::PFRecHitQTestHOThreshold ( )
inline

Definition at line 391 of file PFRecHitQTests.h.

391  :
392  threshold0_(0.),
393  threshold12_(0.)
394  {
395  }
PFRecHitQTestHOThreshold::PFRecHitQTestHOThreshold ( const edm::ParameterSet iConfig)
inline

Definition at line 397 of file PFRecHitQTests.h.

397  :
398  PFRecHitQTestBase(iConfig),
399  threshold0_(iConfig.getParameter<double>("threshold_ring0")),
400  threshold12_(iConfig.getParameter<double>("threshold_ring12"))
401  {
402  }
T getParameter(std::string const &) const
PFRecHitQTestBase()=default

Member Function Documentation

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

Implements PFRecHitQTestBase.

Definition at line 404 of file PFRecHitQTests.h.

404  {
405  }
bool PFRecHitQTestHOThreshold::test ( reco::PFRecHit hit,
const EcalRecHit rh,
bool &  clean,
bool  fullReadOut 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 407 of file PFRecHitQTests.h.

407  {
408  return true;
409  }
bool PFRecHitQTestHOThreshold::test ( reco::PFRecHit hit,
const HBHERecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 411 of file PFRecHitQTests.h.

411  {
412  return true;
413  }
bool PFRecHitQTestHOThreshold::test ( reco::PFRecHit hit,
const HFRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 415 of file PFRecHitQTests.h.

415  {
416  return true;
417  }
bool PFRecHitQTestHOThreshold::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 419 of file PFRecHitQTests.h.

References funct::abs(), CaloRecHit::detid(), and reco::PFRecHit::energy().

419  {
420  HcalDetId detid(rh.detid());
421  if (abs(detid.ieta())<=4 and hit.energy()>threshold0_)
422  return true;
423  if (abs(detid.ieta())>4 and hit.energy()>threshold12_)
424  return true;
425 
426  return false;
427  }
const DetId & detid() const
Definition: CaloRecHit.h:21
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
float energy() const
rechit energy
Definition: PFRecHit.h:114
bool PFRecHitQTestHOThreshold::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 429 of file PFRecHitQTests.h.

429  {
430  return true;
431  }
bool PFRecHitQTestHOThreshold::test ( reco::PFRecHit hit,
const HGCRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 433 of file PFRecHitQTests.h.

433  {
434  return true;
435  }

Member Data Documentation

const double PFRecHitQTestHOThreshold::threshold0_
protected

Definition at line 438 of file PFRecHitQTests.h.

const double PFRecHitQTestHOThreshold::threshold12_
protected

Definition at line 439 of file PFRecHitQTests.h.