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

Constructor & Destructor Documentation

PFRecHitQTestECAL::PFRecHitQTestECAL ( )
inline

Definition at line 362 of file PFRecHitQTests.h.

362  {
363 
364  }
PFRecHitQTestECAL::PFRecHitQTestECAL ( const edm::ParameterSet iConfig)
inline

Definition at line 366 of file PFRecHitQTests.h.

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

366  :
367  PFRecHitQTestBase(iConfig)
368  {
369  thresholdCleaning_ = iConfig.getParameter<double>("cleaningThreshold");
370  timingCleaning_ = iConfig.getParameter<bool>("timingCleaning");
371  topologicalCleaning_ = iConfig.getParameter<bool>("topologicalCleaning");
372  skipTTRecoveredHits_ = iConfig.getParameter<bool>("skipTTRecoveredHits");
373 
374  }
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 376 of file PFRecHitQTests.h.

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

Implements PFRecHitQTestBase.

Definition at line 379 of file PFRecHitQTests.h.

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

379  {
381  {
382  clean=true;
383  return false;
384  }
385  if ( timingCleaning_ && rh.energy() > thresholdCleaning_ &&
387  clean=true;
388  return false;
389  }
390 
391  if ( topologicalCleaning_ &&
392  ( rh.checkFlag(EcalRecHit::kWeird) ||
394  clean=true;
395  return false;
396  }
397 
398  return true;
399  }
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 401 of file PFRecHitQTests.h.

401  {
402  return true;
403  }
bool PFRecHitQTestECAL::test ( reco::PFRecHit hit,
const HFRecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 405 of file PFRecHitQTests.h.

405  {
406  return true;
407 
408  }
bool PFRecHitQTestECAL::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 410 of file PFRecHitQTests.h.

410  {
411  return true;
412  }
bool PFRecHitQTestECAL::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlinevirtual

Implements PFRecHitQTestBase.

Definition at line 414 of file PFRecHitQTests.h.

414  {
415  return true;
416 
417  }

Member Data Documentation

bool PFRecHitQTestECAL::skipTTRecoveredHits_
protected

Definition at line 424 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestECAL(), and test().

double PFRecHitQTestECAL::thresholdCleaning_
protected

Definition at line 421 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestECAL(), and test().

bool PFRecHitQTestECAL::timingCleaning_
protected

Definition at line 422 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestECAL(), and test().

bool PFRecHitQTestECAL::topologicalCleaning_
protected

Definition at line 423 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestECAL(), and test().