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)
 
- Public Member Functions inherited from PFRecHitQTestBase
 PFRecHitQTestBase ()
 
 PFRecHitQTestBase (const edm::ParameterSet &iConfig)
 

Protected Attributes

double threshold0_
 
double threshold12_
 

Detailed Description

Definition at line 311 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

PFRecHitQTestHOThreshold::PFRecHitQTestHOThreshold ( )
inline

Definition at line 313 of file PFRecHitQTests.h.

313  {
314 
315  }
PFRecHitQTestHOThreshold::PFRecHitQTestHOThreshold ( const edm::ParameterSet iConfig)
inline

Definition at line 317 of file PFRecHitQTests.h.

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

317  :
318  PFRecHitQTestBase(iConfig)
319  {
320  threshold0_ = iConfig.getParameter<double>("threshold_ring0");
321  threshold12_ = iConfig.getParameter<double>("threshold_ring12");
322  }
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 324 of file PFRecHitQTests.h.

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

Implements PFRecHitQTestBase.

Definition at line 327 of file PFRecHitQTests.h.

327  {
328  return true;
329  }
bool PFRecHitQTestHOThreshold::test ( reco::PFRecHit hit,
const HBHERecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 330 of file PFRecHitQTests.h.

330  {
331  return true;
332  }
bool PFRecHitQTestHOThreshold::test ( reco::PFRecHit hit,
const HFRecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 334 of file PFRecHitQTests.h.

334  {
335  return true;
336  }
bool PFRecHitQTestHOThreshold::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 337 of file PFRecHitQTests.h.

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

337  {
338  HcalDetId detid(rh.detid());
339  if (abs(detid.ieta())<=4 && hit.energy()>threshold0_)
340  return true;
341  if (abs(detid.ieta())>4 && hit.energy()>threshold12_)
342  return true;
343 
344  return false;
345  }
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 347 of file PFRecHitQTests.h.

347  {
348  return true;
349  }

Member Data Documentation

double PFRecHitQTestHOThreshold::threshold0_
protected

Definition at line 352 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestHOThreshold(), and test().

double PFRecHitQTestHOThreshold::threshold12_
protected

Definition at line 353 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestHOThreshold(), and test().