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

Constructor & Destructor Documentation

PFRecHitQTestThreshold::PFRecHitQTestThreshold ( )
inline

Definition at line 16 of file PFRecHitQTests.h.

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

Definition at line 20 of file PFRecHitQTests.h.

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

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

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

Definition at line 55 of file PFRecHitQTests.h.

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

Referenced by test(), PFRecHitQTestThresholdInMIPs::test(), and PFRecHitQTestThresholdInThicknessNormalizedMIPs::test().

55  {
56  if (hit.energy()>threshold_) return true;
57 
58  return false;
59  }
float energy() const
rechit energy
Definition: PFRecHit.h:114
bool PFRecHitQTestThreshold::test ( reco::PFRecHit hit,
const EcalRecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 30 of file PFRecHitQTests.h.

References pass().

Referenced by PFRecHitQTestHCALChannel::test(), PFRecHitQTestHCALTimeVsDepth::test(), and PFRecHitQTestHCALThresholdVsDepth::test().

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

Implements PFRecHitQTestBase.

Definition at line 33 of file PFRecHitQTests.h.

References pass().

33  {
34  return pass(hit);
35  }
bool pass(const reco::PFRecHit &hit)
bool PFRecHitQTestThreshold::test ( reco::PFRecHit hit,
const HFRecHit 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 HORecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 40 of file PFRecHitQTests.h.

References pass().

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

Implements PFRecHitQTestBase.

Definition at line 44 of file PFRecHitQTests.h.

References pass().

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

Implements PFRecHitQTestBase.

Definition at line 48 of file PFRecHitQTests.h.

References pass().

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

Member Data Documentation

double PFRecHitQTestThreshold::threshold_
protected