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, edm::ConsumesCollector &cc)
 
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, edm::ConsumesCollector &cc)
 
virtual ~PFRecHitQTestBase ()=default
 

Protected Attributes

const double thresholdCleaning_
 
const bool topologicalCleaning_
 

Detailed Description

Definition at line 513 of file PFRecHitQTests.h.

Constructor & Destructor Documentation

◆ PFRecHitQTestES() [1/2]

PFRecHitQTestES::PFRecHitQTestES ( )
inline

Definition at line 515 of file PFRecHitQTests.h.

const bool topologicalCleaning_
const double thresholdCleaning_

◆ PFRecHitQTestES() [2/2]

PFRecHitQTestES::PFRecHitQTestES ( const edm::ParameterSet iConfig,
edm::ConsumesCollector cc 
)
inline

Definition at line 517 of file PFRecHitQTests.h.

518  : PFRecHitQTestBase(iConfig, cc),
519  thresholdCleaning_(iConfig.getParameter<double>("cleaningThreshold")),
520  topologicalCleaning_(iConfig.getParameter<bool>("topologicalCleaning")) {}
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
uint32_t cc[maxCellsPerHit]
Definition: gpuFishbone.h:49
PFRecHitQTestBase()=default
const bool topologicalCleaning_
const double thresholdCleaning_

Member Function Documentation

◆ beginEvent()

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

Implements PFRecHitQTestBase.

Definition at line 522 of file PFRecHitQTests.h.

522 {}

◆ test() [1/6]

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

Implements PFRecHitQTestBase.

Definition at line 524 of file PFRecHitQTests.h.

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

524  {
525  if (rh.energy() < thresholdCleaning_) {
526  clean = false;
527  return false;
528  }
529 
530  if (topologicalCleaning_ and
535  clean = false;
536  return false;
537  }
538 
539  return true;
540  }
static void clean(char *s)
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
const bool topologicalCleaning_
float energy() const
Definition: EcalRecHit.h:69
const double thresholdCleaning_
bool checkFlag(int flag) const
check if the flag is true
Definition: EcalRecHit.h:188

◆ test() [2/6]

bool PFRecHitQTestES::test ( reco::PFRecHit hit,
const HBHERecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 542 of file PFRecHitQTests.h.

542 { return true; }

◆ test() [3/6]

bool PFRecHitQTestES::test ( reco::PFRecHit hit,
const HFRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 544 of file PFRecHitQTests.h.

544 { return true; }

◆ test() [4/6]

bool PFRecHitQTestES::test ( reco::PFRecHit hit,
const HORecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 546 of file PFRecHitQTests.h.

546 { return true; }

◆ test() [5/6]

bool PFRecHitQTestES::test ( reco::PFRecHit hit,
const CaloTower rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 548 of file PFRecHitQTests.h.

548 { return true; }

◆ test() [6/6]

bool PFRecHitQTestES::test ( reco::PFRecHit hit,
const HGCRecHit rh,
bool &  clean 
)
inlineoverridevirtual

Implements PFRecHitQTestBase.

Definition at line 550 of file PFRecHitQTests.h.

550 { return true; }

Member Data Documentation

◆ thresholdCleaning_

const double PFRecHitQTestES::thresholdCleaning_
protected

Definition at line 553 of file PFRecHitQTests.h.

Referenced by test().

◆ topologicalCleaning_

const bool PFRecHitQTestES::topologicalCleaning_
protected

Definition at line 554 of file PFRecHitQTests.h.

Referenced by test().