CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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) override
 
 PFRecHitQTestHOThreshold ()
 
 PFRecHitQTestHOThreshold (const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
 
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, edm::ConsumesCollector &cc)
 
virtual ~PFRecHitQTestBase ()=default
 

Protected Attributes

const double threshold0_
 
const double threshold12_
 

Detailed Description

Definition at line 315 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

PFRecHitQTestHOThreshold::PFRecHitQTestHOThreshold ( )
inline

Definition at line 317 of file PFRecHitQTests.h.

317 : threshold0_(0.), threshold12_(0.) {}
PFRecHitQTestHOThreshold::PFRecHitQTestHOThreshold ( const edm::ParameterSet iConfig,
edm::ConsumesCollector cc 
)
inline

Definition at line 319 of file PFRecHitQTests.h.

320  : PFRecHitQTestBase(iConfig, cc),
321  threshold0_(iConfig.getParameter<double>("threshold_ring0")),
322  threshold12_(iConfig.getParameter<double>("threshold_ring12")) {}
PFRecHitQTestBase()=default
T getParameter(std::string const &) const
Definition: ParameterSet.h:303

Member Function Documentation

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

Implements PFRecHitQTestBase.

Definition at line 324 of file PFRecHitQTests.h.

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

Implements PFRecHitQTestBase.

Definition at line 326 of file PFRecHitQTests.h.

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

Implements PFRecHitQTestBase.

Definition at line 328 of file PFRecHitQTests.h.

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

Implements PFRecHitQTestBase.

Definition at line 330 of file PFRecHitQTests.h.

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

Implements PFRecHitQTestBase.

Definition at line 332 of file PFRecHitQTests.h.

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

332  {
333  HcalDetId detid(rh.detid());
334  if (abs(detid.ieta()) <= 4 and hit.energy() > threshold0_)
335  return true;
336  if (abs(detid.ieta()) > 4 and hit.energy() > threshold12_)
337  return true;
338 
339  return false;
340  }
constexpr const DetId & detid() const
Definition: CaloRecHit.h:33
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
float energy() const
rechit energy
Definition: PFRecHit.h:99
bool PFRecHitQTestHOThreshold::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 342 of file PFRecHitQTests.h.

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

Implements PFRecHitQTestBase.

Definition at line 344 of file PFRecHitQTests.h.

344 { return true; }

Member Data Documentation

const double PFRecHitQTestHOThreshold::threshold0_
protected

Definition at line 347 of file PFRecHitQTests.h.

Referenced by test().

const double PFRecHitQTestHOThreshold::threshold12_
protected

Definition at line 348 of file PFRecHitQTests.h.

Referenced by test().