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 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)
 
 PFRecHitQTestThreshold ()
 
 PFRecHitQTestThreshold (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 Member Functions

bool pass (const reco::PFRecHit &hit)
 

Protected Attributes

double threshold_
 

Detailed Description

Definition at line 12 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

PFRecHitQTestThreshold::PFRecHitQTestThreshold ( )
inline

Definition at line 14 of file PFRecHitQTests.h.

14  {
15 
16  }
PFRecHitQTestThreshold::PFRecHitQTestThreshold ( const edm::ParameterSet iConfig)
inline

Definition at line 18 of file PFRecHitQTests.h.

References edm::ParameterSet::getParameter(), and threshold_.

18  :
19  PFRecHitQTestBase(iConfig)
20  {
21  threshold_ = iConfig.getParameter<double>("threshold");
22 
23  }
T getParameter(std::string const &) const

Member Function Documentation

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

Implements PFRecHitQTestBase.

Definition at line 25 of file PFRecHitQTests.h.

25  {
26  }
bool PFRecHitQTestThreshold::pass ( const reco::PFRecHit hit)
inlineprotected

Definition at line 49 of file PFRecHitQTests.h.

References reco::PFRecHit::energy(), and threshold_.

Referenced by test().

49  {
50  if (hit.energy()>threshold_) return true;
51 
52  return false;
53  }
double energy() const
rechit energy
Definition: PFRecHit.h:112
bool PFRecHitQTestThreshold::test ( reco::PFRecHit hit,
const EcalRecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 28 of file PFRecHitQTests.h.

References pass().

28  {
29  return pass(hit);
30  }
bool pass(const reco::PFRecHit &hit)
bool PFRecHitQTestThreshold::test ( reco::PFRecHit hit,
const HBHERecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 31 of file PFRecHitQTests.h.

References pass().

31  {
32  return pass(hit);
33  }
bool pass(const reco::PFRecHit &hit)
bool PFRecHitQTestThreshold::test ( reco::PFRecHit hit,
const HFRecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 35 of file PFRecHitQTests.h.

References pass().

35  {
36  return pass(hit);
37  }
bool pass(const reco::PFRecHit &hit)
bool PFRecHitQTestThreshold::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 38 of file PFRecHitQTests.h.

References pass().

38  {
39  return pass(hit);
40  }
bool pass(const reco::PFRecHit &hit)
bool PFRecHitQTestThreshold::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 42 of file PFRecHitQTests.h.

References pass().

42  {
43  return pass(hit);
44  }
bool pass(const reco::PFRecHit &hit)

Member Data Documentation

double PFRecHitQTestThreshold::threshold_
protected

Definition at line 47 of file PFRecHitQTests.h.

Referenced by pass(), and PFRecHitQTestThreshold().