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

Constructor & Destructor Documentation

PFRecHitQTestECAL::PFRecHitQTestECAL ( )
inline

Definition at line 381 of file PFRecHitQTests.h.

381  {
382 
383  }
PFRecHitQTestECAL::PFRecHitQTestECAL ( const edm::ParameterSet iConfig)
inline

Definition at line 385 of file PFRecHitQTests.h.

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

385  :
386  PFRecHitQTestBase(iConfig)
387  {
388  thresholdCleaning_ = iConfig.getParameter<double>("cleaningThreshold");
389  timingCleaning_ = iConfig.getParameter<bool>("timingCleaning");
390  topologicalCleaning_ = iConfig.getParameter<bool>("topologicalCleaning");
391  skipTTRecoveredHits_ = iConfig.getParameter<bool>("skipTTRecoveredHits");
392 
393  }
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 395 of file PFRecHitQTests.h.

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

Implements PFRecHitQTestBase.

Definition at line 398 of file PFRecHitQTests.h.

References EcalRecHit::checkFlag(), EcalRecHit::energy(), EcalRecHit::kDiWeird, EcalRecHit::kOutOfTime, EcalRecHit::kTowerRecovered, EcalRecHit::kWeird, skipTTRecoveredHits_, thresholdCleaning_, timingCleaning_, and topologicalCleaning_.

398  {
400  {
401  clean=true;
402  return false;
403  }
404  if ( timingCleaning_ && rh.energy() > thresholdCleaning_ &&
406  clean=true;
407  return false;
408  }
409 
410  if ( topologicalCleaning_ &&
411  ( rh.checkFlag(EcalRecHit::kWeird) ||
413  clean=true;
414  return false;
415  }
416 
417  return true;
418  }
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 PFRecHitQTestECAL::test ( reco::PFRecHit hit,
const HBHERecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 420 of file PFRecHitQTests.h.

420  {
421  return true;
422  }
bool PFRecHitQTestECAL::test ( reco::PFRecHit hit,
const HFRecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 424 of file PFRecHitQTests.h.

424  {
425  return true;
426 
427  }
bool PFRecHitQTestECAL::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 429 of file PFRecHitQTests.h.

429  {
430  return true;
431  }
bool PFRecHitQTestECAL::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 433 of file PFRecHitQTests.h.

433  {
434  return true;
435 
436  }
bool PFRecHitQTestECAL::test ( reco::PFRecHit hit,
const HGCRecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 438 of file PFRecHitQTests.h.

438  {
439  return true;
440  }

Member Data Documentation

bool PFRecHitQTestECAL::skipTTRecoveredHits_
protected

Definition at line 447 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestECAL(), and test().

double PFRecHitQTestECAL::thresholdCleaning_
protected

Definition at line 444 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestECAL(), and test().

bool PFRecHitQTestECAL::timingCleaning_
protected

Definition at line 445 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestECAL(), and test().

bool PFRecHitQTestECAL::topologicalCleaning_
protected

Definition at line 446 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestECAL(), and test().