CMS 3D CMS Logo

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

#include <PFRecHitQTests.h>

Inheritance diagram for PFRecHitQTestECAL:
PFRecHitQTestBase

Public Member Functions

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

bool skipTTRecoveredHits_
 
double thresholdCleaning_
 
bool timingCleaning_
 
bool topologicalCleaning_
 

Detailed Description

Definition at line 386 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

PFRecHitQTestECAL::PFRecHitQTestECAL ( )
inline

Definition at line 388 of file PFRecHitQTests.h.

388  {
389 
390  }
PFRecHitQTestECAL::PFRecHitQTestECAL ( const edm::ParameterSet iConfig)
inline

Definition at line 392 of file PFRecHitQTests.h.

References edm::ParameterSet::getParameter().

392  :
393  PFRecHitQTestBase(iConfig)
394  {
395  thresholdCleaning_ = iConfig.getParameter<double>("cleaningThreshold");
396  timingCleaning_ = iConfig.getParameter<bool>("timingCleaning");
397  topologicalCleaning_ = iConfig.getParameter<bool>("topologicalCleaning");
398  skipTTRecoveredHits_ = iConfig.getParameter<bool>("skipTTRecoveredHits");
399 
400  }
T getParameter(std::string const &) const

Member Function Documentation

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

Implements PFRecHitQTestBase.

Definition at line 402 of file PFRecHitQTests.h.

402  {
403  }
bool PFRecHitQTestECAL::test ( reco::PFRecHit hit,
const EcalRecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 405 of file PFRecHitQTests.h.

References EcalRecHit::checkFlag(), EcalRecHit::energy(), EcalRecHit::kDiWeird, EcalRecHit::kOutOfTime, EcalRecHit::kTowerRecovered, and EcalRecHit::kWeird.

405  {
407  {
408  clean=true;
409  return false;
410  }
411  if ( timingCleaning_ && rh.energy() > thresholdCleaning_ &&
413  clean=true;
414  return false;
415  }
416 
417  if ( topologicalCleaning_ &&
418  ( rh.checkFlag(EcalRecHit::kWeird) ||
420  clean=true;
421  return false;
422  }
423 
424  return true;
425  }
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 PFRecHitQTestECAL::test ( reco::PFRecHit hit,
const HBHERecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 427 of file PFRecHitQTests.h.

427  {
428  return true;
429  }
bool PFRecHitQTestECAL::test ( reco::PFRecHit hit,
const HFRecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 431 of file PFRecHitQTests.h.

431  {
432  return true;
433 
434  }
bool PFRecHitQTestECAL::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 436 of file PFRecHitQTests.h.

436  {
437  return true;
438  }
bool PFRecHitQTestECAL::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 440 of file PFRecHitQTests.h.

440  {
441  return true;
442 
443  }
bool PFRecHitQTestECAL::test ( reco::PFRecHit hit,
const HGCRecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 445 of file PFRecHitQTests.h.

445  {
446  return true;
447  }

Member Data Documentation

bool PFRecHitQTestECAL::skipTTRecoveredHits_
protected

Definition at line 454 of file PFRecHitQTests.h.

double PFRecHitQTestECAL::thresholdCleaning_
protected

Definition at line 451 of file PFRecHitQTests.h.

bool PFRecHitQTestECAL::timingCleaning_
protected

Definition at line 452 of file PFRecHitQTests.h.

bool PFRecHitQTestECAL::topologicalCleaning_
protected

Definition at line 453 of file PFRecHitQTests.h.