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)
 
 PFRecHitQTestHOThreshold ()
 
 PFRecHitQTestHOThreshold (const edm::ParameterSet &iConfig)
 
bool test (reco::PFRecHit &hit, const EcalRecHit &rh, bool &clean)
 
bool test (reco::PFRecHit &hit, const HBHERecHit &rh, bool &clean)
 
bool test (reco::PFRecHit &hit, const HFRecHit &rh, bool &clean)
 
bool test (reco::PFRecHit &hit, const HORecHit &rh, bool &clean)
 
bool test (reco::PFRecHit &hit, const CaloTower &rh, bool &clean)
 
bool test (reco::PFRecHit &hit, const HGCRecHit &rh, bool &clean)
 
- Public Member Functions inherited from PFRecHitQTestBase
 PFRecHitQTestBase ()
 
 PFRecHitQTestBase (const edm::ParameterSet &iConfig)
 

Protected Attributes

double threshold0_
 
double threshold12_
 

Detailed Description

Definition at line 333 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

PFRecHitQTestHOThreshold::PFRecHitQTestHOThreshold ( )
inline

Definition at line 335 of file PFRecHitQTests.h.

335  {
336 
337  }
PFRecHitQTestHOThreshold::PFRecHitQTestHOThreshold ( const edm::ParameterSet iConfig)
inline

Definition at line 339 of file PFRecHitQTests.h.

References edm::ParameterSet::getParameter().

339  :
340  PFRecHitQTestBase(iConfig)
341  {
342  threshold0_ = iConfig.getParameter<double>("threshold_ring0");
343  threshold12_ = iConfig.getParameter<double>("threshold_ring12");
344  }
T getParameter(std::string const &) const

Member Function Documentation

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

Implements PFRecHitQTestBase.

Definition at line 346 of file PFRecHitQTests.h.

346  {
347  }
bool PFRecHitQTestHOThreshold::test ( reco::PFRecHit hit,
const EcalRecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 349 of file PFRecHitQTests.h.

349  {
350  return true;
351  }
bool PFRecHitQTestHOThreshold::test ( reco::PFRecHit hit,
const HBHERecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 352 of file PFRecHitQTests.h.

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

Implements PFRecHitQTestBase.

Definition at line 356 of file PFRecHitQTests.h.

356  {
357  return true;
358  }
bool PFRecHitQTestHOThreshold::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 359 of file PFRecHitQTests.h.

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

359  {
360  HcalDetId detid(rh.detid());
361  if (abs(detid.ieta())<=4 && hit.energy()>threshold0_)
362  return true;
363  if (abs(detid.ieta())>4 && hit.energy()>threshold12_)
364  return true;
365 
366  return false;
367  }
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 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 369 of file PFRecHitQTests.h.

369  {
370  return true;
371  }
bool PFRecHitQTestHOThreshold::test ( reco::PFRecHit hit,
const HGCRecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 373 of file PFRecHitQTests.h.

373  {
374  return true;
375  }

Member Data Documentation

double PFRecHitQTestHOThreshold::threshold0_
protected

Definition at line 378 of file PFRecHitQTests.h.

double PFRecHitQTestHOThreshold::threshold12_
protected

Definition at line 379 of file PFRecHitQTests.h.