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 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

bool skipTTRecoveredHits_
 
double thresholdCleaning_
 
bool timingCleaning_
 
bool topologicalCleaning_
 

Detailed Description

Definition at line 467 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

PFRecHitQTestECAL::PFRecHitQTestECAL ( )
inline

Definition at line 469 of file PFRecHitQTests.h.

469  {
470 
471  }
PFRecHitQTestECAL::PFRecHitQTestECAL ( const edm::ParameterSet iConfig)
inline

Definition at line 473 of file PFRecHitQTests.h.

References edm::ParameterSet::getParameter().

473  :
474  PFRecHitQTestBase(iConfig)
475  {
476  thresholdCleaning_ = iConfig.getParameter<double>("cleaningThreshold");
477  timingCleaning_ = iConfig.getParameter<bool>("timingCleaning");
478  topologicalCleaning_ = iConfig.getParameter<bool>("topologicalCleaning");
479  skipTTRecoveredHits_ = iConfig.getParameter<bool>("skipTTRecoveredHits");
480 
481  }
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 483 of file PFRecHitQTests.h.

483  {
484  }
bool PFRecHitQTestECAL::test ( reco::PFRecHit hit,
const EcalRecHit rh,
bool &  clean,
bool  fullReadOut 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 486 of file PFRecHitQTests.h.

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

486  {
488  {
489  clean=true;
490  return false;
491  }
492  if ( timingCleaning_ && rh.energy() > thresholdCleaning_ &&
494  clean=true;
495  return false;
496  }
497 
498  if ( topologicalCleaning_ &&
499  ( rh.checkFlag(EcalRecHit::kWeird) ||
501  clean=true;
502  return false;
503  }
504 
505  return true;
506  }
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 508 of file PFRecHitQTests.h.

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

Implements PFRecHitQTestBase.

Definition at line 512 of file PFRecHitQTests.h.

512  {
513  return true;
514 
515  }
bool PFRecHitQTestECAL::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 517 of file PFRecHitQTests.h.

517  {
518  return true;
519  }
bool PFRecHitQTestECAL::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 521 of file PFRecHitQTests.h.

521  {
522  return true;
523 
524  }
bool PFRecHitQTestECAL::test ( reco::PFRecHit hit,
const HGCRecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 526 of file PFRecHitQTests.h.

526  {
527  return true;
528  }

Member Data Documentation

bool PFRecHitQTestECAL::skipTTRecoveredHits_
protected

Definition at line 535 of file PFRecHitQTests.h.

double PFRecHitQTestECAL::thresholdCleaning_
protected

Definition at line 532 of file PFRecHitQTests.h.

bool PFRecHitQTestECAL::timingCleaning_
protected

Definition at line 533 of file PFRecHitQTests.h.

bool PFRecHitQTestECAL::topologicalCleaning_
protected

Definition at line 534 of file PFRecHitQTests.h.