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)
 
bool test (reco::PFRecHit &hit, const CaloTower &rh, bool &clean) override
 
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 HGCRecHit &rh, bool &clean) override
 
bool test (reco::PFRecHit &hit, const HORecHit &rh, bool &clean) override
 
- Public Member Functions inherited from PFRecHitQTestBase
 PFRecHitQTestBase ()=default
 
 PFRecHitQTestBase (const edm::ParameterSet &iConfig)
 
virtual ~PFRecHitQTestBase ()=default
 

Protected Attributes

const double threshold0_
 
const double threshold12_
 

Detailed Description

Definition at line 303 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

◆ PFRecHitQTestHOThreshold() [1/2]

PFRecHitQTestHOThreshold::PFRecHitQTestHOThreshold ( )
inline

Definition at line 305 of file PFRecHitQTests.h.

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

◆ PFRecHitQTestHOThreshold() [2/2]

PFRecHitQTestHOThreshold::PFRecHitQTestHOThreshold ( const edm::ParameterSet iConfig)
inline

Definition at line 307 of file PFRecHitQTests.h.

308  : PFRecHitQTestBase(iConfig),
309  threshold0_(iConfig.getParameter<double>("threshold_ring0")),
310  threshold12_(iConfig.getParameter<double>("threshold_ring12")) {}

Member Function Documentation

◆ beginEvent()

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

Implements PFRecHitQTestBase.

Definition at line 312 of file PFRecHitQTests.h.

312 {}

◆ test() [1/6]

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

Implements PFRecHitQTestBase.

Definition at line 330 of file PFRecHitQTests.h.

330 { return true; }

◆ test() [2/6]

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

Implements PFRecHitQTestBase.

Definition at line 314 of file PFRecHitQTests.h.

314 { return true; }

◆ test() [3/6]

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

Implements PFRecHitQTestBase.

Definition at line 316 of file PFRecHitQTests.h.

316 { return true; }

◆ test() [4/6]

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

Implements PFRecHitQTestBase.

Definition at line 318 of file PFRecHitQTests.h.

318 { return true; }

◆ test() [5/6]

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

Implements PFRecHitQTestBase.

Definition at line 332 of file PFRecHitQTests.h.

332 { return true; }

◆ test() [6/6]

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

Implements PFRecHitQTestBase.

Definition at line 320 of file PFRecHitQTests.h.

320  {
321  HcalDetId detid(rh.detid());
322  if (abs(detid.ieta()) <= 4 and hit.energy() > threshold0_)
323  return true;
324  if (abs(detid.ieta()) > 4 and hit.energy() > threshold12_)
325  return true;
326 
327  return false;
328  }

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

Member Data Documentation

◆ threshold0_

const double PFRecHitQTestHOThreshold::threshold0_
protected

Definition at line 335 of file PFRecHitQTests.h.

Referenced by test().

◆ threshold12_

const double PFRecHitQTestHOThreshold::threshold12_
protected

Definition at line 336 of file PFRecHitQTests.h.

Referenced by test().

PFRecHitQTestHOThreshold::threshold12_
const double threshold12_
Definition: PFRecHitQTests.h:336
CaloRecHit::detid
constexpr const DetId & detid() const
Definition: CaloRecHit.h:33
PFRecHitQTestHOThreshold::threshold0_
const double threshold0_
Definition: PFRecHitQTests.h:335
HcalDetId
Definition: HcalDetId.h:12
PFRecHitQTestBase::PFRecHitQTestBase
PFRecHitQTestBase()=default
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
hit
Definition: SiStripHitEffFromCalibTree.cc:88