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

Constructor & Destructor Documentation

◆ PFRecHitQTestHOThreshold() [1/2]

PFRecHitQTestHOThreshold::PFRecHitQTestHOThreshold ( )
inline

Definition at line 343 of file PFRecHitQTests.h.

343 : threshold0_(0.), threshold12_(0.) {}

◆ PFRecHitQTestHOThreshold() [2/2]

PFRecHitQTestHOThreshold::PFRecHitQTestHOThreshold ( const edm::ParameterSet iConfig,
edm::ConsumesCollector cc 
)
inline

Definition at line 345 of file PFRecHitQTests.h.

346  : PFRecHitQTestBase(iConfig, cc),
347  threshold0_(iConfig.getParameter<double>("threshold_ring0")),
348  threshold12_(iConfig.getParameter<double>("threshold_ring12")) {}
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
uint32_t cc[maxCellsPerHit]
Definition: gpuFishbone.h:49
PFRecHitQTestBase()=default

Member Function Documentation

◆ beginEvent()

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

Implements PFRecHitQTestBase.

Definition at line 350 of file PFRecHitQTests.h.

350 {}

◆ test() [1/6]

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

Implements PFRecHitQTestBase.

Definition at line 352 of file PFRecHitQTests.h.

352 { return true; }

◆ test() [2/6]

bool PFRecHitQTestHOThreshold::test ( reco::PFRecHit hit,
const HBHERecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 354 of file PFRecHitQTests.h.

354 { return true; }

◆ test() [3/6]

bool PFRecHitQTestHOThreshold::test ( reco::PFRecHit hit,
const HFRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 356 of file PFRecHitQTests.h.

356 { return true; }

◆ test() [4/6]

bool PFRecHitQTestHOThreshold::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 358 of file PFRecHitQTests.h.

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

358  {
359  HcalDetId detid(rh.detid());
360  if (abs(detid.ieta()) <= 4 and hit.energy() > threshold0_)
361  return true;
362  if (abs(detid.ieta()) > 4 and hit.energy() > threshold12_)
363  return true;
364 
365  return false;
366  }
constexpr const DetId & detid() const
Definition: CaloRecHit.h:33
Abs< T >::type abs(const T &t)
Definition: Abs.h:22

◆ test() [5/6]

bool PFRecHitQTestHOThreshold::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 368 of file PFRecHitQTests.h.

368 { return true; }

◆ test() [6/6]

bool PFRecHitQTestHOThreshold::test ( reco::PFRecHit hit,
const HGCRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 370 of file PFRecHitQTests.h.

370 { return true; }

Member Data Documentation

◆ threshold0_

const double PFRecHitQTestHOThreshold::threshold0_
protected

Definition at line 373 of file PFRecHitQTests.h.

Referenced by test().

◆ threshold12_

const double PFRecHitQTestHOThreshold::threshold12_
protected

Definition at line 374 of file PFRecHitQTests.h.

Referenced by test().