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) override
 
 PFRecHitQTestECAL ()
 
 PFRecHitQTestECAL (const edm::ParameterSet &iConfig)
 
bool test (reco::PFRecHit &hit, const EcalRecHit &rh, bool &clean, bool fullReadOut) override
 
bool test (reco::PFRecHit &hit, const HBHERecHit &rh, bool &clean) override
 
bool test (reco::PFRecHit &hit, const HFRecHit &rh, bool &clean) override
 
bool test (reco::PFRecHit &hit, const HORecHit &rh, bool &clean) override
 
bool test (reco::PFRecHit &hit, const CaloTower &rh, bool &clean) override
 
bool test (reco::PFRecHit &hit, const HGCRecHit &rh, bool &clean) override
 
- Public Member Functions inherited from PFRecHitQTestBase
 PFRecHitQTestBase ()=default
 
 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  }
PFRecHitQTestECAL::PFRecHitQTestECAL ( const edm::ParameterSet iConfig)
inline

Definition at line 472 of file PFRecHitQTests.h.

472  :
473  PFRecHitQTestBase(iConfig),
474  thresholdCleaning_(iConfig.getParameter<double>("cleaningThreshold")),
475  timingCleaning_(iConfig.getParameter<bool>("timingCleaning")),
476  topologicalCleaning_(iConfig.getParameter<bool>("topologicalCleaning")),
477  skipTTRecoveredHits_(iConfig.getParameter<bool>("skipTTRecoveredHits"))
478  {
479  }
T getParameter(std::string const &) const
PFRecHitQTestBase()=default

Member Function Documentation

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

Implements PFRecHitQTestBase.

Definition at line 481 of file PFRecHitQTests.h.

481  {
482  }
bool PFRecHitQTestECAL::test ( reco::PFRecHit hit,
const EcalRecHit rh,
bool &  clean,
bool  fullReadOut 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 484 of file PFRecHitQTests.h.

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

484  {
486  {
487  clean=true;
488  return false;
489  }
490  if (timingCleaning_ and rh.energy() > thresholdCleaning_ and
492  {
493  clean=true;
494  return false;
495  }
496 
497  if (topologicalCleaning_ and (
500  {
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
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
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 
)
inlineoverridevirtual

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

Implements PFRecHitQTestBase.

Definition at line 512 of file PFRecHitQTests.h.

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

Implements PFRecHitQTestBase.

Definition at line 516 of file PFRecHitQTests.h.

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

Implements PFRecHitQTestBase.

Definition at line 520 of file PFRecHitQTests.h.

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

Implements PFRecHitQTestBase.

Definition at line 524 of file PFRecHitQTests.h.

524  {
525  return true;
526  }

Member Data Documentation

bool PFRecHitQTestECAL::skipTTRecoveredHits_
protected

Definition at line 532 of file PFRecHitQTests.h.

double PFRecHitQTestECAL::thresholdCleaning_
protected

Definition at line 529 of file PFRecHitQTests.h.

bool PFRecHitQTestECAL::timingCleaning_
protected

Definition at line 530 of file PFRecHitQTests.h.

bool PFRecHitQTestECAL::topologicalCleaning_
protected

Definition at line 531 of file PFRecHitQTests.h.