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

Constructor & Destructor Documentation

PFRecHitQTestECAL::PFRecHitQTestECAL ( )
inline

Definition at line 538 of file PFRecHitQTests.h.

538  {
539  }
PFRecHitQTestECAL::PFRecHitQTestECAL ( const edm::ParameterSet iConfig)
inline

Definition at line 541 of file PFRecHitQTests.h.

541  :
542  PFRecHitQTestBase(iConfig),
543  thresholdCleaning_(iConfig.getParameter<double>("cleaningThreshold")),
544  timingCleaning_(iConfig.getParameter<bool>("timingCleaning")),
545  topologicalCleaning_(iConfig.getParameter<bool>("topologicalCleaning")),
546  skipTTRecoveredHits_(iConfig.getParameter<bool>("skipTTRecoveredHits"))
547  {
548  }
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 550 of file PFRecHitQTests.h.

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

Implements PFRecHitQTestBase.

Definition at line 553 of file PFRecHitQTests.h.

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

553  {
555  {
556  clean=true;
557  return false;
558  }
559  if (timingCleaning_ and rh.energy() > thresholdCleaning_ and
561  {
562  clean=true;
563  return false;
564  }
565 
566  if (topologicalCleaning_ and (
569  {
570  clean=true;
571  return false;
572  }
573 
574  return true;
575  }
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 577 of file PFRecHitQTests.h.

577  {
578  return true;
579  }
bool PFRecHitQTestECAL::test ( reco::PFRecHit hit,
const HFRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 581 of file PFRecHitQTests.h.

581  {
582  return true;
583  }
bool PFRecHitQTestECAL::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 585 of file PFRecHitQTests.h.

585  {
586  return true;
587  }
bool PFRecHitQTestECAL::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 589 of file PFRecHitQTests.h.

589  {
590  return true;
591  }
bool PFRecHitQTestECAL::test ( reco::PFRecHit hit,
const HGCRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 593 of file PFRecHitQTests.h.

593  {
594  return true;
595  }

Member Data Documentation

bool PFRecHitQTestECAL::skipTTRecoveredHits_
protected

Definition at line 601 of file PFRecHitQTests.h.

double PFRecHitQTestECAL::thresholdCleaning_
protected

Definition at line 598 of file PFRecHitQTests.h.

bool PFRecHitQTestECAL::timingCleaning_
protected

Definition at line 599 of file PFRecHitQTests.h.

bool PFRecHitQTestECAL::topologicalCleaning_
protected

Definition at line 600 of file PFRecHitQTests.h.