CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
PFRecHitQTestES Class Reference

#include <PFRecHitQTests.h>

Inheritance diagram for PFRecHitQTestES:
PFRecHitQTestBase

Public Member Functions

void beginEvent (const edm::Event &event, const edm::EventSetup &iSetup) override
 
 PFRecHitQTestES ()
 
 PFRecHitQTestES (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

const double thresholdCleaning_
 
const bool topologicalCleaning_
 

Detailed Description

Definition at line 608 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

PFRecHitQTestES::PFRecHitQTestES ( )
inline

Definition at line 610 of file PFRecHitQTests.h.

610  :
611  thresholdCleaning_(0.),
612  topologicalCleaning_(false)
613  {
614  }
const bool topologicalCleaning_
const double thresholdCleaning_
PFRecHitQTestES::PFRecHitQTestES ( const edm::ParameterSet iConfig)
inline

Definition at line 616 of file PFRecHitQTests.h.

616  :
617  PFRecHitQTestBase(iConfig),
618  thresholdCleaning_(iConfig.getParameter<double>("cleaningThreshold")),
619  topologicalCleaning_(iConfig.getParameter<bool>("topologicalCleaning"))
620  {
621  }
T getParameter(std::string const &) const
PFRecHitQTestBase()=default
const bool topologicalCleaning_
const double thresholdCleaning_

Member Function Documentation

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

Implements PFRecHitQTestBase.

Definition at line 623 of file PFRecHitQTests.h.

623  {
624  }
bool PFRecHitQTestES::test ( reco::PFRecHit hit,
const EcalRecHit rh,
bool &  clean,
bool  fullReadOut 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 626 of file PFRecHitQTests.h.

References EcalRecHit::checkFlag(), EcalRecHit::energy(), EcalRecHit::kESBadRatioFor12, EcalRecHit::kESBadRatioFor23Lower, EcalRecHit::kESBadRatioFor23Upper, EcalRecHit::kESDead, EcalRecHit::kESTS13Sigmas, EcalRecHit::kESTS1Largest, EcalRecHit::kESTS3Largest, EcalRecHit::kESTS3Negative, and or.

626  {
627 
628  if ( rh.energy() < thresholdCleaning_ ) {
629  clean=false;
630  return false;
631  }
632 
633  if ( topologicalCleaning_ and
642  )) {
643  clean=false;
644  return false;
645  }
646 
647  return true;
648  }
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:154
const bool topologicalCleaning_
const double thresholdCleaning_
bool PFRecHitQTestES::test ( reco::PFRecHit hit,
const HBHERecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 650 of file PFRecHitQTests.h.

650  {
651  return true;
652  }
bool PFRecHitQTestES::test ( reco::PFRecHit hit,
const HFRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 654 of file PFRecHitQTests.h.

654  {
655  return true;
656  }
bool PFRecHitQTestES::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 658 of file PFRecHitQTests.h.

658  {
659  return true;
660  }
bool PFRecHitQTestES::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 662 of file PFRecHitQTests.h.

662  {
663  return true;
664  }
bool PFRecHitQTestES::test ( reco::PFRecHit hit,
const HGCRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 666 of file PFRecHitQTests.h.

666  {
667  return true;
668  }

Member Data Documentation

const double PFRecHitQTestES::thresholdCleaning_
protected

Definition at line 671 of file PFRecHitQTests.h.

const bool PFRecHitQTestES::topologicalCleaning_
protected

Definition at line 672 of file PFRecHitQTests.h.