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 fullReadOut)
 
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)
 
virtual ~PFRecHitQTestBase ()=default
 

Protected Attributes

double thresholdCleaning_
 
bool topologicalCleaning_
 

Detailed Description

Definition at line 542 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

PFRecHitQTestES::PFRecHitQTestES ( )
inline

Definition at line 545 of file PFRecHitQTests.h.

545  {
546 
547  }
PFRecHitQTestES::PFRecHitQTestES ( const edm::ParameterSet iConfig)
inline

Definition at line 549 of file PFRecHitQTests.h.

References edm::ParameterSet::getParameter().

549  :
550  PFRecHitQTestBase(iConfig)
551  {
552  thresholdCleaning_ = iConfig.getParameter<double>("cleaningThreshold");
553  topologicalCleaning_ = iConfig.getParameter<bool>("topologicalCleaning");
554  }
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 556 of file PFRecHitQTests.h.

556  {
557  }
bool PFRecHitQTestES::test ( reco::PFRecHit hit,
const EcalRecHit rh,
bool &  clean,
bool  fullReadOut 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 559 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.

559  {
560 
561  if ( rh.energy() < thresholdCleaning_ ) {
562  clean=false;
563  return false;
564  }
565 
566  if ( topologicalCleaning_ &&
575  )) {
576  clean=false;
577  return false;
578  }
579 
580  return true;
581  }
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 583 of file PFRecHitQTests.h.

583  {
584  return true;
585  }
bool PFRecHitQTestES::test ( reco::PFRecHit hit,
const HFRecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 587 of file PFRecHitQTests.h.

587  {
588  return true;
589 
590  }
bool PFRecHitQTestES::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 592 of file PFRecHitQTests.h.

592  {
593  return true;
594  }
bool PFRecHitQTestES::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 596 of file PFRecHitQTests.h.

596  {
597  return true;
598 
599  }
bool PFRecHitQTestES::test ( reco::PFRecHit hit,
const HGCRecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 601 of file PFRecHitQTests.h.

601  {
602  return true;
603  }

Member Data Documentation

double PFRecHitQTestES::thresholdCleaning_
protected

Definition at line 607 of file PFRecHitQTests.h.

bool PFRecHitQTestES::topologicalCleaning_
protected

Definition at line 608 of file PFRecHitQTests.h.