test
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)
 
bool test (reco::PFRecHit &hit, const HGCRecHit &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 13 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

PFRecHitQTestThreshold::PFRecHitQTestThreshold ( )
inline

Definition at line 15 of file PFRecHitQTests.h.

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

Definition at line 19 of file PFRecHitQTests.h.

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

19  :
20  PFRecHitQTestBase(iConfig)
21  {
22  threshold_ = iConfig.getParameter<double>("threshold");
23 
24  }
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 26 of file PFRecHitQTests.h.

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

Definition at line 54 of file PFRecHitQTests.h.

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

Referenced by test().

54  {
55  if (hit.energy()>threshold_) return true;
56 
57  return false;
58  }
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 29 of file PFRecHitQTests.h.

References pass().

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

Implements PFRecHitQTestBase.

Definition at line 32 of file PFRecHitQTests.h.

References pass().

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

Implements PFRecHitQTestBase.

Definition at line 36 of file PFRecHitQTests.h.

References pass().

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

Implements PFRecHitQTestBase.

Definition at line 39 of file PFRecHitQTests.h.

References pass().

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

Implements PFRecHitQTestBase.

Definition at line 43 of file PFRecHitQTests.h.

References pass().

43  {
44  return pass(hit);
45  }
bool pass(const reco::PFRecHit &hit)
bool PFRecHitQTestThreshold::test ( reco::PFRecHit hit,
const HGCRecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 47 of file PFRecHitQTests.h.

References pass().

47  {
48  return pass(hit);
49  }
bool pass(const reco::PFRecHit &hit)

Member Data Documentation

double PFRecHitQTestThreshold::threshold_
protected

Definition at line 52 of file PFRecHitQTests.h.

Referenced by pass(), and PFRecHitQTestThreshold().