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

Constructor & Destructor Documentation

PFRecHitQTestES::PFRecHitQTestES ( )
inline

Definition at line 457 of file PFRecHitQTests.h.

457  {
458 
459  }
PFRecHitQTestES::PFRecHitQTestES ( const edm::ParameterSet iConfig)
inline

Definition at line 461 of file PFRecHitQTests.h.

References edm::ParameterSet::getParameter(), thresholdCleaning_, and topologicalCleaning_.

461  :
462  PFRecHitQTestBase(iConfig)
463  {
464  thresholdCleaning_ = iConfig.getParameter<double>("cleaningThreshold");
465  topologicalCleaning_ = iConfig.getParameter<bool>("topologicalCleaning");
466  }
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 468 of file PFRecHitQTests.h.

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

Implements PFRecHitQTestBase.

Definition at line 471 of file PFRecHitQTests.h.

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

471  {
472 
473  if ( rh.energy() < thresholdCleaning_ ) {
474  clean=false;
475  return false;
476  }
477 
478  if ( topologicalCleaning_ &&
487  )) {
488  clean=false;
489  return false;
490  }
491 
492  return true;
493  }
double thresholdCleaning_
bool checkFlag(int flag) const
check if the flag is true
Definition: EcalRecHit.h:172
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 495 of file PFRecHitQTests.h.

495  {
496  return true;
497  }
bool PFRecHitQTestES::test ( reco::PFRecHit hit,
const HFRecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 499 of file PFRecHitQTests.h.

499  {
500  return true;
501 
502  }
bool PFRecHitQTestES::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 504 of file PFRecHitQTests.h.

504  {
505  return true;
506  }
bool PFRecHitQTestES::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 508 of file PFRecHitQTests.h.

508  {
509  return true;
510 
511  }
bool PFRecHitQTestES::test ( reco::PFRecHit hit,
const HGCRecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 513 of file PFRecHitQTests.h.

513  {
514  return true;
515  }

Member Data Documentation

double PFRecHitQTestES::thresholdCleaning_
protected

Definition at line 519 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestES(), and test().

bool PFRecHitQTestES::topologicalCleaning_
protected

Definition at line 520 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestES(), and test().