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

Constructor & Destructor Documentation

PFRecHitQTestHOThreshold::PFRecHitQTestHOThreshold ( )
inline

Definition at line 312 of file PFRecHitQTests.h.

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

Definition at line 316 of file PFRecHitQTests.h.

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

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

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

Implements PFRecHitQTestBase.

Definition at line 326 of file PFRecHitQTests.h.

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

Implements PFRecHitQTestBase.

Definition at line 329 of file PFRecHitQTests.h.

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

Implements PFRecHitQTestBase.

Definition at line 333 of file PFRecHitQTests.h.

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

Implements PFRecHitQTestBase.

Definition at line 336 of file PFRecHitQTests.h.

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

336  {
337  HcalDetId detid(rh.detid());
338  if (abs(detid.ieta())<=4 && hit.energy()>threshold0_)
339  return true;
340  if (abs(detid.ieta())>4 && hit.energy()>threshold12_)
341  return true;
342 
343  return false;
344  }
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:109
bool PFRecHitQTestHOThreshold::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 346 of file PFRecHitQTests.h.

346  {
347  return true;
348  }

Member Data Documentation

double PFRecHitQTestHOThreshold::threshold0_
protected

Definition at line 351 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestHOThreshold(), and test().

double PFRecHitQTestHOThreshold::threshold12_
protected

Definition at line 352 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestHOThreshold(), and test().