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

Constructor & Destructor Documentation

PFRecHitQTestECAL::PFRecHitQTestECAL ( )
inline

Definition at line 361 of file PFRecHitQTests.h.

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

Definition at line 365 of file PFRecHitQTests.h.

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

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

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

Implements PFRecHitQTestBase.

Definition at line 378 of file PFRecHitQTests.h.

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

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

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

Implements PFRecHitQTestBase.

Definition at line 404 of file PFRecHitQTests.h.

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

Implements PFRecHitQTestBase.

Definition at line 409 of file PFRecHitQTests.h.

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

Implements PFRecHitQTestBase.

Definition at line 413 of file PFRecHitQTests.h.

413  {
414  return true;
415 
416  }

Member Data Documentation

bool PFRecHitQTestECAL::skipTTRecoveredHits_
protected

Definition at line 423 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestECAL(), and test().

double PFRecHitQTestECAL::thresholdCleaning_
protected

Definition at line 420 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestECAL(), and test().

bool PFRecHitQTestECAL::timingCleaning_
protected

Definition at line 421 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestECAL(), and test().

bool PFRecHitQTestECAL::topologicalCleaning_
protected

Definition at line 422 of file PFRecHitQTests.h.

Referenced by PFRecHitQTestECAL(), and test().