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

Constructor & Destructor Documentation

PFRecHitQTestThreshold::PFRecHitQTestThreshold ( )
inline

Definition at line 13 of file PFRecHitQTests.h.

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

Definition at line 17 of file PFRecHitQTests.h.

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

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

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

Definition at line 48 of file PFRecHitQTests.h.

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

Referenced by test().

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

Implements PFRecHitQTestBase.

Definition at line 27 of file PFRecHitQTests.h.

References pass().

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

Implements PFRecHitQTestBase.

Definition at line 30 of file PFRecHitQTests.h.

References pass().

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

Implements PFRecHitQTestBase.

Definition at line 34 of file PFRecHitQTests.h.

References pass().

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

Implements PFRecHitQTestBase.

Definition at line 37 of file PFRecHitQTests.h.

References pass().

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

Implements PFRecHitQTestBase.

Definition at line 41 of file PFRecHitQTests.h.

References pass().

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

Member Data Documentation

double PFRecHitQTestThreshold::threshold_
protected

Definition at line 46 of file PFRecHitQTests.h.

Referenced by pass(), and PFRecHitQTestThreshold().