CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 326 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

PFRecHitQTestHOThreshold::PFRecHitQTestHOThreshold ( )
inline

Definition at line 328 of file PFRecHitQTests.h.

328  {
329 
330  }
PFRecHitQTestHOThreshold::PFRecHitQTestHOThreshold ( const edm::ParameterSet iConfig)
inline

Definition at line 332 of file PFRecHitQTests.h.

References edm::ParameterSet::getParameter(), threshold0_, and threshold12_.

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

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

Implements PFRecHitQTestBase.

Definition at line 342 of file PFRecHitQTests.h.

342  {
343  return true;
344  }
bool PFRecHitQTestHOThreshold::test ( reco::PFRecHit hit,
const HBHERecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 345 of file PFRecHitQTests.h.

345  {
346  return true;
347  }
bool PFRecHitQTestHOThreshold::test ( reco::PFRecHit hit,
const HFRecHit 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 HORecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 352 of file PFRecHitQTests.h.

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

352  {
353  HcalDetId detid(rh.detid());
354  if (abs(detid.ieta())<=4 && hit.energy()>threshold0_)
355  return true;
356  if (abs(detid.ieta())>4 && hit.energy()>threshold12_)
357  return true;
358 
359  return false;
360  }
const DetId & detid() const
Definition: CaloRecHit.h:20
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double energy() const
rechit energy
Definition: PFRecHit.h:112
bool PFRecHitQTestHOThreshold::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 362 of file PFRecHitQTests.h.

362  {
363  return true;
364  }
bool PFRecHitQTestHOThreshold::test ( reco::PFRecHit hit,
const HGCRecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 366 of file PFRecHitQTests.h.

366  {
367  return true;
368  }

Member Data Documentation

double PFRecHitQTestHOThreshold::threshold0_
protected

Definition at line 371 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestHOThreshold(), and test().

double PFRecHitQTestHOThreshold::threshold12_
protected

Definition at line 372 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestHOThreshold(), and test().