CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
PFRecHitQTestThreshold Class Reference

#include <PFRecHitQTests.h>

Inheritance diagram for PFRecHitQTestThreshold:
PFRecHitQTestBase

Public Member Functions

void beginEvent (const edm::Event &event, const edm::EventSetup &iSetup) override
 
 PFRecHitQTestThreshold ()
 
 PFRecHitQTestThreshold (const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
 
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, edm::ConsumesCollector &cc)
 
virtual ~PFRecHitQTestBase ()=default
 

Protected Member Functions

bool pass (const reco::PFRecHit &hit)
 

Protected Attributes

double threshold_
 

Detailed Description

Definition at line 19 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

◆ PFRecHitQTestThreshold() [1/2]

PFRecHitQTestThreshold::PFRecHitQTestThreshold ( )
inline

Definition at line 21 of file PFRecHitQTests.h.

21 {}

◆ PFRecHitQTestThreshold() [2/2]

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

Definition at line 23 of file PFRecHitQTests.h.

24  : PFRecHitQTestBase(iConfig, cc), threshold_(iConfig.getParameter<double>("threshold")) {}

Member Function Documentation

◆ beginEvent()

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

Implements PFRecHitQTestBase.

Definition at line 26 of file PFRecHitQTests.h.

26 {}

◆ pass()

bool PFRecHitQTestThreshold::pass ( const reco::PFRecHit hit)
inlineprotected

Definition at line 43 of file PFRecHitQTests.h.

43 { return hit.energy() > threshold_; }

References threshold_.

Referenced by test().

◆ test() [1/6]

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

Implements PFRecHitQTestBase.

Definition at line 36 of file PFRecHitQTests.h.

36 { return pass(hit); }

References pass().

◆ test() [2/6]

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

Implements PFRecHitQTestBase.

Definition at line 28 of file PFRecHitQTests.h.

28  {
29  return fullReadOut or pass(hit);
30  }

References or, and pass().

◆ test() [3/6]

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

Implements PFRecHitQTestBase.

Definition at line 31 of file PFRecHitQTests.h.

31 { return pass(hit); }

References pass().

◆ test() [4/6]

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

Implements PFRecHitQTestBase.

Definition at line 33 of file PFRecHitQTests.h.

33 { return pass(hit); }

References pass().

◆ test() [5/6]

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

Implements PFRecHitQTestBase.

Definition at line 38 of file PFRecHitQTests.h.

38 { return pass(hit); }

References pass().

◆ test() [6/6]

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

Implements PFRecHitQTestBase.

Definition at line 34 of file PFRecHitQTests.h.

34 { return pass(hit); }

References pass().

Member Data Documentation

◆ threshold_

double PFRecHitQTestThreshold::threshold_
protected

Definition at line 41 of file PFRecHitQTests.h.

Referenced by pass().

PFRecHitQTestThreshold::threshold_
double threshold_
Definition: PFRecHitQTests.h:41
PFRecHitQTestBase::PFRecHitQTestBase
PFRecHitQTestBase()=default
cc
PFRecHitQTestThreshold::pass
bool pass(const reco::PFRecHit &hit)
Definition: PFRecHitQTests.h:43
or
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
hit
Definition: SiStripHitEffFromCalibTree.cc:88