CMS 3D CMS Logo

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

#include <PFRecHitQTests.h>

Inheritance diagram for PFRecHitQTestES:
PFRecHitQTestBase

Public Member Functions

void beginEvent (const edm::Event &event, const edm::EventSetup &iSetup)
 
 PFRecHitQTestES ()
 
 PFRecHitQTestES (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 Attributes

double thresholdCleaning_
 
bool topologicalCleaning_
 

Detailed Description

Definition at line 461 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

PFRecHitQTestES::PFRecHitQTestES ( )
inline

Definition at line 464 of file PFRecHitQTests.h.

464  {
465 
466  }
PFRecHitQTestES::PFRecHitQTestES ( const edm::ParameterSet iConfig)
inline

Definition at line 468 of file PFRecHitQTests.h.

References edm::ParameterSet::getParameter().

468  :
469  PFRecHitQTestBase(iConfig)
470  {
471  thresholdCleaning_ = iConfig.getParameter<double>("cleaningThreshold");
472  topologicalCleaning_ = iConfig.getParameter<bool>("topologicalCleaning");
473  }
double thresholdCleaning_
T getParameter(std::string const &) const

Member Function Documentation

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

Implements PFRecHitQTestBase.

Definition at line 475 of file PFRecHitQTests.h.

475  {
476  }
bool PFRecHitQTestES::test ( reco::PFRecHit hit,
const EcalRecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 478 of file PFRecHitQTests.h.

References EcalRecHit::checkFlag(), EcalRecHit::energy(), EcalRecHit::kESBadRatioFor12, EcalRecHit::kESBadRatioFor23Lower, EcalRecHit::kESBadRatioFor23Upper, EcalRecHit::kESDead, EcalRecHit::kESTS13Sigmas, EcalRecHit::kESTS1Largest, EcalRecHit::kESTS3Largest, and EcalRecHit::kESTS3Negative.

478  {
479 
480  if ( rh.energy() < thresholdCleaning_ ) {
481  clean=false;
482  return false;
483  }
484 
485  if ( topologicalCleaning_ &&
494  )) {
495  clean=false;
496  return false;
497  }
498 
499  return true;
500  }
double thresholdCleaning_
bool checkFlag(int flag) const
check if the flag is true
Definition: EcalRecHit.h:189
float energy() const
Definition: EcalRecHit.h:68
std::vector< T * > clean
Definition: MVATrainer.cc:156
bool PFRecHitQTestES::test ( reco::PFRecHit hit,
const HBHERecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 502 of file PFRecHitQTests.h.

502  {
503  return true;
504  }
bool PFRecHitQTestES::test ( reco::PFRecHit hit,
const HFRecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 506 of file PFRecHitQTests.h.

506  {
507  return true;
508 
509  }
bool PFRecHitQTestES::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 511 of file PFRecHitQTests.h.

511  {
512  return true;
513  }
bool PFRecHitQTestES::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 515 of file PFRecHitQTests.h.

515  {
516  return true;
517 
518  }
bool PFRecHitQTestES::test ( reco::PFRecHit hit,
const HGCRecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 520 of file PFRecHitQTests.h.

520  {
521  return true;
522  }

Member Data Documentation

double PFRecHitQTestES::thresholdCleaning_
protected

Definition at line 526 of file PFRecHitQTests.h.

bool PFRecHitQTestES::topologicalCleaning_
protected

Definition at line 527 of file PFRecHitQTests.h.