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 326 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

PFRecHitQTestHOThreshold::PFRecHitQTestHOThreshold ( )
inline

Definition at line 328 of file PFRecHitQTests.h.

328  :
329  threshold0_(0.),
330  threshold12_(0.)
331  {
332  }
PFRecHitQTestHOThreshold::PFRecHitQTestHOThreshold ( const edm::ParameterSet iConfig)
inline

Definition at line 334 of file PFRecHitQTests.h.

334  :
335  PFRecHitQTestBase(iConfig),
336  threshold0_(iConfig.getParameter<double>("threshold_ring0")),
337  threshold12_(iConfig.getParameter<double>("threshold_ring12"))
338  {
339  }
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 341 of file PFRecHitQTests.h.

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

Implements PFRecHitQTestBase.

Definition at line 344 of file PFRecHitQTests.h.

344  {
345  return true;
346  }
bool PFRecHitQTestHOThreshold::test ( reco::PFRecHit hit,
const HBHERecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 348 of file PFRecHitQTests.h.

348  {
349  return true;
350  }
bool PFRecHitQTestHOThreshold::test ( reco::PFRecHit hit,
const HFRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 352 of file PFRecHitQTests.h.

352  {
353  return true;
354  }
bool PFRecHitQTestHOThreshold::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 356 of file PFRecHitQTests.h.

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

356  {
357  HcalDetId detid(rh.detid());
358  if (abs(detid.ieta())<=4 and hit.energy()>threshold0_)
359  return true;
360  if (abs(detid.ieta())>4 and hit.energy()>threshold12_)
361  return true;
362 
363  return false;
364  }
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 366 of file PFRecHitQTests.h.

366  {
367  return true;
368  }
bool PFRecHitQTestHOThreshold::test ( reco::PFRecHit hit,
const HGCRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 370 of file PFRecHitQTests.h.

370  {
371  return true;
372  }

Member Data Documentation

const double PFRecHitQTestHOThreshold::threshold0_
protected

Definition at line 375 of file PFRecHitQTests.h.

const double PFRecHitQTestHOThreshold::threshold12_
protected

Definition at line 376 of file PFRecHitQTests.h.